This commit is contained in:
=
2026-05-18 16:05:11 -04:00
commit c61fe1a5c4
13 changed files with 582 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# Copy to /etc/patlite-mqtt/patlite-mqtt.env (install-systemd.sh does this on first run).
# chmod 600 recommended if MQTT_PASSWORD is set.
MQTT_BROKER=localhost
MQTT_PORT=1883
#MQTT_USERNAME=
#MQTT_PASSWORD=
MQTT_PREFIX=patlite
MQTT_CLIENT_ID=patlite-mqtt
#FAST_FLASH_DELAY=0.25
#SLOW_FLASH_DELAY=0.5

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Patlite signal tower MQTT daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Environment=PYTHONUNBUFFERED=1
EnvironmentFile=-/etc/patlite-mqtt/patlite-mqtt.env
WorkingDirectory=@INSTALL_DIR@
ExecStart=@VENV_PYTHON@ -m patlite_mqtt
Restart=on-failure
RestartSec=5
User=@SERVICE_USER@
Group=patlite
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target