Battery notifier 2

Rating: 
4.8
Your rating: None Average: 4.8 (5 votes)

Similar to "Battery notifier" app, but without icon and have setting in Setting app (see screenshots).

How it work:
* Choose checking and notification interval (1-5min).
* Choose upper and lower limits.
* Apply button will apply your changes and will start service. You can see status will be changed to "active".
* Now you can change upper & lower limits without pressing Apply button..
* It will stop notification when you connect to power supply (if less than lower limit) or if you will change the lower limit in setting. Same for disconnect from power supply (if more than upper limit).

NOTES:
* "Battery notifier" app will be uninstalled automatically.
* From version 0.1-8 it's conflicting with "Charger control" app.

v0.1-19
- Update for v2.2.1.18 and above.

v0.1-18
- QML tuning for v2.1.2.3 and above.
- Fix for notifications (for 2.1.2.3).

v0.1-17
- Small changes in qml for upper limit.
- Small changes in script for Jolla C. Now max upper limit for stop charging is 99%, on 100% it not work.

v0.1-16
- Enlarged circle image in battery status page.

v0.1-15
- Small fix for Jolla C/Intex AquaFish.

v0.1-14
- Small cosmetic changes.
- Added page for viewing Battery status (official jolla page).
- Should work on Jolla 1, Jolla C and Intex AquaFish.

v0.1-12
- Added option to hide notification on "Stop charging" and "USB power only".

v0.1-11
- Added option to stop charging on Upper limit and use usb power.
- Thanks to kimmoli, LVPVS and xkr47 (https://together.jolla.com/question/95476/how-to-prevent-charging-from-usb/).
- Some changes in qml files and scripts.
- Charger-control app added as conflict.

v0.1-9
- Added option to stop charging on Upper limit and restore charging on your custom value (slider). Inspired by this thread: https://together.jolla.com/question/55764/charging-limitation-for-enhanc..., thanks to LVPVS.
- Pressing on Apply button is NOT required for changing limits and charging sliders.
- How to is updated.
- Small changes in qml file.

v0.1-8
- Added option to stop charging on Upper limit and restore charging on your custom value (slider). Inspired by this thread: https://together.jolla.com/question/55764/charging-limitation-for-enhanc..., thanks to LVPVS.
- Pressing on Apply button is NOT required for changing limits and charging sliders.
- How to is updated.

v0.1-7
* Small changes in the script.

v0.1-6
* Changed way to display activation when notification started.

v0.1-5
* Added display activation when notification started. * Added tablet version.

v0.1-4
* Small fix for minutes setting.

v0.1-3
* Compatible with v2.0.0.10 and above.

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
File batterynotifier2-0.1-16.i486.rpm227.68 KB16/09/2016 - 16:51
File batterynotifier2-0.1-16.armv7hl.rpm234.09 KB16/09/2016 - 16:51
File batterynotifier2-0.1-17.i486.rpm227.86 KB27/09/2016 - 03:34
File batterynotifier2-0.1-17.armv7hl.rpm234.26 KB27/09/2016 - 03:41
File batterynotifier2-0.1-18.i486.rpm227.8 KB01/11/2017 - 11:55
File batterynotifier2-0.1-18.armv7hl.rpm180.99 KB28/10/2017 - 19:33
File batterynotifier2-0.1-19.i486.rpm233.32 KB11/09/2018 - 17:49
File batterynotifier2-0.1-19.armv7hl.rpm184.24 KB11/09/2018 - 17:49
Changelog: 

- Update for v2.2.1.18 and above.

Comments

meierrom's picture

I'm interested to have a closer look at the code. Is the code open?

philter's picture

This app is very useful:

 

1. I can finally track the battery status via pebble smartwatch

 

2. I can mantain the battery healthy with charge limit (upper).

 

I would like to support more for Xperia X dev, is it feasible?

 

Thank you

Schturman's picture

Thanks, but i can't.. I don't have Xperia X..

olf's picture

Thanks for v0.1-18, I already wondered about the missing notifications and was about to take a closer look at it.

I also had the impression, that v0.1-17 was not properly working when reaching the upper limit under SailfishOS 2.1.2.3 (it just kept on charging on my Jolla 1 phones), so I will watch the behaviour of v0.1-18 in this situation.

Kudos to you for the many useful and nice little additions you implement and maintain for SailfishOS!

Schturman's picture

Hi. I still didn't find solution for non-removable notification... See this: https://together.jolla.com/question/169905/questionpython-script-problem... and this: http://talk.maemo.org/showthread.php?t=100000

objectifnul's picture

No visible action (stop charging) with SailfishX v2.1.3.5 (Xperia X). I guess this is hardware related.

Schturman's picture

I don't have X and can't check....

objectifnul's picture

I know, so I don't blame you. Anyway, would you have got one, there is no Kymijoki-specific SDK for now.

Schturman's picture

I don't think I will get one...

UiPo1goo's picture

The tool is good but the menu descriptions has cofused me. I used "Stop charging on upper limit" with a upper limit set in this option to chargins only. But in fact it stopped charging and then starts using batteriy instead of the power supply. I wonder me here is a slider needed. The upper message slider will never be arrived.
Ok I found the correct setup for me in "Only usb power on upper limit." But what is the exact cause for the slider "Choose when starting again"? It will not start charging if phone is not below this limit?

 

Mikaela's picture

Option to change the notification sound would be nice. I personally don't mind the default, but it sounds too much like a doorbell which makes the dog (german splitz mittel) bark a lot which I mind.

Schturman's picture

You can change it manually, two files:
/usr/share/sounds/jolla-ambient/stereo/battery_notifier.wav
/usr/share/sounds/jolla-ambient/stereo/battery_notifier_full.wav

Change them to yours audio files, but leave the file names.

crakby's picture

On 2.0.2.51 and Jolla C, the stop on upper Limit is not working. On my Jolla 1 with 2.0.2.51 the stop on upper limit also not works anymore. Great App, for having long lasting battery

Schturman's picture

Sorry, I still didn't revision for jolla C (don't have time)... But on jolla1 it work for me on 2.0.3.14... Need check again...

