+ Antworten
Ergebnis 1 bis 4 von 4
  1. #1
    Registriert seit
    Aug 2020
    Beiträge
    2

    Standard Scripttimer accuracy

    Hello,

    Im using the normal way with the scripttimer to switch of lights after a certain time. I've read in the documentation that the use of scripttimer has a high accuracy till 3600 seconds.

    The duration of the timer can only be set on an exact second value if the timer value is 3600 or less. For values above 3600, irregularities can occur, depending on start time and/or divisor as the script timer shares the same limitations as normal cyclic events and their time templates. E.g., if a timer is set to 5 hours at 6:00, it triggers at 6:00, 11:00, 16:00, 21:00, and 1:00, even though 2:00 could have been expected. Values above the day border are rounded up to whole days.
    Now i want to make a script timer with 7200 second (2hours). How do you guys do this? Do you still use the scripttimer? Ive found a workaround with saving a timestamp and check every 60 seconds if it passed.

    Kind regards,
    Thomas

  2. #2
    Registriert seit
    Feb 2005
    Ort
    Lübeck
    Beiträge
    24,120

    Hi Thomas,

    use a normale Event (IPS_CreateEvent) and properly configure it to run every two hours.

    paresy

  3. #3
    Registriert seit
    Aug 2020
    Beiträge
    2

    Thank you for your help. I created a event and run it by this; (changed it to 120 seconds to test)

    PHP-Code:
            IPS_SetEventCyclic(1046321001120); 
            
    IPS_SetEventActive(10463true); 
    The script executes first at the whole minute and two minutes after. How can i start an event with exact 2minutes after its activited?

  4. #4
    Registriert seit
    Feb 2005
    Ort
    Lübeck
    Beiträge
    24,120

    You need to properly set the https://www.symcon.de/en/service/doc...yclictimefrom/ to you current minute/second, which will sync the event to this timepoint.

    paresy

Ähnliche Themen

  1. ScriptTimer verändern
    Von bumaas im Forum Entwicklung mit PHP-SDK/Delphi-SDK
    Antworten: 4
    Letzter Beitrag: 24.07.20, 14:36
  2. Scripttimer Fragen
    Von drapple im Forum Skripte, PHP, SQL
    Antworten: 5
    Letzter Beitrag: 13.06.18, 22:43
  3. ScriptTimer
    Von Jimmyrakete im Forum Allgemeine Diskussion
    Antworten: 6
    Letzter Beitrag: 16.06.16, 13:15
  4. ScriptTimer - Zeitumstellung
    Von tomgr im Forum Allgemeine Diskussion
    Antworten: 7
    Letzter Beitrag: 31.03.15, 20:19
  5. Frage zu ScriptTimer
    Von DerStandart im Forum Skripte, PHP, SQL
    Antworten: 5
    Letzter Beitrag: 27.11.10, 11:23