Autor Thema: at genau zu jeder vollen Stunde erzeugen ...  (Gelesen 5764 mal)

Offline ritchie

  • Sr. Member
  • ****
  • Beiträge: 579
at genau zu jeder vollen Stunde erzeugen ...
« 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.
APU1.d4 Ipfire & Fhem (Homematic + MAX) - Produktiv
Cubietruck (1Wire - USB) - Produktiv
Raspberry PI (1Wire - USB) - Testsystem

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 19287
Antw:at genau zu jeder vollen Stunde erzeugen ...
« Antwort #1 am: 18 November 2013, 17:59:12 »
attr evtRoutineEveryHour alignTime 00:00
gruss
  andre
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline ritchie

  • Sr. Member
  • ****
  • Beiträge: 579
Antw:at genau zu jeder vollen Stunde erzeugen ...
« Antwort #2 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.
« Letzte Änderung: 18 November 2013, 18:08:41 von ritchie »
APU1.d4 Ipfire & Fhem (Homematic + MAX) - Produktiv
Cubietruck (1Wire - USB) - Produktiv
Raspberry PI (1Wire - USB) - Testsystem

 

decade-submarginal