In this video, we will configure NUT server on OpenWRT to manage & monitor UPS devices. We will also setup a dashboard to view the status of the UPS and configure NUT client to perform action when the AC power is down or the battery of the UPS is running low.
NUT stands for Network UPS Tools, an application that provides many control and monitoring features, with a uniform control and management interface. More than 140 different manufacturers, and several thousands of models are compatible with it (Eaton, APC, MGE, Tripple Lite, Dell, HP, etc). Basically, you will need nut-server to communicate & collection the information regarding the UPS device, and then install NUT client on any of the client devices, whether it is running OpenWRT, ubuntu, Raspberry Pi OS or even VMware ESXi to react when some information is sent from the nut-server regarding the power status.
You can visit the home page of this project at https://networkupstools.org/ to learn more about it.
In this video, I will walk you through the UPS devices compatibility list and how to find the driver for your UPS. After that, we will set up nut-server on OpenWRT to communicate with the UPS device. Finally, we will install nut-web-cgi to have little nice dashboard showing the UPS status.
Video timeframe:
00:00 - Intro & Demo
02:07 - NUT (Network UPS Tools) Project
03:02 - NUT Hardware Compatibility List
05:18 - OpenWRT NUT Documentation
06:23 - Install NUT package on OpenWRT LuCI
07:41 - Install NUT UPS driver on OpenWRT LuCI
08:53 - Check if UPS is connected with lsusb (SSH)
09:48 - 1st attempt - Failed - Configure NUT with LuCI
11:18 - 2nd attempt - Configure NUT on OpenWRT via SSH
11:53 - Configure nut-server - /etc/config/nut_server
15:42 - Configure nut-web-cgi - /etc/config/nut_cgi
17:03 - Download & Setup NUT client on Windows 10
18:34 - Access Denied Troubleshooting
21:30 - Test - NUT CGI Web Dashboard on OpenWRT
21:47 - Test - Win NUT Client on Windows 10
OpenWRT NUT page - https://openwrt.org/docs/guide-user/s...
NUT Hardware Compatibility List - https://networkupstools.org/stable-hc...
Win NUT Client - https://github.com/gawindx/WinNUT-Client
Thanks for watching and see you all in the next video!