Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New mod -> VIEWER_SOCIAL_PROFILE is not part of the response string. #58

Closed
enydog opened this issue Dec 22, 2021 · 2 comments
Closed

Comments

@enydog
Copy link

enydog commented Dec 22, 2021

self.social_profile = self.parse_json(response.text, 'VIEWER_SOCIAL_PROFILE')
self.display_name = self.social_profile['displayName']
elf.full_name =self.social_profile['fullName']

@enydog
Copy link
Author

enydog commented Dec 22, 2021

quick fix in garminClass.py

   #self.user_prefs = self.parse_json(
   #    response.text, 'VIEWER_USERPREFERENCES')
   #self.unit_system = self.user_prefs['measurementSystem']
  #self.logger.debug("Unit system is %s", self.unit_system)
   #self.social_profile = self.parse_json(
   #    response.text, 'VIEWER_SOCIAL_PROFILE')
   #elf.display_name = self.social_profile['displayName']
   #self.full_name = self.social_profile['fullName']
   #self.logger.debug("Display name is %s", self.display_name)
   #self.logger.debug("Fullname is %s", self.full_name)

    resp =self.fetch_data(self.url_activities)
    self.display_name = resp[0]['ownerDisplayName']
    self.full_name    =resp[0]['ownerFullName']

    print(self.full_name)
    self.logger.debug("Display name is %s", self.display_name)
    self.logger.debug("Fullname is %s", self.full_name)

@cyberjunky
Copy link
Owner

Already fixed days ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants