lunarys / mqtt-shutdown-trigger

Service for shutting a device down via MQTT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTT shutdown trigger

What does this do?

This is basically a service listening on a specified MQTT topic, to shut down the device when OFF is received. This also includes means of setting the remote shutdown on hold or disabling it from the local machine if required.

Installing

The install script will place the python script, the systemd service file and configuration templates in the default locations. The OpenRC is included for legacy reasons, as I tried using that for a while, so it may not work in its current state.

Warning: The install script includes some hardcoded UID that should be changed. I did not come around to doing that.

About

Service for shutting a device down via MQTT.

License:GNU General Public License v3.0


Languages

Language:Python 75.0%Language:Shell 25.0%