Use on Radxa Zero 3W
PiSugar3 uses I2C-3 bus on Radxa Zero 3W. After installing the battery and pisugar-server, you need to manually modify the configuration to read battery information.
- Edit the
/etc/pisugar-server/config.jsonfile to specify the I2C bus:
{
"i2c_bus": 3,
}
- Restaert the
pisugar-serverservice to apply the changes:
sudo systemctl restart pisugar-server
That's it! You should now be able to read battery information through the pisugar-server webUI.