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

    1-Wire rpc Problem

    Scheduled Pinned Locked Moved Official API - Evok
    4 Posts 2 Posters 2.4k 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.
    • R
      Raph7454
      last edited by

      Hi,

      I am un Unipi V1.1 User and I would like using 1-Wire devices with python scripts.
      It doesn't work !

      Here is my script and the error :

      from jsonrpclib import Server
      s=Server("http://127.0.0.1/rpc")
      s.owbus_scan(1)

      Traceback (most recent call last):
      File "<pyshell#2>", line 1, in <module>
      s.owbus_scan(1)
      ProtocolError: (-32603, u'Internal Error')

      However, in the web interface, the Device DS18S20 works perfectly.

      Thank you for your help !

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

        Hi @Raph7454!

        The 1Wire RPC interface isn't properly backported to the UniPi 1.1. That said I have now made the necessary changes to make it work. You will need to reinstall your image before the changes come up.

        I hope this clears it up for you,

        Kind Regards

        1 Reply Last reply
        Reply Quote 0
        • R
          Raph7454
          last edited by

          Hi Tomas !

          Thank you so much for your help

          I work with Raspberry PI 3 and Raspbian Stretch 9.4.
          I have installed Evok two weeks ago.

          What do you mean about "image" please, can I just make a manually re-install of Evok API ? what's the best way to do that please ? I am a beginner with Linux OS..

          I see your files : "tknot Fixed 1Wire RPC for UniPi 1.1" in https://github.com/UniPiTechnology/evok/tree/master/evok

          Thanks
          Best regards

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

            Hi @Raph7454,

            Yes you will need to reinstall EVOK. Please use a clean Raspbian installation if possible, which is to say reinstall both EVOK and Raspbian.

            EVOK makes a number of changes to Raspbian, and installing it twice on the same installation can potentially cause issues.

            Kind Regards,
            Tomas

            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