This script will display a battery icon according to battery level and will show a warning video when reaching low level. Upon critical battery level, the script will show a critical battery level warning video and then introduce a safe shutdown.
Script upgraded to Python 3 and https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15 library.
(Forked from HoolyHoo/Mintybatterymonitor)
Go to raspberry command prompt or SSH.
Make sure you are in the home directory by typing cd ~
and then type:
wget https://raw.githubusercontent.com/jesusignazio/Mintybatterymonitor/master/MintyInstall.sh
Then type:
sudo git clone https://github.com/jesusignazio/Mintybatterymonitor.git
Then type:
sudo chmod 777 MintyInstall.sh
And then type:
sudo ./MintyInstall.sh
Finally reboot to have it all start on boot with:
sudo reboot
- 0.0.1
- Work in progress
https://github.com/jesusignazio/gbz-battery-monitor
- Fork it (https://github.com/jesusignazio/gbz-battery-monitor/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request