Add setup/install script

This commit is contained in:
2026-08-14 23:08:28 +08:00
parent adb8573833
commit 6c73f3e706
3 changed files with 413 additions and 15 deletions
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=Raspberry Pi Temperature and Humidity Monitor
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=@INSTALL_ROOT@
ExecStart=@VENV_PYTHON@ @INSTALL_ROOT@/temp-humid-read-loop.py
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target