Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/evok.conf
- #!!! Do not use '#' for comments !!!
- [MAIN]
- config_version = 2.4 ; Configuration file version, DO NOT CHANGE!
- use_schema_verification = False ; Enabling this will deny any requests that do not match the JSON Schema; NOTE THAT THIS RESULTS IN A SIGNIFICANT INCREASE IN LATENCY AND SHOULD NOT BE USED EXCEPT FOR TESTING
- log_level = ERROR ; Minimum severity of messages to be logged; one of INFO, DEBUG, WARNING, ERROR, CRITICAL
- log_file = /var/log/evok.log ; Log file to use; will be cleared on boot
- port = 8088 ; !!! Internal API port - only change if you are certain you know what you are doing; FOR OUR WEB INTERFACE THE PORT SHOULD BE CHANGED IN "/etc/evok-nginx.conf" INS$
- webhook_enabled = False ; Enables webhook notification - see e.g. https://sendgrid.com/blog/whats-webhook/
- webhook_address = http://127.0.0.1:80 ; Put your server endpoint address here (e.g. http://123.123.123.123:/wh )
- webhook_device_mask = ["input","wd"] ; List of device types to notify on (written as a JSON list) - adding AI will generate a large amount of messages!
- webhook_complex_events = False ; EVOK will send POST requests with the same data as WebSocket, rather than an empty GET request
- wifi_control_enabled = True ; !!! REQUIRES THE UNIPIAP WIFI CONTROLLER TO BE INSTALLED !!! Will allow evok to control the internal Neuron wifi
- soap_server_enabled = False ; Enables the simple SOAP server; use only if you need the functionality
- soap_server_port = 8081 ; !!! IF SOAP SERVER IS ENABLED, THIS PORT NEEDS TO BE UNIQUE (i.e. different from the port setting above) !!!
- [NEURON_1]
- global_id = 1 ; Mandatory, REQUIRED TO BE UNIQUE
- allow_register_access = False ; Optional, False default
- scan_frequency = 2 ; Optional, 1 default
- scan_enabled = True ; Optional, True default
- ; Below you can find examples for connecting devices over UART; first example is a Neuron extension while the second is a custom third-party device
- ; Devices sharing a port use the port settings of the first device on that port (baud rate, parity, stopbits)
- ; !!!Note that device_name has to match a filename in the /etc/hw_definitions directory!!! See /etc/hw_definitions/DOMAT MMIO.yaml for an example
- ;[EXTENSION_1]
- ;global_id = 2 ; Mandatory, REQUIRED TO BE UNIQUE
- ;device_name = xS10 ; Mandatory
- ;modbus_uart_port = /dev/extcomm/0/0 ; Mandatory
- ;neuron_uart_circuit = 1_01 ; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus UART ports, e.g. /dev/ttyUSB0 or /dev/ttyS0)
- ;allow_register_access = True ; Optional, False default, is mandatory with third-party devices
- ;address = 15 ; Optional, 15 default
- ;scan_frequency = 2 ; Optional, 1 default
- ;scan_enabled = True ; Optional, True default
- ; Note that the following settings will be inherited by other devices sharing the same port, i.e. /dev/extcomm/0/0
- ;baud_rate = 19200 ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
- ;parity = N ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
- ;stop_bits = 1 ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
- ;[EXTENSION_2]
- ;global_id = 3 ; Mandatory, REQUIRED TO BE UNIQUE
- ;device_name = CUSTOM MODBUS DEVICE ; Mandatory
- ;modbus_uart_port = /dev/extcomm/0/0 ; Mandatory
- ;neuron_uart_circuit = 1_01 ; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus UART ports, e.g. /dev/ttyUSB0 or /dev/ttyS0)
- ;allow_register_access = True ; Mandatory with third-party devices
- ;address = 1 ; Optional, 15 default
- ;scan_frequency = 2 ; Optional, 1 default
- ;scan_enabled = True ; Optional, True default
- [OWBUS_1]
- owbus = /dev/i2c-1 --i2c=/dev/i2c-1:ALL ; Scanned bus (--i2c=/dev/i2c-1:ALL or localhost:2122 or 'u' for USB dongle)
- interval = 3 ; [s] Default sensor reading
- scan_interval = 300
- ;Example of 1W-4R/4DI extension module, 1W-8R is almost the same, only with inputs instead of relays
- ;
- ; - Map a new 1Wire sensor with the appropriate address, type and interval
- ; - The syntax can be either SENSOR or 1WDEVICE
- ; - Setting the correct reading interval is crucial to achieve ideal performance; the default interval is 15s
- ;
- ;[1WDEVICE_2]
- ;bus = 1
- ;address = 29F39A17000000BC
- ;type = DS2408
- ;interval = 1
- ;
- ;[1WRELAY_10]
- ;sensor = 2
- ;pin = 0
- ;
- ;[1WRELAY_11]
- ;sensor = 2
- ;pin = 1
- ;
- ;[1WRELAY_12]
- ;sensor = 2
- ;pin = 2
- ;
- ;[1WRELAY_13]
- ;sensor = 2
- ;pin = 3
- ;
- ;[1WINPUT_20]
- ;sensor = 2
- ;pin = 4
- ;
- ;[1WINPUT_21]
- ;sensor = 2
- ;
- ;[1WINPUT_22]
- ;sensor = 2
- ;pin = 6
- ;
- ;[1WINPUT_23]
- ;sensor = 2
- ;pin = 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement