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

My quickApp runs some function every minute


Question

Posted

and i don't want :)

 

Hello every body,

For a reason that i don't understand, my QA are running every minute, sharp at 0 seconds of the minutes...

i don't know why and don't want to.

do you have any idea how i could stop this?

 

thanks in advance for your support,

mathias

 

4 answers to this question

Recommended Posts

  • 0
Posted
3 hours ago, Mateo said:

and i don't want :)

 

Hello every body,

For a reason that i don't understand, my QA are running every minute, sharp at 0 seconds of the minutes...

i don't know why and don't want to.

do you have any idea how i could stop this?

 

thanks in advance for your support,

mathias

 

 

Your QA crashes. It will restart the QA every ~minute.

Do you see any errors in the log?

If not:

sometimes when you crash in a setTimeout function it will not show any errors. Do you use setTimeout?

If so try to add this code in the beginning of the QA and you will see if your function crash inside setTimeout

Please login or register to see this code.

The line numbers may still be wrong

  • 0
Posted (edited)

Another way to see if QAs have crashed is to add this QA that looks for DeviceCrashedEvents and adds a notification in the notification centre at the top of the web GUI (the letter icon)

Unfortunately, the error messages are not always that helpful, but at least one sees that the QA has crashed.

You can turn it on/off with the switch.

Please login or register to see this attachment.

Edit1: could probably be improved by looking through the debug messages for the real lua error.

Edit2: doesn't see errors in setTimeout functions. Need to also use the setTimeout patch in the first post

Edited by jgab
  • Thanks 1
  • 0
  • Inquirer
  • Posted
    14 hours ago, jgab said:

    Another way to see if QAs have crashed is to add this QA that looks for DeviceCrashedEvents and adds a notification in the notification centre at the top of the web GUI (the letter icon)

    Unfortunately, the error messages are not always that helpful, but at least one sees that the QA has crashed.

    You can turn it on/off with the switch.

    Please login or register to see this attachment.

    Edit1: could probably be improved by looking through the debug messages for the real lua error.

    Edit2: doesn't see errors in setTimeout functions. Need to also use the setTimeout patch in the first post

     

     

    hello @jgab, always you :)

    Thanks for taking some time for me.

     

    it looks i finally found the error that was not appearing into debugging.

     

    self:setVariable("hueGroupName",     hueGroupName)

    don't support the space

     

    self:setVariable("hueGroupName",hueGroupName)

    and it works fine :)

     

    thanks a lot :) again

     

     

     

    • 0
    Posted
    4 hours ago, Mateo said:

    hello @jgab, always you :)

    Thanks for taking some time for me.

    it looks i finally found the error that was not appearing into debugging.

    self:setVariable("hueGroupName",     hueGroupName)

    don't support the space

    self:setVariable("hueGroupName",hueGroupName)

    and it works fine :)

    thanks a lot :) again

    Cause and effect is always tricky, especially when programming.

    However, it was not the space that caused your problem.You can have as many as you want between arguments in a call. Must have been something else, but what I don't know.

    In any case, don't be afraid of spaces... :-)

    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...