Fjällnotes

Teaching a Raspberry Pi to shut down before the UPS gives up

July 2026

The UPS speaks USB HID, NUT understands it, and the Pi only needs to listen. The tricky part was the battery reporting 40% right before dying. I now shut down on runtime, not on charge.

[ups]
  driver = usbhid-ups
  port = auto
  override.battery.runtime.low = 300