Battery saver flow

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
TerenceAgius
Posts: 1
Joined: 04 Sep 2013 18:42

Battery saver flow

Post by TerenceAgius » 09 Sep 2013 10:47

These 3 flows enable you to conserve some battery; you just need to change the sound (if needed at all) which will alert you when data/wifi is turned off

How it works

The 2 small scripts simple set a global for when screen is on or off

The connectloop flow, checks if wifi and/or gprs is active, checks if screen is off and starts a 14 minute loop (every 15 minutes)
and turn on wifi/data for 2 minutes, and leaves it off for 9 minutes

So in a 15 minute arc starting 7am, if you are not using the phone (display on) the mobile will turn off both wifi and gprs/data. Granted that automagic itself eats up battery too, but I have been getting some extra juice since I did these scripts.

You can of course adapt as needed.
Attachments
connectloop.xml
(8.18 KiB) Downloaded 1150 times
Display on.xml
(981 Bytes) Downloaded 1081 times
Display off.xml
(985 Bytes) Downloaded 1021 times

wrek
Posts: 6
Joined: 01 Aug 2013 22:49

Re: Battery saver flow

Post by wrek » 10 Sep 2013 12:50

Genius! Well.. Creative at least. I'll be trying these out!

wrek
Posts: 6
Joined: 01 Aug 2013 22:49

Re: Battery saver flow

Post by wrek » 10 Sep 2013 21:19

Already having issues with this.

I had to add a check to see if music was playing because I don't want it shutting off my tunes.. (riding a motorcycle, screen may be off) but the bigger problem is, why are you looping 2-3 times inside the flow?
Couldn't you just call the flow back upon itself with a flag that you set in the flow?
Something like (psuedo code)

If FlowRunning is 1 then
Turn off Wifi and Data
Else
set FlowRunning=1
Turn on Wifi and Data
Sleep 2 minutes
End

Post Reply