Page 1 of 1

Battery saver flow

Posted: 09 Sep 2013 10:47
by TerenceAgius
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.

Re: Battery saver flow

Posted: 10 Sep 2013 12:50
by wrek
Genius! Well.. Creative at least. I'll be trying these out!

Re: Battery saver flow

Posted: 10 Sep 2013 21:19
by wrek
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