sealbro / dotnet.garmin.connect Goto Github PK
View Code? Open in Web Editor NEWUnofficial garmin connect client
License: MIT License
Unofficial garmin connect client
License: MIT License
public Task GetActivityExcerciseSets(long activityId)
return _context.GetAndDeserialize(exerciseSetsUrl);
/// Fetch activity excercise sets
Task GetActivityExcerciseSets(long activityId);
public record GarminExcerciseSets
public async Task GetActivityExcerciseSets_NotNull()
var garminExcerciseSets = await _garmin.GetActivityExcerciseSets(activityId);
Assert.NotNull(garminExcerciseSets);
I wish to use Workout data. Using your library I a bit extended it, I was able to get workouts and a single workout data using next links:
WorkoutsUrl = "/workout-service/workouts";
WorkoutUrl = "/workout-service/workout/{Id}";
But when I try to push modified or the same workout back (Push using WorkoutUrl link with workout Id) I see errors, 400 or 405.
Also I wish to have functionality to schedule workout and send it to device:
ScheduleWorkoutUrl = "/workout-service/schedule/{Id}";
SendWorkoutUrl = "/device-service/devicemessage/messages";
Please help me with those.
object
typesIn #56 was added ScheduleWorkout
method but we can't remove with workout from calendar
add few methods:
id
from calendarItems
which contains in calendars methods)Feature Request: Use refresh token contained in the bearer token class
I would like to use the refresh token that is contained within the bearer token class but don't know how to format the request / what parameters and headers should be supplied in order to get a new access token. Is it possible to add this functionality to the repository? Also, if I am given the necessary parameters, I can create the PR for you to approve so that this can be implemented. Thanks for your help!
Required to cancel requests correctly
I'm getting exceptions starting today:
Request [GET: https://connect.garmin.com/proxy/activitylist-service/activities/search/activities?startDate=2022-12-10&endDate=2022-12-17&start=0&limit=20] return code 402 (PaymentRequired).
and
Request [GET: https://connect.garmin.com/proxy/userprofile-service/userprofile/user-settings] return code 402 (PaymentRequired).
I also tried another Garmin account that had not used the Garmin API at all in the past with the same result.
Garmin seems to have changed its policy. Any idea how to resolve this?
The MFA flow approach can be borrowed from the project peloton-to-garmin
ref #43
Hello,
I am using this package in a .net 7.0 worker service, which I host in a Docker container. Basically it works, but unfortunately now I always sporadically get an exception "Request [POST: https://connect.garmin.com/modern/di-oauth/exchange] return code 401 (Unauthorized)" and the Docker container stops. First it works yes and then suddenly not anymore. Sometimes 4-5 requests in 10-30 minute intervals work and sometimes only 1-2.
Does anyone possibly have a tip on what it could be or is the problem known? Would like to use the library, but I know slowly unfortunately no more further.
It appears that the connectIQ custom activity data isn't returned with the GetActivities method. Specifically I'm talking about a connectIQ connected scale. Is this a future add or am I missing something. Thanks.
As of 2023-09-26
Exception in:
TModel ParseJson(string html, string key)
"Garmin.Connect.Exceptions.GarminConnectUnexpectedException: 'Model changed. VIEWER_USERPREFERENCES not found!'"
html contains the string: To sign in to your Garmin account, please enable JavaScript in your web browser.
When I run on windows, everything works and authorizes, but when running in docker asp net:6.0-alpine on the POST method returns 403
The assumption is that because of TLS, there are no other solutions
Got warning after push to nuget repository:
warn : Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.
Hi together,
I am using this package in a .net 7.0 worker service, which I host in a Docker container.
Unfortunately I had this problem again today with my service hosted in a Docker container. The container has been running error-free for 2 weeks, the data was retrieved from Garmin without any problems and today I was suddenly prompted again for a password reset.
Does anyone have another idea what the problem could be?
As already mentioned in another issue, there is no real refresh of the access token, a new login is always performed. Could it have something to do with that? I am also unsure if a refresh could be implemented at all.
I'm starting to get a bit confused.
Many greetings
Any plans to allow to get the list of the gears for the activity?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.