diff options
| -rw-r--r-- | weather-board.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/weather-board.service b/weather-board.service new file mode 100644 index 0000000..c85d3af --- /dev/null +++ b/weather-board.service @@ -0,0 +1,17 @@ +[Unit] +Description=Weather Board MQTT publisher for Home Assistant +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=yuval +WorkingDirectory=/home/yuval/dev/weather-station +ExecStart=/usr/bin/python3 /home/yuval/dev/weather-station/mqtt_ha.py +Restart=on-failure +RestartSec=10 +StandardOutput=journal +StandardError=journal + +[Install] +WantedBy=multi-user.target |
