From b02548ccd854b78054d15da746e9ff40213ca438 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sat, 31 Oct 2020 23:25:42 +0100 Subject: [PATCH] Plugin feinstaubsensor: add sensor data from the optional BME280 component --- plugins/luftdaten/feinstaubsensor | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/luftdaten/feinstaubsensor b/plugins/luftdaten/feinstaubsensor index 1d2bb47a..e649c50d 100755 --- a/plugins/luftdaten/feinstaubsensor +++ b/plugins/luftdaten/feinstaubsensor @@ -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"}]}