config.py 957 B

12345678910111213141516171819202122232425262728
  1. # timeout in s to end script when nothing is received (will be restarted by systemd then)
  2. # must be higher than getStatusInterval
  3. quitOnNoReceiveTimeout = 75
  4. # status file - on ramdrive (/tmp on RasPi by default)
  5. # is "touched" every time a serial message comes in so that working communication can be monitored easily
  6. #statusFile = '/tmp/ioext_running'
  7. #statusFile = '/run/user/1000/ioext_running'
  8. statusFile = ''
  9. # serial port config
  10. serialPort = '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
  11. serialBaud = 57600
  12. serialTimeout = 1 # should be 1 as above interval/timeout relies on it
  13. # MQTT config
  14. mqtt_server = "mqtt.lan"
  15. mqtt_port = 1883
  16. mqtt_user = ""
  17. mqtt_password = ""
  18. mqtt_base_topic = "T5/HomeSvrIOExt"
  19. mqtt_topic_tuerkontakt = "T5/Wohnungstuer/Tuerkontakt"
  20. mqtt_topic_pir1 = "T5/VZ/PIR1"
  21. mqtt_topic_pir2 = "T5/VZ/PIR2"
  22. mqtt_topic_out_temp = "T5/Abstr/Sensors/temp"
  23. mqtt_topic_out_hum = "T5/Abstr/Sensors/hum"