diff --git a/chch-power.py b/chch-power.py index afc44a7..dd74d28 100644 --- a/chch-power.py +++ b/chch-power.py @@ -3,6 +3,7 @@ import pifacecommon.mcp23s17 import time from subprocess import call import sys +import os button_count = 2 longpress_delay = 0.4 @@ -78,7 +79,7 @@ def switch_longpressed(event): event.chip.output_pins[event.pin_num].toggle() elif pin_shortpress_count[event.pin_num] == 2: if event.pin_num == 0: - call(["/root/chch-power/light.sh"]) + call(["/home/automation/chch-power/light.sh"]) chch_status_output(event.chip) # switch all power off with a very long press