Donc si je comprends bien, si je met le script dans le dossier system
je doit mettre ~/system/Safe-Power-Monitor/safe_power_monitor.py
Et pour la détection de batterie faible, le powerboost 1000C a une patte LBO (low battery) destiné a ca.
Voila un extrait de la doc:
LBO - not a leveraged buy out! this is the Low Battery Output. By default it is pulled high to BAT but when the charger detects a low voltage (under 3.2V) the pin will drop down to 0V. You can use this to signal when its time to shut down or alert the user that the battery is low. There is also a red LED connected to this pin.
Donc si je comprend bien cette patte passe au niveau bas quand la batterie passe sous le seuil de 3.2V