Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

QuickApp loop at specific time


Question

Posted (edited)

 

Hi,

 

Trying to figure out how to make sure the looping stuff is always done every hour, on the hour.

Do i need to make another loop so when starting the QuickApp, it will wait until it gets a trigger to start looping, e.g, "wait until hour:min is nn:00" ?

 

BR

Edited by 747

6 answers to this question

Recommended Posts

  • 0
Posted

Could be something like this (interval 60 minutes from now):

 

Please login or register to see this code.

 

  • Like 1
  • 0
  • Inquirer
  • Posted

    Thanks @SmartHomeEddy,

     

    But if i start it say, 18:32, then it will always be triggered the same time next hour (19:32).

    I have done another loop so after a reboot or just re-inintialize the QA to be run, it will only trigger the "real" loop to be started at exactly xx:00 but was wondering if there was another smarter way to do it..

     

    BR

    • 0
    Posted

    At 18:32 the formula will be:

     

    Please login or register to see this code.

     

    (60-32)*60-0=1.680 

     

    you need 18:32 - 19:00 = 28 minutes (28*60=1.680)

     

     

     

     

    • Like 1
    • 0
  • Inquirer
  • Posted

    Thanks @SmartHomeEddy!


    BR

    • 0
    Posted

    You can check the minutes value — if it’s "00" then you’re at the top of the hour:

    Please login or register to see this code.

    • Like 1
    • 0
  • Inquirer
  • Posted

    Got it, thanks guys!

     

    BR

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...