SHARE
TWEET

evok.conf

a guest Nov 15th, 2017 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /etc/evok.conf
  2.  
  3.  
  4. #!!! Do not use '#' for comments !!!
  5.  
  6. [MAIN]
  7. config_version = 2.4                                    ; Configuration file version, DO NOT CHANGE!
  8. 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
  9. log_level = ERROR                                       ; Minimum severity of messages to be logged; one of INFO, DEBUG, WARNING, ERROR, CRITICAL
  10. log_file = /var/log/evok.log                    ; Log file to use; will be cleared on boot
  11. 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$
  12. webhook_enabled = False                                 ; Enables webhook notification - see e.g. https://sendgrid.com/blog/whats-webhook/
  13. webhook_address = http://127.0.0.1:80   ; Put your server endpoint address here (e.g. http://123.123.123.123:/wh )
  14. 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!
  15. webhook_complex_events = False                  ; EVOK will send POST requests with the same data as WebSocket, rather than an empty GET request
  16. wifi_control_enabled = True                     ; !!! REQUIRES THE UNIPIAP WIFI CONTROLLER TO BE INSTALLED !!! Will allow evok to control the internal Neuron wifi
  17. soap_server_enabled = False                             ; Enables the simple SOAP server; use only if you need the functionality
  18. soap_server_port = 8081                                 ; !!! IF SOAP SERVER IS ENABLED, THIS PORT NEEDS TO BE UNIQUE (i.e. different from the port setting above) !!!
  19.  
  20. [NEURON_1]
  21. global_id = 1                                                   ; Mandatory, REQUIRED TO BE UNIQUE
  22. allow_register_access = False                   ; Optional, False default
  23. scan_frequency = 2                                              ; Optional, 1 default
  24. scan_enabled = True                                     ; Optional, True default
  25.  
  26. ; 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
  27. ; Devices sharing a port use the port settings of the first device on that port (baud rate, parity, stopbits)
  28. ; !!!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
  29.  
  30. ;[EXTENSION_1]
  31. ;global_id = 2                                                  ; Mandatory, REQUIRED TO BE UNIQUE
  32. ;device_name = xS10                                             ; Mandatory
  33. ;modbus_uart_port = /dev/extcomm/0/0    ; Mandatory
  34. ;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)
  35. ;allow_register_access = True                   ; Optional, False default, is mandatory with third-party devices
  36. ;address = 15                                                   ; Optional, 15 default
  37. ;scan_frequency = 2                                     ; Optional, 1 default
  38. ;scan_enabled = True                                    ; Optional, True default
  39. ; Note that the following settings will be inherited by other devices sharing the same port, i.e. /dev/extcomm/0/0
  40. ;baud_rate = 19200                                              ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
  41. ;parity = N                                                             ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
  42. ;stop_bits = 1                                                  ; Optional, NEEDS UNIPI IMAGE TO WORK! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
  43.  
  44. ;[EXTENSION_2]
  45. ;global_id = 3                                                  ; Mandatory, REQUIRED TO BE UNIQUE
  46. ;device_name = CUSTOM MODBUS DEVICE             ; Mandatory
  47. ;modbus_uart_port = /dev/extcomm/0/0    ; Mandatory
  48. ;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)
  49. ;allow_register_access = True                   ; Mandatory with third-party devices
  50. ;address = 1                                                    ; Optional, 15 default
  51. ;scan_frequency = 2                                     ; Optional, 1 default
  52. ;scan_enabled = True                                    ; Optional, True default
  53.  
  54. [OWBUS_1]
  55. owbus = /dev/i2c-1 --i2c=/dev/i2c-1:ALL                 ; Scanned bus (--i2c=/dev/i2c-1:ALL or localhost:2122 or 'u' for USB dongle)
  56. interval = 3                                            ; [s] Default sensor reading
  57. scan_interval = 300    
  58.  
  59. ;Example of 1W-4R/4DI extension module, 1W-8R is almost the same, only with inputs instead of relays
  60. ;
  61. ; - Map a new 1Wire sensor with the appropriate address, type and interval
  62. ; - The syntax can be either SENSOR or 1WDEVICE
  63. ; - Setting the correct reading interval is crucial to achieve ideal performance; the default interval is 15s
  64. ;
  65. ;[1WDEVICE_2]
  66. ;bus = 1
  67. ;address = 29F39A17000000BC
  68. ;type = DS2408
  69. ;interval = 1
  70. ;
  71. ;[1WRELAY_10]
  72. ;sensor = 2
  73. ;pin = 0
  74. ;
  75. ;[1WRELAY_11]
  76. ;sensor = 2
  77. ;pin = 1
  78. ;
  79. ;[1WRELAY_12]
  80. ;sensor = 2
  81. ;pin = 2
  82. ;
  83. ;[1WRELAY_13]
  84. ;sensor = 2
  85. ;pin = 3
  86. ;
  87. ;[1WINPUT_20]
  88. ;sensor = 2
  89. ;pin = 4
  90. ;
  91. ;[1WINPUT_21]
  92. ;sensor = 2
  93. ;
  94. ;[1WINPUT_22]
  95. ;sensor = 2
  96. ;pin = 6
  97. ;
  98. ;[1WINPUT_23]
  99. ;sensor = 2
  100. ;pin = 7
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top