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

    evok doesn't work without a network connection

    Official EVOK API
    2
    6
    2142
    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.
    • C
      coopi last edited by

      Hi,
      I'll use the UNIPI board in combination with evok without any network connection but when I separate the UNIPI board from my network I get the error message Network is unreachable.
      In my network everything works fine.
      I use the relay outputs and the digital input.
      Is there a way to use the UNIPI board with evok, or another API, on an island without any network connection?
      Kind regards
      coopi

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

        I've not had that problem, and my Unipi/Pi are regularly not on the network. Where do you see this error showing up? What effect does it have on your system?

        Merv.

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

          There are some python scripts which report errors.
          For example socket.py and _core.py within the python 2.7 library.
          How did you config your PI?
          Did you setup a static IP address and if so where?

          coopi

          M 1 Reply Last reply Reply Quote 0
          • M
            Merv @coopi last edited by

            @coopi
            I cannot recall in detail, but I am connecting wirelessly to a router. The router runs dhcp, and therefore the Pi gets whatever address it is given. The router is often powered off, and when it powers back on the Pi can get a different address which makes it fun trying to find it again.

            On the pi, I'm running a Python program that reads the inputs and sets the outputs for controlling lights. As that's the only script I'm running, I do not see any errors when it's disconnected from the network. In the background, the evok script also runs, and when it's connected to the network I can access it using my phone and turn the relays on and off etc. but I never see the error you describe.

            Merv.

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

              To get the digital input status i use a callback function in my python script.
              You wrote you read the input.
              Which function you use to read the digital input?
              coopi

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

                I found the problem.
                In one of the scripts I used the IP address which was assigned by the router before.
                I substituted it with the localhost address 127.0.0.1 and all works fine.
                @Merv, thanks for your help!
                Kind regards
                coopi

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