A Discord alert event for APC branded UPS battery backups.
Note that while .NET 6 & the APC UPS Daemon are both cross-platform, this project is built with Windows in mind as it creates .bat
files and uses the Windows apcupsd installation directory. For Linux servers, check out https://github.com/bp1313/apcupsd-discord, which inspired this project.
Program.cs
and change the values of DISCORD_WEBHOOK_URL
and, optionally, BATTERY_STATUS_CHECK_FREQUENCY
cd
to the location of the .csproj
and run dotnet build
. This should build the .exe
and place it (along with the onbattery.bat
and offbattery.bat
event handlers) in the apcupsd installation directory: C:\apcupsd\etc\apcupsd