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

      How to disable and enable the 1Wire bus (M503)
      • Vesa Kauppinen

      23
      0
      Votes
      23
      Posts
      13838
      Views

      Martin Kudláček

      Hi @vesa-kauppinen,
      writing 1 to coil 1001:

      mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 1

      Writing 0:

      mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 0

      You can learn more from the quite detailed help of the mbpoll:

      mbpoll -h

      Regards,
      Martin

    • H

      Relay switching off after "random" time
      • Henkka

      4
      0
      Votes
      4
      Posts
      1746
      Views

      Martin Kudláček

      Hello @henkka,
      is it something you are able to demonstrate? The best thing would be, if you could send us the SD card image and we would be able to replicate the problem.

      Thanks for the answer in advance,
      Martin
      [email protected]

    • L

      EVOk API in docker
      • lukec

      2
      0
      Votes
      2
      Posts
      1289
      Views

      Martin Kudláček

      Hello @lukec,
      Docker is meant to be a platform for running HW independent SW. The Evok depends on the UniPi ModbusTCP server, which depends on the kernel module, so it is pretty much down to the hardware kind of application (heavy SPI and I2C communication). You can "enclose" your application with certain Evok version and configuration into Docker container, but it will still require manual work on the Docker host to make it transportable accross different UniPi controllers.

      Martin

    • S

      Get ULED State JSON Neuron xS40
      • samsoric

      1
      0
      Votes
      1
      Posts
      892
      Views

      No one has replied

    • roberts_lando

      Evok DALI support APIs
      • roberts_lando

      7
      0
      Votes
      7
      Posts
      3717
      Views

      Martin Kudláček

      Hi @martijn-hemeryck,
      We changed the repository's name to unipi-python-lighting and it resides here: https://git.unipi.technology/UniPi/unipi-python-lighting

    • L

      This topic is deleted!
      • liny195

      1
      0
      Votes
      1
      Posts
      19
      Views

      No one has replied

    • L

      This topic is deleted!
      • liny195

      1
      0
      Votes
      1
      Posts
      13
      Views

      No one has replied

    • C

      resend unchanged values from DS18B20 sensors
      • Christian

      2
      0
      Votes
      2
      Posts
      1232
      Views

      Martin Kudláček

      Hello @christian,
      the websocket interface sends only values which has changed. To request all current values, send this command at any time:

      {"cmd": "all"}

      Best regards,
      Martin

    • C

      1-wire sensors lost after some time
      • Christian

      3
      0
      Votes
      3
      Posts
      1623
      Views

      Martin Kudláček

      Hello @christian,
      it is hard to see from the picture, but it looks like your sensors are connected in star topology. This is highly unrecommended and you can read more about it here: https://www.maximintegrated.com/en/app-notes/index.mvp/id/148

      Best regards,
      Martin

    • J

      unipi1.1. evok to MQTT using Node-Red
      • juntiedt

      2
      0
      Votes
      2
      Posts
      1605
      Views

      J

      0_1551607450428_unipi-mqttt.JPG

    • C

      change configuration registers for DS18B20 (1 Wire)
      • Christian

      4
      0
      Votes
      4
      Posts
      1731
      Views

      Martin Kudláček

      Hello @christian,
      it isn't, but I just add it to the list of feature requests:)

      Best regards,
      Martin

    • C

      PWM output Neuron
      • cvrcejir

      5
      0
      Votes
      5
      Posts
      2156
      Views

      Martin Kudláček

      Hello @cvrcejir,
      I am sorry but I have to confirm that. Moreover, the Evok 2.0.7i brought even more errors than it fixed, so please, downgrade to the 2.07h: apt install evok=2.0.7h.

      I am sorry for the troubles,
      Martin

    • R

      Unipi with diozero
      • rick3ry

      4
      0
      Votes
      4
      Posts
      1716
      Views

      Martin Kudláček

      Hi @rick3ry,
      the evok only engages the pull up resistors via pygpio library. There is no other magic from our side, so you need to consult the behaviour of the diozero library with its authors.

      Thank you for understanding,
      Martin

    • B

      1-wire sensor not listed in /w1/devices/ -wrong plug occupancy?
      • bibabutzemann

      2
      0
      Votes
      2
      Posts
      1011
      Views

      Martin Kudláček

      Hello @bibabutzemann,
      the 1-Wire pinout on our PLCs is documented here: https://kb.unipi.technology/en:automation:02-glossary:1wire-hidden

      Since your sensor is not original from UniPi (we have 4 wires), I can only guess the function of the wires:

      red: Vcc
      black: GND
      yellow: 1-Wire

      But you need to refer to the documentation of your sensor, or do the blind test which may damage your sensor.

      Best regards,
      Martin

    • M

      Sysfs interface support for extension modules
      • marko2276

      2
      0
      Votes
      2
      Posts
      1239
      Views

      Martin Kudláček

      Hello @marko2276,
      only the local PLC IOs are exposed via the SysFS at the moment.

      Best regards,
      Martin

    • J

      Watchdog and LED Device mixed in JSON/REST Interface
      • Joerg

      5
      0
      Votes
      5
      Posts
      2414
      Views

      J

      Sorry Tomas, maybe I have problems understanding watchdog operation. I have the new evok.py in place and when trying to activate (not to perform manual reset) the watchdog on the web interface I get:

      [I 190116 08:04:54 web:2064] 304 GET /rest/wd/1_01/ (::1) 4.81ms [I 190116 08:04:59 neuron:1296] Performed reset of board 1_01 [I 190116 08:04:59 web:2064] 200 POST /rest/wd/1_01/ (127.0.0.1) 13.44ms

      The watchog stays inactive. Sometimes my Neuron stops working (every second LED on the main unit is blinking) and a manual power cycle is needed.

    • C

      1-wire sensor not detected in Evok web interface
      • clueless

      9
      0
      Votes
      9
      Posts
      4021
      Views

      T

      Hi @clueless,

      Glad to hear it's working - I'm not sure what exactly could have gone wrong, as everything seemed to be okay in the logs, which left me, well, quite clueless.

      I was hoping to get back to you with some more information, but frankly could not think of any simple checks to be made. At any rate - I am very glad to hear that it is working for you now!

    • J

      Way from Neuron Beta Image to regular Release
      • Joerg

      4
      0
      Votes
      4
      Posts
      1926
      Views

      Martin Kudláček

      Hi @joerg,
      the UniPian image is indeed broken and not just the download file. There are problems inside, so we removed it from our website and until further notice, it will not be available.

      You can use stock Raspbian and just to install our packages. To learn how, read this tutorial: https://kb.unipi.technology/en:sw:04-unipi-firmware

      Best regards,
      Martin

    • M

      Switching relays in synchronous mode?
      • majorcsa

      3
      0
      Votes
      3
      Posts
      1597
      Views

      T

      Hi @majorcsa,

      I have added this feature via a config file switch to the Master branch of EVOK. As I've mentioned before it may take a while to propagate to our releases and debian packages, but you should be able to test it out manually.

      I hope this helps,
      Kind Regards

    • J

      Vanishing 1-wire sensors
      • JasperJackson

      14
      0
      Votes
      14
      Posts
      5900
      Views

      T

      Hello @stoeffel,

      If this happens, you do not need to reboot the whole neuron, just reset the 1Wire bus using Modbus or OW_off variable in case of Mervis.

      Let us know what you find out.