2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
fhem-mirror/fhem/contrib/rolwzo_not_off.sh
rudolfkoenig 1af4b93426 Major rewrite. See the HISTORY
git-svn-id: https://svn.fhem.de/fhem/trunk@30 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2007-03-19 14:59:37 +00:00

16 lines
492 B
Bash
Executable File

#!/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:
# define rolzwo_not_off notify rolwzo /usr/local/bin/rolwzo_not_off.sh
FHZ="/usr/local/bin/fhem.pl 7072"
order="delete rolwzo_off"
DATESTRING=`date +"%H"`
[[ $DATESTRING > 16 ]] && $FHZ "$order"