• Recent
    • Tags
    • Popular
    • Register
    • Login

    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

    Set Value and Time from Meta Data Source

    Wishlist
    3
    5
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      apl
      last edited by

      Hi, I have added a new protocol to mango (openv4j) for Viessmann heating systems (http://www.viessmann.com and (the reverse engeneering page in german) http://openv.wikispaces.com/). - One If its stable source code will follow.

      so reading one value take 3 sec ... to get the timepoint of burner starts I get the operating time for the burner.... So I thougth getting the change and then calculate the difference from the last value gives the timepoint of start/end very precicely.

      So is ther a way to archive this?? - Set value and timepoint for that value?

      Arne

      1 Reply Last reply Reply Quote 0
      • C
        craig
        last edited by

        @apl said:

        So is ther a way to archive: Set value and timepoint for that value?

        I believe this is upcoming in the next mango version, see this thread: http://mango.serotoninsoftware.com/forum/posts/list/224.page towards the end

        1 Reply Last reply Reply Quote 0
        • A
          apl
          last edited by

          No I think not exactly what I want.

          I want something like:

          var isCurrentlyON = p11.value > p11.valueBeforeThis.value;
          result.value = isCurrentlyON;
          result.time = p11.time - (p11.value - p11.valueBeforeThis.value) * 1000;
          return result;

          This should calculate the exact timestamp when the burner switches ON.

          Arne

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler
            last edited by

            Hi Arne,

            Assuming your script calculations are correct, all you would have to change (come the next version) is this:

            TIMESTAMP = p11.time - (p11.value - p11.valueBeforeThis.value) * 1000;

            The setting of this global variable will be detected after the script runs and will be used as the timestamp of the sample.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • First post
              Last post