The UPS is now powering my linux system and is connected using the USB cable supplied with the unit.
When I run "lsusb", I see:
Bus 001 Device 009: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS
I see "nut" in the fedora packages, so I do this:
su dnf install nut Package Arch Version Installing: nut x86_64 0:2.8.5-3.fc44 Installing dependencies: freeipmi x86_64 0:1.6.15-5.fc44 libi2c x86_64 0:4.4-4.fc44 libmodbus x86_64 0:3.1.12-1.fc44 libntlm x86_64 0:1.8-4.fc44 neon x86_64 0:0.37.1-1.fc44 nut-client x86_64 0:2.8.5-3.fc44 Installing weak dependencies: nut-xml x86_64 0:2.8.5-3.fc44 Transaction Summary: Installing: 8 packagesI could also install nut-cgi, which would allow me to run a web server with a page that displayed UPS information. I also see nut-monitor, which I did not install.
There is also a package "nuttcp", but it has nothing to do with NUT and UPS devices.
nut-scanner -U Scanning USB bus. [nutdev-usb1] driver = "usbhid-ups" port = "auto" vendorid = "0764" productid = "0601" product = "CP1500PFCLCDa" serial = "CXXRS7000562" vendor = "CPS" # bus = "001" # device = "009" # busport = "002"
su cd /etc/ups vi nut.confThere are several files in /etc/ups -- we start with nut.conf In nut.conf, almost everything is commented out and I change this one line:
#MODE=none MODE=standaloneEventually I will use "server" rather than standalone. There are notes about this in the conf file. In particular firewall rules will need to be fiddled. Nut has 3 layers: drivers, upsd, and upsmon.
In ups.conf the game is to paste in information from the scan above.
I try this:
[myups] driver = usbhid-ups port = auto desc = "My CyberPower 1500"The documentation says that the value of "port" will be ignored for a USB driver, but still recommends setting the value to auto.
After this, I got into trouble. We will continue in part 2