Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Bluetooth / wifi connections automatically change MODE for battery saving #1973

Open
zunami opened this issue Feb 6, 2025 · 7 comments

Comments

@zunami
Copy link

zunami commented Feb 6, 2025

hello!

I have the problem that the battery of my smartphone runs out relatively quickly in “Move mode”. Nevertheless, I'm often in buildings where I don't move around at all. Now I have come up with the idea, as I know this from other apps, that certain functions change when you are near a certain Wifi, for example.

My feature request is:
Automatically change the mode when you are connected to a certain WiFi or a certain Bluetooth, for example. And when you disconnect again, it jumps back to the original mode. This results in a balance between accuracy where you want it (high battery consumption) to I am at a certain point (now and then gps is battery saving)

Example 1:
Home Wifi active with SSID: homeworld... = “Significant location change mode”
I go out of the house and leave the Wifi = automatic switch to “Move mode”

Example 2:
I am out of the house no Wifi or Bluetooth = “Significant location change mode”
I get into the car and it connects with Bluetooth ID Skoda... = automatic switch to “Move mode”
When I get out of the car and end this Bluetooth connection = automatic switch to “Significant location change mode”

Whenever a WIFI or Bluetooth connection is saved, the mode changes back and forth.
I think this function would bring back some battery power

@jpmens
Copy link
Member

jpmens commented Feb 6, 2025

This has often been suggested. Our recommendation is to use Tasker or a similar app to change intents.

@zunami
Copy link
Author

zunami commented Feb 6, 2025

that's what i thought too. only now it's no longer so easy to use tasker because it has to overcome so many locks in android.

it would be simpler to integrate it into owntracks where it belongs? and for everyone to access it immediately

@vsatmydynipnet
Copy link

It looks like using automation tools is pretty hard meanwhile without root. running into the same problem now.

#1996

@zunami
Copy link
Author

zunami commented Mar 8, 2025

yes i also think it's a shame that it's not included in the app. an all in one option for better battery management.

I have now created a setting in the Tasker app in very tedious work and with AI support.
e.g. when you are in home wifi, owntracks switches to “Significant Change Mode” when you leave home wifi, owntracks switches to “Move Mode”.

here you can import it to taskernet.com
https://www.taskernet.com/?public&tags=owntrack&time=AllTime

@vsatmydynipnet
Copy link

I am not a dev, but

https://github.com/zaneschepke/wgtunnel

has all the code for wifi/mobile detection and "do something" on non trusten wlan or mobile.

changed from OpenVPN to Wireguard/WG Tunnel and have no more problems with Auto Switching on VPN when leaving home.

@zunami
Copy link
Author

zunami commented Mar 9, 2025

I am not a dev, but

https://github.com/zaneschepke/wgtunnel

has all the code for wifi/mobile detection and "do something" on non trusten wlan or mobile.

changed from OpenVPN to Wireguard/WG Tunnel and have no more problems with Auto Switching on VPN when leaving home.

I don't quite understand what the VPN has to do with it. I also use VPN (Tailscale) to transfer my movement data.

It's about how the device has just connected or which devices are nearby. The mode changes to save the battery. This has no effect on the VPN.

@vsatmydynipnet
Copy link

Sorry, probably I wrote it to create misunderstandings. wgtunnel hast exactly the settings, owntracks would need. With trusted Wifi, or action on mobile connection. For sure Owntracks mus switch move mode in this case. It has nothing to do with VPN, it only should show settings which would be very appreciated to be included in Owntracks.

I think I found a temporary soluition using Automation but not from F-Droid, needs 1.8.2 apk from the dev site, till this is in F-Droid. There is the Termux permission and I think it will work sending the command to TermUX where is manually already runs.

But still would be great to have it in Owntracks, because normal users probably will fail with the TermUX/Automation setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants