-
Notifications
You must be signed in to change notification settings - Fork 295
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
Initial commit for Hexoskin #211
base: master
Are you sure you want to change the base?
Conversation
range_tcx = requests.get(serverRoot + "api/range/%s/" % (str(activityID)), headers=headers) | ||
TCXIO.Parse(range_tcx.content, activity) | ||
activity.Notes = activity.Name | ||
activity.Name = '%s - Hx' % (activity.Type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Hx
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contraction for Hexoskin (to indicate where the data is from). If some other name feels more relevant, I'm open to discussions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to annotate the activity name - or, at least, nothing else does it.
… oauth hardcoded resource id
activity.Name = ride["name"] | ||
activity.Stationary = False | ||
ride_track = requests.get("https://api.hexoskin.com/api/track/?range=%s" % ride['id'], headers=self._apiHeaders(serviceRecord)) | ||
time.sleep(0.2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time.sleep
?
da1b4e7
to
1081891
Compare
I coded an integration for the Hexoskin service and wanted to offer it to the Tapiriik community. Tested it on a local server and everything should be in working condition.
Please email me for API keys if you decide to integrate the pull request.