Battery level alert for Sailfish OS
Find a file
2020-11-30 22:35:58 +02:00
application Version bump to 3.6-3 2020-11-17 16:10:49 +02:00
rpm Use nemonotifications-qt5 instead of lipstick-qt5-tools for notifications 2020-11-30 20:47:08 +02:00
service Signal timer reset when necessary 2020-11-30 22:35:58 +02:00
.gitignore Implement charger control and charger plugged in boolean 2020-03-20 17:26:29 +02:00
harbour-batterybuddy.pro Split project into GUI application and CLI service 2020-04-24 11:22:07 +03:00
LICENSE.md Move license, readme and screenshots back to project root 2020-06-14 15:59:33 +03:00
README.md Update README.md 2020-06-14 16:11:59 +03:00
screenshot1.jpg Move license, readme and screenshots back to project root 2020-06-14 15:59:33 +03:00
screenshot2.jpg Move license, readme and screenshots back to project root 2020-06-14 15:59:33 +03:00
screenshot3.jpg Move license, readme and screenshots back to project root 2020-06-14 15:59:33 +03:00
screenshot4.jpg Move license, readme and screenshots back to project root 2020-06-14 15:59:33 +03:00

harbour-batterybuddy

Battery Buddy is a Sailfish OS application that pauses and resumes charging at set percentage values, or alerts the user when the battery charge level gets too high or too low. This helps in increasing the battery lifespan. There are a lot of research material on this, the numbers I pulled into the application as a reference were pulled from Battery Universe online article BU-808.

The application logo is a 5 minute craft at the moment, and can be considered a permanent temporary solution. It doesn't look nice in the notification view. If you have the skills to make a better logo using the same idea (a heart inside the battery) and are willing to spend a little time for this project, please feel free to send a new logo to me.

The application consist of three parts: the GUI, the monitoring daemon and the filesystem permission daemon. The filesystem daemon, harbour-batterybuddy-oneshot.service, always starts when the device boots. Its sole purpose is to set correct permissions for the charger control file of the device, so that everything else can be started as user nemo, minimizing security impact. The monitoring daemon, harbour-batterybuddy.service, actually sends the notifications and pauses/resumes charging.

Another known "issue" at the moment is that the alert sound played uses the media volume setting instead of ringtone volume setting. Any tips on this are appreciated.

Keep your battery healthy and help our dying planet, even if it is just for a tiny little bit!