PiSugar / pisugar-power-manager-rs

PiSugar Power Manger in rust language
https://www.pisugar.com/
GNU General Public License v3.0
129 stars 15 forks source link

[BUG] PiSugar WebUI is blank, plus many other problems #109

Closed cjwawrzonek closed 3 months ago

cjwawrzonek commented 3 months ago

Environment

To Reproduce Steps to reproduce the behavior:

  1. Connect PiSugar
  2. Plug in power
  3. Double tap power button
  4. See error

Expected behavior I expect the WebUI to display the proper information, battery percentage, etc

Screenshots image

Additional context I was attempting to set the auto_power_on feature so that it would turn on with power, which was not working either. Eventually, I just stopped being able to see information through the web UI. I tried resetting it, as well as reinstalling all the power manager software. In general, the device has been extremely flaky at best.

cjwawrzonek commented 3 months ago

I've finally resolved this and the bug was quite ugly (my fault). I had loaded the howchoo power button weeks ago to play around, and it installed a systemd service that sets a pull up / down resistor on pin 3. This was running in the background and corrupting communication. Make sure to clear your old systemd services 😢