Compare commits

...

2 Commits

Author SHA1 Message Date
tm24fan8 bf7eedf3ea Adjust config and service examples 2026-05-04 03:04:45 -04:00
tm24fan8 7eea70f1ce Make script executable 2026-05-04 03:04:30 -04:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ mqtt:
port: 1883
username: "" # leave empty if broker has no auth
password: ""
topic_prefix: "" # base topic: {topic_prefix}/{hostname}/...
topic_prefix: "monitor-py" # base topic: {topic_prefix}/{hostname}/...
client_id: "" # leave empty to auto-generate from hostname
monitor:
Regular → Executable
View File
+2 -2
View File
@@ -6,8 +6,8 @@ Wants=network-online.target
[Service]
Type=simple
User=USERNAME
WorkingDirectory=/home/USERNAME/monitor
ExecStart=/usr/bin/python3 /home/USERNAME/monitor/monitor.py
WorkingDirectory=/opt/monitor-py
ExecStart=/usr/bin/python3 /opt/monitor-py/monitor.py
# Required for xprintidle to query the X server for session idle time.
# Adjust :0 if your display is on a different number (check 'echo $DISPLAY').
Environment=DISPLAY=:0