https://github.com/zachorr/rpi_prowl_apcupsd
Code to send me a push notification with Prowl to tell me the status of my UPS via apcupsd
https://github.com/zachorr/rpi_prowl_apcupsd
apcupsd prowl prowl-notifications python python2 ups
Last synced: about 1 year ago
JSON representation
Code to send me a push notification with Prowl to tell me the status of my UPS via apcupsd
- Host: GitHub
- URL: https://github.com/zachorr/rpi_prowl_apcupsd
- Owner: ZachOrr
- Created: 2018-01-19T01:03:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T13:26:21.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T10:25:27.011Z (over 1 year ago)
- Topics: apcupsd, prowl, prowl-notifications, python, python2, ups
- Language: Python
- Size: 115 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# APC Monitoring on Raspberry Pi with Prowl
A few scrips I use to monitor the status of my APC Back-UPS RS1000G with a Raspberry Pi. I use [Prowl](https://www.prowlapp.com/) to send notifications to my phone to alert me of changes

## Setup
Ensure Python is installed on your Raspberry Pi. Setup `apcupsd` on your Raspberry Pi [following these instructions](http://www.anites.com/2013/09/monitoring-ups.html).
Clone and install `prowlpy` to use on your system
```
$ git clone https://github.com/jacobb/prowlpy
$ cd prowlpy
$ sudo python setup.py install
```
Clone and install `rpi_prowl_apcupsd` on your Pi
```
$ git clone https://github.com/ZachOrr/rpi_prowl_apcupsd.git
$ cd rpi_prowl_apcupsd
$ sudo python install.py
```
Modify `apcupsd.service` to setup environment variables with your Prowl API key
```
$ sudo nano /lib/systemd/system/apcupsd.service
[Unit]
Description=UPS power management daemon
Documentation=man:apcupsd(8)
[Service]
Environment='PROWL_API={YOUR_KEY_HERE}'
ExecStartPre=/lib/apcupsd/prestart
ExecStart=/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
Type=forking
KillMode=process
PIDFile=/var/run/apcupsd.pid
[Install]
WantedBy=multi-user.target
```
Reload `systemctl` and restart `apcupsd.service`
```
$ sudo systemctl daemon-reload
$ sudo systemctl restart apcupsd.service
```