UPS and power

Version 0.1.0 · plug-in API >=1.17 <2.0

Not published yetHow to add it
On this page

UPS and power: Problems

Find what is wrong with UPS and power, then follow the numbered answer.

Find your answer
Flow chart: UPS and power is not working as it should. The same chart is written out in words after it.Cannot read it or Lastreading failedOn battery or LowbatteryNeeds setting upOn mains power, but Iexpected an alertNothing is listening atthat address and portIt could not be reachedIt did not answer intimeIt refused the username or passwordNUT has no UPS calledUPS and power is notworking as it shouldWhat does its cardsay?What does it sayafter NUT orPeaNUT?Check the address1Check the sign-in2Read what the UPSsays3Enter the address4Check the alerts5Check the UPS name6
The chart in words

Start: UPS and power is not working as it should

1 Check the address

  1. For NUT, check the address and port (3493 unless you changed it) from another computer: upsc ups@192.0.2.10 lists the variables when it works.
  2. NUT must listen on an address other computers can reach: in upsd.conf, LISTEN 0.0.0.0 3493 (or your server's address), then restart upsd. Where Starboard and NUT run on the same computer, use the computer's own address on your network, not localhost: UPS and power runs in its own container.
  3. For PeaNUT, open its address in a browser on another computer. It shows its page.
  4. Check Read the UPS through matches the program at that address.

2 Check the sign-in

PeaNUT only. In UPS and power's settings, enter the user name and password again and select Save. The password is never shown again, so enter it afresh. Select Check now.

3 Read what the UPS says

  1. On battery means the UPS says the mains power is gone. Check the plug, the socket and the breaker.
  2. The alert clears by itself when the UPS reports mains power again.
  3. A UPS that is charging after a cut shows On mains power at once, with a battery under 100%.

4 Enter the address

Open UPS and power's tab, choose how to read the UPS, enter its address and select Save, then Activate.

5 Check the alerts

  1. Alerts are on by default: check Send alerts through Starboard is activated.
  2. Check Starboard's own alerts are on in Settings, then Alerts. UPS and power uses the same place.
  3. It asks once a minute: a cut shorter than a minute may pass unseen.
  4. Starboard before 0.26.0 does not take alerts from plug-ins: the card then says so, and updating Starboard fixes it.

6 Check the UPS name

NUT lists each UPS by the name in ups.conf. Leave UPS name empty to use the first one, or enter the name exactly as upsc -l shows it.

Things this version does not do

  • Pause heavy jobs on battery: not possible yet. A plug-in cannot pause Starboard's own jobs. The card and the alert tell you; NUT's upsmon shuts the server down.
  • Tried against a real UPS: not yet. This version was tested with a made-up NUT server that follows NUT's text protocol and with recorded PeaNUT answers that follow its README. If your setup answers differently, the card says "Cannot read it" or shows no figures: tell us on the Discord support server or in an issue.

Find out more

This page on GitHub, where the help is written.