This is an old revision of the document!


Evok

Patron
Neuron
Gate*
Unipi 1.1
Axon

The Evok is our open-source application programming interface (API) providing interfaces to access physical inputs, outputs and communication interfaces. Its goal is to provide simple access to the hardware without the need to deal with low-level programming.

Documentation, installation guide and description of APIs can be found at our GitHub repository.

Evok is divided into two modules:

  1. Evok - the core handling the communication between all APIs and the hardware
  2. Evok Web (optional) - a practical example of some of the APIs in a Web-based application which also serves as a simple UI of all I/O of the unit

Application logic and other operations (implementation of different components of the system) should be handled by an external application.

  • REST
  • REST JSON
  • WebSocket
  • BULK
  • JSON-RPC


Documentation, such as how to install or configure, is available on Read the Docs. The API itself is documented on the Stoplight, a few examples are below.

Quick examples using curl and JSON:

  • Returning the state of digital input DI 1_01:
    curl --request GET --url http://127.0.0.1:8080/json/di/1_01 --header 'Accept: text/html, application/json'
  • Switch-on the DO 1_01 digital output:
    curl --request POST --url http://127.0.0.1:8080/json/do/1_01 --header 'Accept: application/json' --header 'Content-Type: application/json' --data '{"value": 1}'
  • Switch-off the DO 1_01 digital output:
    curl --request POST --url http://127.0.0.1:8080/json/do/1_01 --header 'Accept: application/json' --header 'Content-Type: application/json' --data '{"value": 0}'

Legacy documentation of Evok v2 is available here, API documentation v2 is also available.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies