WOLNUT is a lightweight Python service designed to work alongside NUT (Network UPS Tools) to automatically send Wake-on-LAN (WOL) packets to client systems after a power outage.
wolnut... get it?
Important
Help Wanted
This project is no longer actively maintained by me. As a non-developer that stays very busy with content creation, I'm just not equipped to stay on top of this and make it a very useful project. So, I'm looking for someone interested in taking over its ongoing development and maintenance. I'm open to bringing on a new maintainer for this repository or having someone continue the project through an independent fork.
If you're interested, send an email to info@hardwarehaven.media with the subject line "WOLNUT".
When a UPS (connected to NUT) switches to battery power, WOLNUT:
- Detects the power event via
upsc - Tracks which clients were online before the outage
- Waits for power to be restored and the battery to reach a safe threshold
- Sends WOL packets to bring back any systems that powered down
This helps reboot systems automatically after a controlled shutdown caused by a power loss — especially useful for homelabs, small servers, and media boxes.
- Auto-detect MAC addresses with ARP
- Tracks online status of clients via ping
- Supports NUT with or without authentication
- Persistent state file for post-reboot recovery
- Runs as a standalone Python service or Docker container
See the Quickstart guide.
See docker-compose.yml for an example docker compose file