• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    filter function

    Official EVOK API
    2
    5
    1446
    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.
    • J
      juntiedt last edited by

      hi Tomas,

      there is only one issue left that I want to solve.
      I want to filter out the "temp" events within evoc websocket events. I tried websocket interface and HTTP Client. Both without success.

      Currrently I filter the "temp" devices in my python program when reading websocket events. But I would suppose doing it within evok would be better and faster.

      I raised this issue already in december but did not get a working response due to you being on vacation.

      1 Reply Last reply Reply Quote 0
      • T
        TomasKnot last edited by

        The filtering should be possible by sending the "filter" command to websocket. Is it not working correctly? There were some issues in the last release, but code on the GitHub Master branch should be fine.

        1 Reply Last reply Reply Quote 0
        • J
          juntiedt last edited by

          Hi Tomas

          it looks like the sensors DS2438 which also have "temp" as device are not filtered out.
          DS18B20 seems to be ok.

          1 Reply Last reply Reply Quote 0
          • T
            TomasKnot last edited by

            It looks like the filtering didn't work for alternative nametypes - the primary nametype for 1Wire devices is 'sensor', but they report as 'temp' for compatibility reasons.

            It should be fixed in the latest Master on GitHub.

            1 Reply Last reply Reply Quote 0
            • J
              juntiedt last edited by

              Hi Tomas,

              reinstalled evok -master today but unfortunately the filter function with "temp" or "sensor" did not work for ds2438.

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