This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Script to poll the UPS (via apcupsd) and publish interesting facts to | |
# MQTT. | |
# Published under GPL3+ by Andrew Elwell <Andrew.Elwell@gmail.com> | |
import subprocess | |
# we use mosquitto for the MQTT part |