Plugin feinstaubsensor: add sensor data from the optional BME280 component
This commit is contained in:
parent
ca6107d396
commit
b02548ccd8
|
@ -101,6 +101,7 @@ graphs = [
|
|||
"graph_info": "Weather information: air humidity",
|
||||
"fields": [
|
||||
{"api_key": "humidity"},
|
||||
{"api_key": "BME280_humidity", "info": "BME280", "field_suffix": "bme280"},
|
||||
],
|
||||
"value_type": "GAUGE",
|
||||
}, {
|
||||
|
@ -110,6 +111,16 @@ graphs = [
|
|||
"graph_info": "Weather information: temperature",
|
||||
"fields": [
|
||||
{"api_key": "temperature"},
|
||||
{"api_key": "BME280_temperature", "info": "BME280", "field_suffix": "bme280"},
|
||||
],
|
||||
"value_type": "GAUGE",
|
||||
}, {
|
||||
"name": "feinstaub_pressure",
|
||||
"graph_title": "Feinstaub Atmospheric Pressure",
|
||||
"graph_vlabel": "Pascal",
|
||||
"graph_info": "Weather information: atmospheric pressure",
|
||||
"fields": [
|
||||
{"api_key": "BME280_pressure"},
|
||||
],
|
||||
"value_type": "GAUGE",
|
||||
}, {
|
||||
|
@ -169,6 +180,9 @@ def get_sensor_data(host):
|
|||
{"software_version": "NRZ-2017-099", "age":"88", "sensordatavalues":[
|
||||
{"value_type":"SDS_P1","value":"27.37"},{"value_type":"SDS_P2","value":"13.53"},
|
||||
{"value_type":"temperature","value":"23.70"},{"value_type":"humidity","value":"69.20"},
|
||||
{"value_type":"BME280_temperature","value":"9.76"},
|
||||
{"value_type":"BME280_humidity","value":"79.29"},
|
||||
{"value_type":"BME280_pressure","value":"100781.03"},
|
||||
{"value_type":"samples","value":"626964"},{"value_type":"min_micro","value":"225"},
|
||||
{"value_type":"max_micro","value":"887641"},{"value_type":"signal","value":"-47"}]}
|
||||
|
||||
|
|
Loading…
Reference in New Issue