• 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
    • J

      json rest problem
      • juntiedt

      15
      0
      Votes
      15
      Posts
      6397
      Views

      J

      sorry for the websocket issue. Its now running.

      the only thing left is the unipi_eprom problem in the boot process of Raspbian

    • J

      Websocket "cmd":"all" not working
      • juntiedt

      3
      0
      Votes
      3
      Posts
      1849
      Views

      T

      Hi @juntiedt!

      It's hard to know the exact reason for the problems you are seeing from the info you provided, but the most likely possibility is that the input you send to the websocket is in Unicode rather than ASCII; testing this produces the same behavior. This may be caused by the library or environment you use, rather than anything you are doing yourself. We can provide Unicode support quite easily, but it might take a few days to filter into the Git repository/release.

      Also note that each instance has separate listening channels, though delta events are sent on all. This means that closing the instance after you send a message will prevent you from receiving a reply, and that you need to listen on the same connection as you use to issue the commands.

      As for the filter command, it allows you to specify which device delta events you want to listen to. However unless the Unicode issue is solved you will not be able to properly call the command.

      Glad you got it working anyhow, I hope this helps.

    • B

      Adding Extensions to Evok
      • Boernsman

      4
      0
      Votes
      4
      Posts
      2583
      Views

      B

      Thanks, worked out for me

    • D

      Direct Switch - setup example (without Mervis)
      • devmicha

      4
      0
      Votes
      4
      Posts
      4077
      Views

      T

      @devmicha Its only possible to control one RO/DO with one DI with the same number using the DirectSwitch function. If you want to do 1Di to more Do/Ro, than you have to make some program which will take care of it. Or also just do it in the cables :)

    • J

      Digital input
      • juntiedt

      3
      0
      Votes
      3
      Posts
      1644
      Views

      J

      thanks for the quick response!

      I had SPI on in the raspi configuration. I switched it off, rebooted and all is ok. :-)

    • S

      Raspberry - Shell code for DS2413
      • seecosmea

      8
      0
      Votes
      8
      Posts
      3878
      Views

      S

      Thanks a lot :) !! Greeting from Shanghai

    • B

      Raspbian Stretch with Neuron
      • Boy Lenssen

      5
      0
      Votes
      5
      Posts
      3071
      Views

      T

      @juntiedt Yes, https://github.com/UniPiTechnology/evok#installation-process-for-the-20-evok-version

    • J

      websocket send command
      • juntiedt

      2
      0
      Votes
      2
      Posts
      1512
      Views

      J

      I found it:

      #sending messages def ws_send(CMD, DEV, CIRCUIT, VALUE): ws = websocket.WebSocket() ws.connect(url) ws.send('{"cmd":"%s","dev":"%s","circuit":"%s","value":"%s"}' %(CMD,DEV,CIRCUIT,VALUE)) ws.close()
    • J

      howto for 1-wire temperature via nodered?
      • jens

      3
      0
      Votes
      3
      Posts
      2178
      Views

      U

      @jens
      Hi
      and where is the solution ?

      Regards

    • roberts_lando

      Slack channel for evok?
      • roberts_lando

      2
      0
      Votes
      2
      Posts
      1403
      Views

      T

      @roberts_lando I am afraid we won't be able to provide support to every question on slack...

    • J

      howto read analog input?
      • jens

      7
      0
      Votes
      7
      Posts
      4403
      Views

      I

      Ok, wrong subforum. Will post on other, concerning mervis.

    • L

      EVOK configure additional 1wire port
      • lukec

      3
      0
      Votes
      3
      Posts
      2139
      Views

      L

      Tomas,

      thank you, putting "-d" in front (bus = -d /dev/ttyUSB0) worked - maybe you could update the evok.conf file with this (as example)

      BR

    • D

      Evok inputs status reporting
      • denis

      4
      0
      Votes
      4
      Posts
      2408
      Views

      T

      The reason the values were being sent is that they are stored internally in one register per 16 inputs; therefore we needed to implement state tracking to properly distinguish which of the 16 inputs for a given register actually changed.

      Apologies for the issues.

    • S

      UniPi is not detecting DS2413
      • seecosmea

      7
      0
      Votes
      7
      Posts
      3789
      Views

      T

      The 1-Wire GPIOs have to be included in the configuration file in order to work. There is an example of how it should be done at the bottom of the UniPi 1.1 configuration file ( https://github.com/UniPiTechnology/evok/blob/master/etc/evok-unipi1.1.conf ).

    • S

      Bad Documentation, bad web interface
      • sosy

      4
      0
      Votes
      4
      Posts
      3101
      Views

      F

      I think this was my post:

      https://forum.unipi.technology/topic/278/evok-documentation

      right?

    • J

      This topic is deleted!
      • jens

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • O

      Problem using cmd:all using Websockets
      • oflock

      3
      0
      Votes
      3
      Posts
      2143
      Views

      O

      Hi Tom,

      great ! Problem fixed !

      Thanks for your fast answer and support.

      Regards.

      Olivier.

    • M

      Neuron DI with short input does not always send positive value to evok
      • m.brugger

      3
      0
      Votes
      3
      Posts
      1670
      Views

      M

      Thank you Tomas,

      Unfortunately I didn't find this topic throug my research. But now I changed the parameter and it works now.

      Greets Martin

    • M

      How to connect UNICA and Unipi
      • M4kr

      6
      0
      Votes
      6
      Posts
      4029
      Views

      M

      Hi @devien hi @tomas_hora

      Thank you very much for your help. Life could be easy if you ask the right people ;-)
      I commented out the class definition but forgot enableing the DS2438 in the code. After fixing that, it seems to work fine.
      I'll edit this post if any errors occur in relation to the DS2438.

      Thanks again for your help.

      Greetings
      M4kr

    • C

      Evok, json, Python2.7, read multiple inputs so SLOW??
      • capitanfindus

      2
      0
      Votes
      2
      Posts
      1829
      Views

      C

      Websocket solved the issue. Thank you