jroal / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
http://jimroal.com/slist.htm
95 stars 33 forks source link

switch on Bluetooth automatically when driving by car (by GPS or GSM [prefered] speed) #221

Closed toxtox closed 5 years ago

toxtox commented 8 years ago

Most of the day I do not need bluetooth and therefore bluetooth is switched off. When I drive by car I have to enable bluetooth manually and somethimes I forget it to enable.

Would it be possible to switch on bluetooth at a defined driving speed for example 30km/h or faster? And switching it off again if speed is lower then for example 25km/h after a delay of 15minutes?

My GPS is normally disabled, too and as an alternative I use the less precise GSM location by cell id ( https://github.com/n76/Local-GSM-Backend/blob/HEAD/README.md ).

Theroretically the speed calculation should work with GSM-cell-id-locations in the same way as with GPS, but I suppose that the speed calculation can only give you a decent speed result after a few kilometers.

But switching on bluetooth automatically after a few kilometers would be much better for me then forgetting it completely.

jroal commented 8 years ago

This could be a nice feature. It could become a battery issue though as the app would need to constantly figure out if you are driving by monitoring acceleration, GPS, and other location data. I will need to look into options. Maybe Android has this covered and I could just register a call-back.

jroal commented 5 years ago

I believe Tasker can do this. Automate might also. I am putting this out of scope of this app.