External Sensors - hjelev/rpi-mqtt-monitor GitHub Wiki

External sensors (currently DS18B20 for temperature and SHT21 for temperature and humdity) can be read out. Therefore the ext_sensorkey in the config file must be configured. A list of sensors with properties [name, sensor_type, ID, default_value] must be given. The default_value is returned if the Raspberry fails to read the external sensor. The default value is either a scalar or a list, e.g. temperature and humidity. Examples:

  • 1x ds18b20 sensor located in the RPi housing: ext_sensors = ["Housing", "ds18b20", "0014531448ff", -300](/hjelev/rpi-mqtt-monitor/wiki/"Housing",-"ds18b20",-"0014531448ff",--300)
  • If the ID in unkown and if there is only 1 ds18b20 sensor, then use: ext_sensors = ["Housing", "ds18b20", 0, -300](/hjelev/rpi-mqtt-monitor/wiki/"Housing",-"ds18b20",-0,--300)
  • If there are two sensors, one DS18B20 and one SHT21 (via I2C), then use: ext_sensors = ["Housing", "ds18b20", "0014531448ff", -300], ["Outside", "sht21", 0, [-300, 0](/hjelev/rpi-mqtt-monitor/wiki/"Housing",-"ds18b20",-"0014531448ff",--300],-["Outside",-"sht21",-0,-[-300,-0)], where the -300 is the default value for temperature and 0 is the default value for humidity.

default option is False