fensterbogenbleuchtung -> UDP
This commit is contained in:
parent
62f1b4e86e
commit
ce17854095
|
@ -36,7 +36,7 @@ def switch_longpressed(event):
|
|||
elif pin_shortpress_count[event.pin_num] == 1:
|
||||
event.chip.output_pins[event.pin_num].toggle()
|
||||
elif pin_shortpress_count[event.pin_num] == 2:
|
||||
call(["/root/chch-power/ligth.sh"])
|
||||
call(["/root/chch-power/light.sh"])
|
||||
|
||||
def switch_verylongpressed(event):
|
||||
shortpress_delay = pin_last_rise_date[event.pin_num] - pin_last_shortpress[event.pin_num]
|
||||
|
|
|
@ -26,6 +26,6 @@ case $LIGHT_STATE in
|
|||
;;
|
||||
esac
|
||||
|
||||
echo -en "$(echo "$STATE" | cut -d";" -f1)" | nc -w1 172.23.92.15 49152 &
|
||||
echo -en "$(echo "$STATE" | cut -d";" -f2)" >/dev/udp/172.23.92.16/31302 &
|
||||
echo -en "$(echo "$STATE" | cut -d";" -f1)" > /dev/udp/172.23.92.15/49152 &
|
||||
echo -en "$(echo "$STATE" | cut -d";" -f2)" > /dev/udp/172.23.92.16/31302 &
|
||||
echo $LIGHT_STATE > $TMPFILE
|
Loading…
Reference in New Issue