-
Notifications
You must be signed in to change notification settings - Fork 67
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
Mysports account info #42
Comments
If you look at There is no public documentation for how to generate OAuth tokens for the MySports web app. So it's not possible for In contrast, other fitness-tracking sites provide documentation and an API for generating their authentication tokens (e.g. Strava: http://strava.github.io/api/v3/oauth). Unforunately, as we were discussing here, the "official" TomTom apps don't work unless linked to a MySports account, even though there is no technical reason why this is necessary.
Not sure what you mean here. The Android App will not work if it doesn't have an Internet connection or can't authenticate to your MySports account... even though there is no technical reason why the MySports account is needed to download the file. |
That makes sense. However, I have noticed that my watch will complain about On Mon, Sep 14, 2015 at 8:28 PM, Dan Lenski [email protected]
|
@dbrb2, why don't you try pushing an XML file to your watch with a made-up/random MySports auth token? You can do this by building Presumably this will answer the question. |
Happy to - will need to work out how first :-) Think I need to read the On Mon, Sep 14, 2015 at 9:13 PM, Dan Lenski [email protected]
|
The Windows and Android apps do need an internet connection. There are a few reasons. The elevation data is downloaded from TomTom's web server, as are the firmware (although this isn't used by the Android app) and GPSQuickFix data. The URLs of the elevation, firmware and GPSQuickFix data (among other things) are stored in a settings JSON file that is also downloaded from their website, and the URL of THIS file is stored in the preferences file in the watch. Basically, this means that TomTom can reorganise their website and only have to keep ONE file in the same place - the one that's pointed to by the URL stored in the preferences file in the watch. Everything else is determined when the settings file is downloaded. The ttwatch program currently ignores this URL in the preferences file and the URLs are hardcoded in the source code. I do intend to fix this at some point. The latest version of the ttwatch software will create the preferences XML file if there isn't one, although it can't create MySports login details. It may be possible to at some point create the login details given an existing MySports account, as it uses the MapMyFitness API behind the scenes and that is documented. |
@ryanbinns, is this the MapMyFitness API you're referring to? http://www.mapmyfitness.com/api/3.1/ I didn't realize that's what MySports was using. |
Yep, that's the one. MySports is run by MapMyFitness, so (from memory) if you've got a MySports account, you can also log into MapMyFitness. |
Just tried to log in like that from browser, and MapMyFitness would not accept my MySports credentials. |
This doesn't seem to be the case anymore: |
Yes, it appears to have changed. I don't use MySports (and never have), so I hadn't noticed. |
A bonus for the TomTom Spark (77) model owners would be to push Activity monitoring data, e.g. steps, etc., to the MySports website. The c program does not appear to have code for it. (Sorry about the digression.) (Back to the script.) Ideal is not to use MS Windows at all for the workflow (even when we speak of uploading a Run-activity)... What would be needed to tweak the MySports authentication script? |
Maybe an aside... Anyone have a script that would automatically upload to Strava? |
@codefolder, I wrote a simple shell script that uses Strava has a well-documented public API for such things; unfortunately it requires generating per-app authentication codes. I set up a simple web server which can generate one for you at: http://stravacli-dlenski.rhcloud.com/ |
@dlenski, thank you very much, it is useful and simple to use! |
Reading through the ttblue documentsation:
https://github.com/dlenski/ttblue/blob/master/tt_bluetooth.md
It is mentioned that the reason the android app will, on occasion, fail to download activities from a watch is that although it does not need an internet connection, it does check the contents of the file 0x00f20000
It would be very nice to be able to set this from linux, without having to a) use the windows app and b) have a mysports account
From the ttblue docs:
"
the official apps won't function without being logged into it [Mysports]. Making this even more tedious, the mobile app frequently gets confused about the synced account, but only the desktop app can write the small XML file on the watch (0x00f20000) which stores account information.
"
The text was updated successfully, but these errors were encountered: