jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
751 stars 274 forks source link

Stationary bike #1113

Open fabiotsh opened 2 years ago

fabiotsh commented 2 years ago

First of all, thanks for the great straight to the point no BS app.

I sync my runs in runalize, and would like to sync stationary bike sessions as well, with all the heart rate data so that the site could do all its calculations. However runnerup won't start unless GPS in locked, and that doesn't happen while I'm indoors. I tried other apps but their data is bogus, could you guys add the option for "non GPS" activities? Could be indoor workout, elliptical, etc. I'm imagining it's just a matter of allowing an activity to start and simply do not record GPS, only heart rate data.

Thanks

gerhardol commented 2 years ago

The app currently "ticks" from GPS updates, so some work is needed to be able to record without GPS. Similar, the export possibilities assumes that a GPS track exists, also need to be handled. Nothing really major, one of many changes that could improve the app.

Isaac314 commented 2 years ago

I second this request. It's useful for more than just stationary bikes. It's kind of annoying when I start any exercise, even outdoors, it can't start until it's locked onto GPS. If I'm in an area with lots of trees or buildings, it could take a while. To be fair many apps seem to do this. Only the old Meerun app did not and it was great, it meant it would start tracking GPS as soon as it got lock, but before that time it was able to pick up HR data, steps, etc.

nutpantz commented 1 year ago

Gps updates are based on user controlled time (gps poll interval). Why not just have the app record at that interval regardless if there is a gps lock or not. (Or the option to record at the poll interval even with invalid gps data) (It's still records bad data if you go through a tunnel and lose gps signal will it not?) The gps data would be invalid, but i don't see how that would affect the export in tcx format. Time heart rate cadence etc should still be readable. (Mind you i have not imported anything to desktop in years, but i should start again)

gerhardol commented 1 year ago

Sure, a background tick could be implemented with some kind of algorithm to use the time-tick or GPS-tick (you do not get to read at the time tick). The speed need to be handled somehow. Similar, all export types could be implemented, for .gpx it would mean that the non GPS points would be discarded. Maybe discard the time tick only too if too close to GPS locations. There are some other internal formats too.

Can sure be done, but there are some details. I do not use this functionality, so it would be hard to get all the details myself.

nutpantz commented 1 year ago

Can sure be done, but there are some details. I do not use this functionality, so it would be hard to get all the details myself.

you could get the details just by turning off your gps and using every thing else you use.
it just the lack of gps that matters.or ignoring the gps signal. you could even mock the gps location to a non moving point. (like how people who ride stationery bikes in windows would get a signal that never moves)