• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. SW Q&A
    3. Official EVOK API
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • S

      Read Inputs with Python
      • s0fralk

      4
      0
      Votes
      4
      Posts
      2791
      Views

      T

      @s0fralk

      Basically yes, I recommend websocket but it is up to you what is your approach.

      That is for those, who want to develop their own application like Evok which will take care of the low level work with GPIOs and I2C.

    • J

      Neuron extensions
      • jilet

      2
      0
      Votes
      2
      Posts
      1206
      Views

      T

      Hello @jilet,

      I am sorry but unfortunately not. The work is however in progress. I will try to push the update asap.

    • V

      WebSockets and UniPi Neuron
      • vvanouytsel

      3
      0
      Votes
      3
      Posts
      1667
      Views

      V

      Hi @tomas_hora

      Thanks for your reply, I thought that might be the issue. Using the WebSocket example from the evok git page works perfectly so I will build on that example.

      Thanks!

    • R

      EVOK: wget/POST api only works when control panel is open in browser
      • rob

      8
      0
      Votes
      8
      Posts
      3253
      Views

      M

      @tomas_hora Hi,
      I did a fresh Rasbian install, got the neuron online, did a
      git clone http.....
      set the permissions (as per the GIT page)
      started it up.
      and....

      PERFECT!

      I have my python monitoring program starting automatically as a service, and I had to put a little sleep command in it on start as it was trying to run before EVOK started. Runs great.

      Many thanks.
      Merv.

    • S

      1Wire Sensor ID keeps changing - No w1_slave file
      • SOswald

      7
      0
      Votes
      7
      Posts
      2335
      Views

      S

      @tomas_hora Well, I guess I did have a small typo in my owfs.conf file, but I have fixed that. Here is my current owfs.conf file:
      0_1490041735702_UniPi_4.JPG

      All the lines above these are commented out.

      I still see multiple sensors with invalid IDs, and there are no w1_slave files:
      0_1490041819222_UniPi_5.JPG

      Thank you again.

      Steve

    • P

      1Wire temperature sensor not showing
      • paulot

      2
      0
      Votes
      2
      Posts
      1106
      Views

      T

      @paulot Do you see the device with address 18 on the i2c bus? Issue i2cdetect -y 1

    • S

      Noob question - Any HTML examples out there?
      • SOswald

      2
      0
      Votes
      2
      Posts
      1267
      Views

      T

      Hello @SOswald and welcome to the community.

      First of all I am sorry that there is still not enough documentation or examples.

      We designed EVOK only to act as API which provides easy access to all IOs of UniPi including basic web interface providing overview of state of IOs and basic configuration. It is not a designed to act as a example of a application for complete description of behavior or visualization of the sysytem.

      So if you like coding, take a look e.g. at Node-Red. We have made simple example of communication using websockets on it and you can also easily build nice web interafes using Node-Red.

    • R

      Enabling counter mode for Neuron inputs via evok
      • rob

      1
      0
      Votes
      1
      Posts
      1052
      Views

      No one has replied

    • T

      Adding MCP23017 on i2c
      i2c mcp2308 • • tradlost.se

      2
      0
      Votes
      2
      Posts
      1450
      Views

      T

      @tradlost.se Basically yes, but since I do not know much about your board it is hard to tell.

    • S

      Recommended way to access inputs/ooutputs
      • sebastian-azeti

      10
      0
      Votes
      10
      Posts
      4205
      Views

      T

      @cvdd https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay is only for Neurons and will not work for the UniPi 1. For UniPi 1 there is only Evok as API from us. But if you need Modbus and do not want to use the HTTP REST api, websocket or JSON RPC, then take a look at someone implementing Modbus for UniPi 1

    • U

      systemctl enable evok throws error in install script
      • ubee

      2
      0
      Votes
      2
      Posts
      1491
      Views

      T

      @ubee Thanks for the tip! I will take a look at it.

    • M

      debug log file size
      • Merv

      5
      0
      Votes
      5
      Posts
      2085
      Views

      U

      @Merv,

      I have the same problem. It doesn't help to change the log level in the service file. It still continues dumping info about every read attempt which is annoying. I guess the "I" in the log indicates log level is Info. And it remains I whatever level you set.

    • T

      Open port RS485
      • tomas254

      8
      0
      Votes
      8
      Posts
      2747
      Views

      T

      Try reinstalling the Modbus server as described here: https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay

    • H

      Input State remains the same
      neuron pi l203 evok api input • • HarishKumar

      2
      0
      Votes
      2
      Posts
      1468
      Views

      T

      @HarishKumar
      The evok itself is not designed to handle the logic of your application. That's why we call it API.

      It is using Tornado which means the server itself runs in one loop so you need to have all the program behavior ready before it is called mainLoop.start(). So if you run an infinite loop anywhere in evok, you stop everything else (reading, setting, all APIs, ...).

      So I suggest using that APIs, it is much more easier to implement and you have the same functionality. But if you would REALLY want to do it in evok, you would have to prepare your program in a function, all tasks that would take more time would have to be decorated as coroutines and the call has to be yielded in order not to stop the main loop. The logic behind this is a little bit complicated to describe in one post :)

    • B

      reading relay state via WebSocket
      • Boy Lenssen

      3
      0
      Votes
      3
      Posts
      1831
      Views

      B

      @tomas_hora Awesome! When I have time again for this project, I'll try it!

    • B

      RUN1 & RUN2 blinking in 2-second interval
      • Baggz

      8
      0
      Votes
      8
      Posts
      2901
      Views

      B

      @tomas_hora

      BTW, I absolute love Neuron! <3 I'll put it everywhere.

      Having a simple REST API is a bless.

      Thank you for all your hard work that goes into UniPi!

    • Z

      Node-red : set/reset multiple output
      • zeus

      3
      0
      Votes
      3
      Posts
      2537
      Views

      T

      @zeus I will think about it how to make it possible, Thanks for the tip: https://github.com/UniPiTechnology/evok/issues/11

    • F

      Setting Password for Evok Webpage
      • fipsi72

      4
      0
      Votes
      4
      Posts
      1716
      Views

      T

      @fipsi72 You can place evok behind a proxy of course...

    • J

      Neuron with JSONPRC and python
      • Juergen

      4
      0
      Votes
      4
      Posts
      2172
      Views

      T

      @Juergen Relay 1 does not exists. Check the web interface of evok for correct identification. The correct identification is eg. 2_1

    • K

      1-Wire: Send bits to DS2408
      • Kitaps

      5
      0
      Votes
      5
      Posts
      1713
      Views

      T

      @Kitaps IC stands for Integrated Circuit. What code?