Now, start the driver service (this is the same as running upsdrvctl start) and check the status. The friendly name (e.g., cyberpower1) must be one word, no spaces. Edit the configuration file at /etc/nut/ups.conf and add the following information at the bottom. Over on NUT’s compatibility database, you can see which driver to use for the CP1500PFCLCD (in my case, it was usbhid-ups).
sudo apt-get update & sudo apt-get install nut nut-client nut-server Just a warning, the systemd service will fail to start until we make a configuration file. With this configuration, the master shuts down last, giving the slaves time to shutdown first.įirst, connect your UPS to your Raspberry Pi via the included USB cable. However, you can setup a more advanced configuration consisting of a “master” computer that runs the driver, server, and client, but also have clients running on one or more separate “slave” computers. It consists of one UPS and one computer which runs the driver, server, and client.
In my case, I’m using the “simple” configuration, also known as standalone. The NUT suite offers a variety of configurations.
CyberPower provides software called PowerPanel Personal that runs on Windows, Mac, and Linux. I need some way to monitor the status of the UPS and act on it if a certain threshold is reached. In my case, I was happy to be safe instead of sorry, and went for the Pure Sine Wave UPS.ĭisclaimer - I am not an electrical engineer -) Software # During this time, no power is being sent, and Active PFC power supplies may shutdown (which defeats the purpose of the UPS in the first place). However, during a switchover to battery power, Simulated Sine Wave has a momentary gap in power (shown in the red circle). Simulated Sine Wave, shown on the right, mimics Pure Sine Wave and is typically cheaper. Power supplies that use Active Power Factor Correction (Active PFC) typically require Pure Sine Wave, which is shown on the left. This decision is based off of the type of power supply in the equipment you’re protecting. A crucial factor in choosing a UPS is whether you need Pure Sine Wave or Simulated Sine Wave. The UPS I’m using is a CyberPower CP1500PFCLCD, specifically, this one. I’m using the Raspberry Pi because it is a low power device, it is always on (hosting a webserver, Unifi controller, and a few other things), and can be run off the UPS it is monitoring.
Hardware #Īs you guessed by now, I’m going to be using my Raspberry Pi to monitor the UPS. For this, I need an Uninterruptible Power Supply (UPS) and a computer to monitor it with. I wanted to purchase a UPS to protect my equipment from this, but I also wanted to receive alerts when the power goes out, and possibly shutdown equipment. With the winter weather, we’ve been having brownouts and power losses more frequently.