Go to file
2024-10-18 01:51:01 -05:00
.gitignore init 2024-10-08 17:24:23 -05:00
cicd_deploy.sh fix deploy sh 2024-10-12 02:33:53 -05:00
power.py add ssh client close 2024-10-12 03:24:28 -05:00
pve_ssh.py edit 2024-10-09 19:56:09 +00:00
pve_test.py edit 2024-10-09 20:35:42 +00:00
README.md Add README.md 2024-10-18 01:51:01 -05:00
requirements.txt fix reqs 2024-10-12 02:35:39 -05:00
ups-power.service add service unit file 2024-10-09 09:24:29 -05:00
usb_acpi.py chat gpt is retarded sometimes 2024-10-13 20:15:27 -05:00

This script uses NUT and a few other libraries to communicate UPS status for servers.

If the power goes out, it will send an email and a discord message with status and battery charge. If the power comes back, it will do the same.

Once battery reaches critical level, it will automate shutting servers down. When the power comes back and the battery is charged, it will fire them up again.