PawelSpoon's picture

Hello Schturman,

thanks for the app ! i have a problem with latest version. it does not stop to charge anymore.

my wife is using an older version without the usb and hide notification option and there it is working.

i am using the latest version on 2.0.2.48 and there it will only notify not stop anymore.

Thanks !

Jan

 

P.S. i have returned back to version .9 or .10 and now it is working again

Schturman's picture

Hi. Can you provide more details? What exactly not work? What you checked ?

PawelSpoon's picture

it will not turn off charging.

it will show the message that the upper limit was reached but it will not stop charging as it did in the older version

Schturman's picture

How you know it not turn off ?

I need more information...

1. What you use "Stop charging" or "Only USB-power" ?

2. What your upper limit ?

You also can try to stop service and start it again...

Also you can install AIDA64 from jolla store and check battery when you get notification and see if it continue charging or it write Discharging or Not charging... For me all work like expected...

PawelSpoon's picture

my upper limit is 84. so when phone shows 100% it did not stop charging.
iam using stop charging option. btw i have 4 meaages from notifier that wont go away from events. where can i delete those manually?

Schturman's picture

Hmmm, it weird... Did you tried stop service, restart lipstick and start service again? And you sure you usr "stop charging" and not "usb power only" ?
To removd all messages you can run as ROOT:
sqlite3 /home/nemo/.local/share/system/privileged/Notifications/notifications.db "select * from notifications;"|grep "Battery notifier"|cut -d '|' -f1|while read line; do su -l nemo -c "notificationtool -o remove -i $line" && sleep 2; done

And what slider parameter for "Choose when start charging again", maybe it reach this parameter and started charging again?

PawelSpoon's picture

70%.
before your patch i have tried the situations solution but it never worked for me.
can it depend on cable or charging current ? means Ampere ?
as mentioned before your tool did work for me and then did stop around 6 weeks ago. now it does send a message but wont stop.to charge

Schturman's picture

I didn't change the behavior for this... This is a reason that I don't understand why it not work for you and work for me like before... Try uninstall, reboot and install again, setup again and press apply...

PawelSpoon's picture

uninstall install did also clean the orphan messages ;-)

Schturman's picture

what you mean "Orphan" messages ? If you mean meassages from notification screen, yes, it should remobe them too.

objectifnul's picture

Instead of switching to discharge mode and asking to disconnect the power source when batt level reaches its upper limit, would it be possible to switch to the special mode "stop charging and start powering the device from USB only"?

BTW, xkr47's "Charger Control" cover actions are no longer working after Battery Notifier is installed (Jolla phone, Taalojärvi)

Schturman's picture

1. Can try to inplement...
2. I forgot to add this app to conflicts, because it work with the same files... I will update later...

MoritzJT's picture

Thanks for the latest version! It is nearly perfect when it comes with decent default values and should be stock on SFOS anyway to help manage good battery health!

I wonder if it would be possible to disable notifications but still have the program logic act upon the predefined values to switch to USBpower only ;)

 

Great work!

Schturman's picture

I can add switcher for disable/enable all notifications ?

MoritzJT's picture

That would be perfect :)

Schturman's picture

Ok, I thought a little bit, I will add this switchers only under "Stop charging" and under "Usb power only". Nevertheless this app for notifications :) Update later today.

Pages