Skip to content

v0.1.0

Choose a tag to compare

@hobbyquaker hobbyquaker released this 30 Oct 11:15
· 4 commits to main since this release

The first release of lite-addon-nut, a Network UPS Tools (NUT) client for openccu-lite.

  • Connects to one or more upsd servers (TCP 3493), plain or with STARTTLS (the certificate verified against the system roots or a CA of your own, or accepted as it is), with or without a login. One connection per server, reconnected when it fails; outgoing connections only, no open port.
  • Rules per UPS: low battery (LB) while on battery, forced shutdown (FSD, no grace period), on battery and the charge below X %, on battery and the runtime below Y s, on battery longer than Z s, and communication lost while the UPS was last seen on battery.
  • The shutdown: a grace period that is cancelled when mains returns in time, a cancel button, a dry run that only logs, the choice between powering off and rebooting, and "every UPS must be critical" for a system fed by two UPS. The system is shut down through its own API (systemctl start poweroff.target); the page shows whether the addon's token holds the right for it (system:write, the only scope the manifest declares).
  • The page: a card per UPS (status flags, charge, runtime, load, voltages, time on battery, the rules firing, every variable), the servers with a Test connection button that lists their UPS, the UPS with their names discovered on the server, a test button for the dry run and one for the real thing, and the event log kept across a restart. German and English, light and dark.

Install nut-<arch>-<version>.tar.gz through the system's Addons page (aarch64 for a Raspberry Pi 4/3, x86_64 for the OVA, armv7l for a 32-bit system). The addon is not in the catalogue yet. Tested against NUT 2.8.1 (dummy-ups); a wrong upsd password is not noticed on a read, because upsd checks it only at an action.