Sublimis / UrbanBiker

Urban Biker issue tracker and Knowledge Base
https://urban-bike-computer.com/
17 stars 4 forks source link

[Improvement] Add autostart recording #23

Open Niflheim123 opened 5 years ago

Niflheim123 commented 5 years ago

I have an old phone that I want to use as a bike computer. For now I have to turn on the screen, open the app and press record. When I finish my ride I press stop. I would like a feature to make the app autostart recording (like in a bike computer). So let`s say I get on my bike and start moving, there should be a trigger somehow (by using gyro sensors maybe?) and start auto recording (gps included). This also raises a small problem, lets say I remove the phone from my bike and go somewhere, but a solution maybe would be if the recording starts after 30 seconds or so after checking the speed to be over 3 km/h. If there is an option like this, sorry for the post.

Sublimis commented 5 years ago

Currently there's no such option within the app. Relying on gyro/GPS to start/stop the tracking is a slippery terrain, as you realized at the end of your post. Even if the app manages to recognize that you started to ride a bike, this cannot be instantaneous and you'll always miss the first 20 seconds of the ride or so, because the app must first realize (by gyro) that something's going on, then turn on the GPS to verify if you are indeed moving or not, and what is your speed before deciding to start tracking. This would be relatively slow and not very reliable process. What we could do that would be better, is to tie autostart recording feature to a speed/cadence/power sensor and its (in)activity. We'll give it a thought.

Niflheim123 commented 5 years ago

That seems like a very good idea to use a cadence/speed/power sensor.

kotofos commented 3 years ago

On modern Android phones, there is also google physical activity API, which probably can be used to detect it. Personally, I do not mind if it misses the first N seconds, it is still will be a useful feature in case one forgot to start recording.

Sublimis commented 3 years ago

Hi, we're getting closer to this (physical activity recognition). However, it won't be fully automatic just yet.

The app already utilized activity recognition (AR) for sensors only. Upcoming app version also utilizes AR to detect standing still in order to put GPS to sleep when not needed and to reduce GPS noise. But tracking still must be manually activated for this to work. Quite a few more preconditions must be fulfilled for this to work automatically, and we're not there yet, sorry. But it is something we're working on.

Thanks for the feedback!