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

Initial commit for Hexoskin #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

antoine-gagne
Copy link

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.

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)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Hx?

Copy link
Author

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

Copy link
Owner

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.

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)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time.sleep?

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

Successfully merging this pull request may close these issues.

None yet

2 participants