Monitor PiJuice HAT battery and power input informations through netdata. Netdata visualizes: battery charge level, battery voltage, battery current, battery temperature, power voltage, power current.
PiJuice HAT is a fully uninterruptable / uninterupted power supply that will always keep your Raspberry Pi powered!
Netdata is high-fidelity infrastructure monitoring and troubleshooting. Open-source, free, preconfigured, opinionated, and always real-time.
- Clone or download this repo into a folder on your Pi
- Change directory
cd PiJuice-netdata
- Copy collector file to netdata plugins.d destination.
cp pijuice.chart.py /usr/libexec/netdata/python.d/
- Copy collector config file.
cp pijuice.conf /etc/netdata/python.d/.
- Append
pijuice: yes
to/etc/netdata/python.d.conf
- Login as netdata user
sudo su -s /bin/bash netdata
- Re/start netdata
systemctl restart netdata
- Execute
/usr/libexec/netdata/plugins.d/python.d.plugin pijuice debug trace nolock
Error: Permisson denied (ERROR: pijuice[PiJuice] : update() unhandled exception: [Errno 13])
sudo chmod a+rw /dev/i2c-*
This is temporary and is lost at next boot so, to fix it permanently you need to do the following:
vi /etc/udev/rules.d/99-com.rules
If this line exists: SUBSYSTEM=="ic2-dev", GROUP="i2c", MODE="0660"