Page 1 of 1

Battery Notification

Posted: 01 Dec 2014 12:08
by sambarlick
Hi guys,

I have a battery notification flow that i created, and i would like to add a couple of things.

I would like to be able to show the time remaining go discharged or time to charged.

Also i would like to show the current battery percent as the notification icon instead of a static icon. Is this possible? I was thinking i could use a variable but i can't see any option other than an static icon.

Thanks, Sam

Re: Battery Notification

Posted: 01 Dec 2014 12:22
by Bushmills
For estimated times remaining, you could calculate the difference between 1% change of charge triggers, and multiply that time with remaining charge percentage, or with 100-remaining charge. Be aware that especially a chargĂ­ng diagram is often not linear, especially when charging the last 5 to 10% - you may have to arithmetically compensate for lowered charging current in that range, for better accuracy. Also, devices often turn off above the 0% marker, which is easier to compensate.

Re: Battery Notification

Posted: 01 Dec 2014 22:55
by sambarlick
Thank you for replying.

I started on a bunch of flows that should calculate each individual 1% change average and based on that average an estimated time to charged/discharged.

This should be fun. I'll probably spend a good few hours tweaking this.

I guess my other question about having a variable as thr the notification icon is more a question for Martin but i guess it's something that will require his time to add it as a feature. I guess I'll have to settle for a variable notification title.

Sam

Re: Battery Notification

Posted: 02 Dec 2014 00:06
by Bushmills
A widget, with a variable used in its text showing, will be updated when the value of the variable changes.

Re: Battery Notification

Posted: 02 Dec 2014 00:41
by sambarlick
Yea i thought about a widget, but where do i put it? I don't really like widgets for something like that. I'd rather have it in notification drawer out of the way but still visible.

I've seen it done on other battery apps so it's clearly possible, it's just something I'll have to wait for if Martin decides he wants to do it.

Thanks, Sam

Re: Battery Notification

Posted: 02 Dec 2014 09:02
by kintrupf
sambarlick wrote:Yea i thought about a widget, but where do i put it? I don't really like widgets for something like that. I'd rather have it in notification drawer out of the way but still visible.
You'll have to use a "static" icon but you can of course choose the text that is displayed with your notification as you see fit. Assign a unique number to your notification and then update that notification as the battery level changes.

Re: Battery Notification

Posted: 02 Dec 2014 10:15
by sambarlick
kintrupf wrote: You'll have to use a "static" icon but you can of course choose the text that is displayed with your notification as you see fit. Assign a unique number to your notification and then update that notification as the battery level changes.
Thanks for replying. I currently have just a static battery icon for my battery notification and a variable in the notification title that updates when the battery level changes.

Sam

Re: Battery Notification

Posted: 13 Dec 2014 05:13
by BAZ
Hi Every One
I have created a flow which shows exact time to fully recharge in notification and widget with accuracy of 99.99999 %
Because this flow can adjust itself automatically every time you charge battery. So it is most accurate thing in ANDROID WORLD for predicting remaining charge time.
If you wish I can upload the flow that I have tested and polished for over 6 months continuesly

Re: Battery Notification

Posted: 15 Dec 2014 14:55
by kintrupf
BAZ wrote:If you wish I can upload the flow that I have tested and polished for over 6 months continuesly
I would love to see this flow!

Re: Battery Notification

Posted: 22 Feb 2015 15:25
by Luftwalk
BAZ wrote: If you wish I can upload the flow that I have tested and polished for over 6 months continuesly
Please upload it yes.