Daemon for controlling APC UPSes


/api/formula-linux/apcupsd.json (JSON API)

Linux formula code on GitHub

Current versions:

stable 3.14.14
bottle 🍾 catalina, mojave, high_sierra, sierra, el_capitan

Depends on:

gd 2.2.5 Graphics library to dynamically manipulate images
libusb-compat 0.1.5 Library for USB device access
For apcupsd to be able to communicate with UPSes connected via USB,
the kernel extension must be installed by the root user:

    sudo cp -pR $(brew --prefix)/Cellar/apcupsd/3.14.14/Library/Extensions/ApcupsdDummy.kext /System/Library/Extensions/
    sudo chown -R root:wheel /System/Library/Extensions/ApcupsdDummy.kext
    sudo touch /System/Library/Extensions/

To load apcupsd at startup, activate the included Launch Daemon:

    sudo cp $(brew --prefix)/Cellar/apcupsd/3.14.14/Library/LaunchDaemons/org.apcupsd.apcupsd.plist /Library/LaunchDaemons
    sudo chmod 644 /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
    sudo launchctl load -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plist

If this is an upgrade and you already have the Launch Daemon loaded, you
have to unload the Launch Daemon before reinstalling it:

    sudo launchctl unload -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
    sudo rm /Library/LaunchDaemons/org.apcupsd.apcupsd.plist
Fork me on GitHub