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

ttwatch stopped working before really starting #131

Open
teihla opened this issue Aug 3, 2017 · 8 comments
Open

ttwatch stopped working before really starting #131

teihla opened this issue Aug 3, 2017 · 8 comments

Comments

@teihla
Copy link

teihla commented Aug 3, 2017

I am really new to ttwatch. I installed it yesterday without problems. I was able to download one activity from my watch to the computer (using the daemon). When I tried to upload the activity to mapmyfitness, I received errors regarding permissions. I thought that was because the activity file was owned by root. I deleted it, and restarted the daemon with me as a user, and nothing has worked since. I am unable to download any activities from the watch, even a new one from this morning. Any idea what I should do next?

@ryanbinns
Copy link
Owner

ryanbinns commented Aug 3, 2017

It sounds like a permissions issue. Firstly, make sure there are no copies of ttwatch or ttwatchd running.

  1. Does it work if you use the ttwatch program without using the daemon (ttwatch -a)?
  2. If not, does it work if you run the ttwatch program as root (sudo ttwatch -a)?
  3. If so, then try doing make install_udev to install udev rules to make the watch accessible to the usb group. It will also add your username to the usb group so that you have permissions to access it.

Try these first. If you still can't get it working, there may be something else we can try.

@teihla
Copy link
Author

teihla commented Aug 3, 2017 via email

@ryanbinns
Copy link
Owner

Ok, I think I understand. Most people get confused by this at first. When the activity is downloaded from the watch, the activity data is definitely deleted from the watch. However, the watch still retains a summary of the activity for use when looking at history and for the race function. So it still looks like it's there, but there is no more data that can be downloaded. If you run ttwatch --list-history you'll see the activity, but the information displayed there is the only information that's left on the watch. Everything else has been deleted.

If you do a new activity then try to download it, it should work.

@teihla
Copy link
Author

teihla commented Aug 3, 2017 via email

@ryanbinns
Copy link
Owner

That's correct, the activity data is always deleted, no matter what method you use for downloading it.

I don't know if ttbin2mysports works any more. I didn't write it and have never used it because I don't use MySports. TomTom changed the way MySports works some time ago. It used to be run by MapMyFitness, but TomTom subsequently rewrote the website using their own API. I'm not sure if anyone else uses the ttbin2mysports script or if it still works.

BTW, did you change the username and password inside the script (lines 9 and 10)? If not, try changing them to your username and password and see if it works. You might be lucky.

@teihla
Copy link
Author

teihla commented Aug 3, 2017 via email

@ryanbinns
Copy link
Owner

Sorry no, you're the first person I have found to want it since the API was changed. Nobody else has mentioned it. Most people use Strava instead as it's much better and you can just upload TCX files through the website interface. MySports is extremely limited.

The MySports API is not documented so it would need some serious reverse engineering to work out (it's encrypted communications, which makes it difficult).

@teihla
Copy link
Author

teihla commented Aug 3, 2017 via email

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