• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. bkeppel

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    bkeppel

    @bkeppel

    0
    Reputation
    145
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    bkeppel Unfollow Follow

    Latest posts made by bkeppel

    • Script Execution Delays

      I am trying to execute a set of automation rules a set amount of time after a boolean flag becomes true. I don't want to use a chron and would like for it to be event driven. I don't want to stop evaluation of the rest of the script - I just want to look at the difference in time from one event and if it exceeds a preset, perform a subsequent action. I have tried to write a sleep function and setTimeout - neither of which are working. Is there a better way to do this?

      Pseudocode is as follows:

      If startTimer = True and it has been 10s since startTimer has been set to True, set startRules = true.

      Note: I currently have startTimer enabled to udate context.

      posted in Scripting general Discussion
      B
      bkeppel