FHEM Forum

FHEM => Automatisierung => Thema gestartet von: ritchie am 18 November 2013, 17:45:56

Titel: at genau zu jeder vollen Stunde erzeugen ...
Beitrag von: ritchie am 18 November 2013, 17:45:56
Hallo Zusamen,

wie erzeuge ich eigentlich einen at zu jeder vollen Stunde /halben Stunde genau !

define evtRoutineEveryHour at +*01:00:00 { .... }

startet zwar jede Stunde, aber nicht synchron zu jeder zeitlichen Stunde. Also um 17:00, 18:00, 19:00, ....

Gruss R.
Titel: Antw:at genau zu jeder vollen Stunde erzeugen ...
Beitrag von: justme1968 am 18 November 2013, 17:59:12
attr evtRoutineEveryHour alignTime 00:00

gruss
  andre
Titel: Antw:at genau zu jeder vollen Stunde erzeugen ...
Beitrag von: ritchie am 18 November 2013, 18:02:40
Hi,

habe ich doch glatt gerade in der Doku. gefunden.


Attributes

    disable
    Can be applied to at/watchdog/notify/FileLog devices.
    Disables the corresponding at/notify or FileLog device. Note: If applied to an at, the command will not be executed, but the next time will be computed.

    skip_next
    Used for at commands: skip the execution of the command the next time.

    alignTime
    Applies only to relative at definitions: adjust the time of the next command execution so, that it will also be executed at the desired alignTime. The argument is a timespec, see above for the definition.
    Example:
        # Make sure that it chimes when the new hour begins
        define at2 at +*01:00 set Chime on-for-timer 1
        attr atr2 alignTime 00:00


Danke

für jede halbe Stunde wäre es dann:

attr evtRoutineEveryHalfHour alignTime 00:30


Gruss R.