Giter Site home page Giter Site logo

dotnet.garmin.connect's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotnet.garmin.connect's Issues

"excercise" instead of "exercise"

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);

Get and send Workout data

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.

โœ… Replace object field types with specialized ones

Methods that return fields with object types

  • GetPreferences
  • GetSocialProfile
  • GetUserSettings
  • GetUserSummary
  • GetWellnessSleepData
  • GetWellnessHeartRates
  • GetWellnessStepsData
  • GetHydrationData
  • GetBodyComposition
  • GetPersonalRecord
  • GetDeviceLastUsed
  • GetDeviceSettings
  • GetDevices
  • GetActivitySplitSummaries
  • GetActivityDetails
  • GetActivityExcerciseSets
  • GetActivityWeather
  • GetActivitySplits
  • GetActivityHrInTimezones
  • DownloadActivity
  • GetActivities
  • GetActivitiesByDate

Add calendar methods support

In #56 was added ScheduleWorkout method but we can't remove with workout from calendar

add few methods:

  • DELETE /workout-service/schedule/{id} (used id from calendarItems which contains in calendars methods)
  • GET /calendar-service/year/{year}
  • GET /calendar-service/year/{year}/month/{month_from_zero}
  • GET /calendar-service/year/{year}/month/{month_from_zero}/day/{last_day_of_week}/start/1

Use Refresh Token

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!

PaymentRequired for Garmin API

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?

401 Unauthorized Exception, Docker

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.

Return connectIQ data?

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.

GarminConnectContext Model changed (javascript required)

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.

docker: returns 403 when calling POST method

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

Add nuget readme

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.

Worker Service, Docker, prompted for a password reset.

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

Access to Gear

Any plans to allow to get the list of the gears for the activity?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.