cpfair / tapiriik

tapiriik keeps your fitness in sync
https://tapiriik.com
Apache License 2.0
1.71k stars 294 forks source link

tapiriik syncs incomplete RWGPS activities when Live Logging is used #413

Open onedayfishsale opened 6 years ago

onedayfishsale commented 6 years ago

If a tapiriik sync happens while a Live Logging Ride with GPS activity is still in progress, it will sync the incomplete activity. The completed activity is then not synced presumably because it's detected as a duplicate.

I briefly looked at the RWGPS API; perhaps there's something there to indicated a completed activity. Maybe the "processed" value?

onedayfishsale commented 6 years ago

Hmm, the "processed" thing is a no-go, it's true for both a completed and in-progress activity. This is using the GET /users/{id}/trips.json method.

I'll see if I can find more information from RWGPS.

MikeJansen commented 5 years ago

Same here.

I have Tapiriik set up to sync from RideWithGPS to Strava. It was working fine but now I'm noticing that my Live Logging sessions are getting synced in the middle of the ride. Their must be a unique identifier for the ride that is stored on your server because even if I delete the mid-ride sync from Strave, I can't get the final ride to sync. I also tried setting my Live Log to "Just Me" (instead of Public) and then saving the ride as Public when it was done but this doesn't help either. I'm guessing Tapririik see's the in-progress ride isn't Public and marks it as "not syncable" or something so even once I was save it as Public, it doesn't help because Tapiriik is ignoring it by then.

So I'm back to manually exporting from RideWithGPS and importing into Strava currently.

MikeJansen commented 5 years ago

I've got an email into RideWithGPS to ask if their API indicates anywhere a Live Logging on an active trip.