apcupsd (UPS Management Software).

1 post
by sim_tcr » Mon Dec 24, 2012 9:48 am

I was searching for a substitution for APC PowerChute software for raspberry pi to manage my APC Back-UPS ES 500. apcupsd works well.

Install and configure instruction below,

Install apcupsd
Code: Select all
sudo apt-get install apcupsd

In /etc/default/apcupsd chane 'ISCONFIGURED=no' to 'ISCONFIGURED=yes'
Code: Select all
sudo nano /etc/default/apcupsd

Edit /etc/apcupsd/apcupsd.conf
Code: Select all
sudo nano  /etc/apcupsd/apcupsd.conf

Change the values as below,
Code: Select all

Restart apcupsd
Code: Select all
sudo apcupsd restart

Check UPS status,
Code: Select all
apcaccess status

If you like a web interface where you can check UPS status, install apcupsd-cgi. Note: You need to have apache2 installed and running.
Code: Select all
sudo apt-get install apcupsd-cgi

Edit /etc/apache2/apache2.conf and add line 'ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/' to it
Code: Select all
sudo nano /etc/apache2/apache2.conf

Restart apache2
Code: Select all
sudo service apache2 restart

You can check the status at http://YOUR_SERVER_IP/cgi-bin/apcupsd/multimon.cgi

The same has been documented at http://raspisimon.no-ip.org/ups.php
Raspberry Pi Model B x 2, Raspberry Pi 2 x 2, Transcend 32GB Class 10, Transcend 16GB Class 10, Transcend 8GB Class 4, Custom 12V 1.5A (stepped down to 5.5V)
Posts: 325
Joined: Tue Nov 06, 2012 1:01 pm
Location: Bangalore