mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
16 lines
479 B
Bash
16 lines
479 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# What do I want: If I'am sitting e.g. outside I don't want that the rollo goes
|
||
|
# down. solution: if the button for e.g. rollo will be pressed after 16:59
|
||
|
# o'clock then the at-job for going down by sunset will be deleted
|
||
|
|
||
|
# put something like the following into your fhz100.cfg:
|
||
|
# notifyon rolwzo /usr/local/bin/rolwzo_not_off.sh
|
||
|
|
||
|
|
||
|
FHZ="/usr/local/bin/fhem.pl 7072"
|
||
|
order="delete at set rolwzo off"
|
||
|
|
||
|
DATESTRING=`date +"%H"`
|
||
|
[[ $DATESTRING > 16 ]] && $FHZ "$order"
|