From 91a348e5b9fb19564a9b210b81c7f9000cb4f1d3 Mon Sep 17 00:00:00 2001 From: EpicKiwi Date: Sat, 4 Nov 2023 18:01:24 +0100 Subject: [PATCH] Updated settings --- settings.py | 4 ++-- zigbee-opener.service | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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