diff --git a/settings.py b/settings.py index 087e684..82065b2 100644 --- a/settings.py +++ b/settings.py @@ -13,5 +13,5 @@ OPENING_TRIGGER_DELAY = 30 # Delay to wait before marking room as closed CLOSING_TRIGGER_DELAY = 5 -LOL_OPENED_CMD = """echo "opened" > /var/run/zigbee-opener/status """ -LOL_CLOSED_CMD = """echo "closed" > /var/run/zigbee-opener/status """ \ No newline at end of file +LOL_OPENED_CMD = """/var/www/html/status/set-status.sh opened""" +LOL_CLOSED_CMD = """/var/www/html/status/set-status.sh closed""" \ No newline at end of file diff --git a/zigbee-opener.service b/zigbee-opener.service index fe1ecef..770af4e 100644 --- a/zigbee-opener.service +++ b/zigbee-opener.service @@ -3,6 +3,7 @@ After=network.target [Service] + User=www-data Restart=always ExecStart=/usr/share/zigbee-opener/main.py Type=simple