• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Lasse
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Lasse

    • "time"-value for Digital Input on unipi?

      It is not:

      • Epoch
      • Seconds/Milliseconds since last change
        So what is it?
        I would like to check when the value last changed, to implement some delay in later processing to slow down the effect of a flapping input, but cannot understand what 'time' is related here.
        This is one example:
      {"bitvalue": 1, "glob_dev_id": 0, "value": 1, "circuit": "1", "time": 1012811606, "debounce": 0, "counter_mode": false, "dev": "input"}
      
      $ date --date @1012811606
      Mon 04 Feb 2002 08:33:26 AM UTC
      

      Like 18 years off...
      The same parameter on the 1-wire looks correct:

      {"interval": 3.0, "value": 31.55, "circuit": "28FA2A790B00001C", "address": "28FA2A790B00001C", "time": 1606155885.72539, "typ": "DS18B20", "lost": false, "dev": "temp"}
      
      posted in Official API - Evok
      L
      Lasse