jeelinklog.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. [main]
  2. publish_on_mqtt = True
  3. store_in_influxdb = True
  4. sensors_config_yml = jeelinklog_sensors.yml
  5. influx_config_yml = jeelinklog_influxdb.yml
  6. log_path = /home/pi/logs/jeelinklog
  7. logfile_new_sensors = jeelink_new_sensors.log
  8. [jeelink]
  9. serialport = /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL01MYTF-if00-port0
  10. baudrate = 57600
  11. initTimeout = 2
  12. # JeeLink Init Command
  13. # <n>a set to 0 if the blue LED bothers
  14. # <n>f initial frequency in kHz (5 kHz steps, 860480 ... 879515) (for RFM #1)
  15. # <n>F initial frequency in kHz (5 kHz steps, 860480 ... 879515) (for RFM #2)
  16. # <n>h altituide above sea level
  17. # <n>m bits 1: 17.241 kbps, 2 : 9.579 kbps, 4 : 8.842 kbps (for RFM #1)
  18. # <n>M bits 1: 17.241 kbps, 2 : 9.579 kbps, 4 : 8.842 kbps (for RFM #2)
  19. # <n>r use one of the possible data rates (for RFM #1)
  20. # <n>R use one of the possible data rates (for RFM #2)
  21. # <n>t 0=no toggle, else interval in seconds (for RFM #1)
  22. # <n>T 0=no toggle, else interval in seconds (for RFM #2)
  23. # v show version
  24. # <n>y if 1 all received packets will be retransmitted (Relay mode)
  25. # init cmd for TX29 AND TX35 sensors (17.241 and 9.579 kbps, toggle every 30s)
  26. initCmd = 30t 3m v
  27. # init cmd for TX29 sensors only (17.241 kbps, no toggle)
  28. #initCmd = 0t 1m v
  29. [mqtt]
  30. enable = True
  31. server = 127.0.0.1
  32. port = 1883
  33. user =
  34. password =
  35. # topic prefix
  36. topic_prefix = LaCrosse
  37. topic_prefix_outside_temphum = wetter/atemphum
  38. # additional single topics for outside temp/hum
  39. topic_outside_temp = wetter/atemp
  40. topic_outside_hum = wetter/ahum
  41. topic_outside_dew = wetter/dewpoint
  42. topic_outside_abshum = wetter/abshum
  43. # topic for notifications (low battery, new sensor found...)
  44. subtopic_notify = NOTIFY
  45. publish_unknown_sensors = False
  46. publish_unknown_new_sensors = True
  47. [sensors]
  48. # average sensor values - average over that many received readings
  49. average_value_steps = 5
  50. # discard measurements that are off more than this
  51. max_off_value = 2.0
  52. # ignore off values after this timeout and proceed with them
  53. ignore_off_value_timeout = 60
  54. # interval in s to report data via MQTT
  55. publish_interval = 60
  56. # interval in s to store data in InfluxDB
  57. store_interval = 300
  58. # interval in s to report data via MQTT for combined outside sensor
  59. publish_interval_outside = 120
  60. # interval in s to store data in InfluxDB for combined outside sensor
  61. store_interval_outside = 300
  62. # maximum age of sensor data in s - if the newest sensor data is older than that the sensor is considered "offline"
  63. data_maxage = 600
  64. # calculate dewpoint and abs. humidity (applies to all sensors)
  65. calculate_dewpoint = True
  66. calculate_absolute_humidity = True
  67. # and write this also to InfluxDB
  68. write_dewpoint_to_influxdb = True
  69. write_abshum_to_influxdb = True
  70. # combined outside sensors handling
  71. # Use median rather than average value.
  72. # Only useful if more than 2 outside sensors are used.
  73. outside_sensors_use_median = True
  74. # Use minimum value instead of average or median.
  75. # Overrules "outside_sensors_use_median" setting.
  76. # Best if one or more sensors could be exposed to direct sunlight or other heat sources for some time of the day.
  77. outside_sensors_force_minimum_value = False
  78. # for calculated (averaged from multiple sensors)
  79. influxdb_instance_combined_outside_sensors = wetter
  80. influxdb_sensorname_combined_outside_sensors = Outside