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

    Problem using cmd:all using Websockets

    Scheduled Pinned Locked Moved Official API - Evok
    3 Posts 2 Posters 2.3k Views
    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.
    • O
      oflock
      last edited by

      Dear all,

      I try to use the cmd:all command using Websocket to retrieve all values at connexion in my custom UI.

      After digging into the source code, I managed to understand that there is a problem in the current master code on the Github:

      In evok.py, the line 113:

      result += map(lambda dev: dev.full(), Devices.by_int(dev))

      returns this exception when cmd:all command is fired:

      Exc: unsupported operand type(s) for +=: 'dict' and 'list'

      Could you please help me to correct this, as I really need this functionnality ? I would like not to have to use the REST API to do that, as I do everything using Websockets.

      Best regards.

      Olivier.

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

        Hi Olivier,

        The issue should now be fixed in the latest commit. Please see if it works for you, thank you for reporting the bug.

        Kind regards,
        Tom

        1 Reply Last reply
        Reply Quote 0
        • O
          oflock
          last edited by

          Hi Tom,

          great ! Problem fixed !

          Thanks for your fast answer and support.

          Regards.

          Olivier.

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post