Compare commits
2 Commits
26e3d94ec7
...
bf7eedf3ea
| Author | SHA1 | Date | |
|---|---|---|---|
| bf7eedf3ea | |||
| 7eea70f1ce |
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user