owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.27k stars 470 forks source link

[Feature Request] Switch mode based on charging or battery #1690

Closed mikedolx closed 1 month ago

mikedolx commented 1 month ago

Hi,

as got my own tracks finally working 😁 I'd kindly like to request a feature. I would like to be able to switch mode, depending if the phone is connected to a charger, or running on battery.

For example, when I'm in the car, I usually connect the charger. I also switch the mode to movement, due to the "higher velocity" of the vehicle. Because I usually forget to switch back to minimal or significant change, my battery drains quite fast.

Is this already possible to implement with the current version of owntracks?

Thanks and BR, Michael;

growse commented 1 month ago

We usually recommend Tasker or some other device orchestration app for this type of thing. I'm not sure I want to re-invent a rules engine within OT itself.

mikedolx commented 1 month ago

OK, thanks for the hint. Are there any tipps on the booklet, in his to implement this, based on http? I guess all automations of that kind are based on mqtt?

jpmens commented 1 month ago

Tasker is protocol un-specific; ask your local search engine for examples

growse commented 1 month ago

Booklet has a section here: https://owntracks.org/booklet/features/android/#automation-via-tasker-automagic-etc