ayeks / bme680_to_influxdb

Simple script that sends your BME680 temp, pressure, humidity and gas sensor data to InfluxDB.
MIT License
23 stars 16 forks source link

Past values from influxdb showing as current state #1

Closed webgps closed 4 years ago

webgps commented 5 years ago

Dear Lars,

Do you know why is chronograph and grafana shows past values picked from influxDB? In the screenshot, 45% is visible but it should be 51% regardin to the last data sent from pi. 45%was about an hour ago.

Thanks

Rudolf

past_values

ayeks commented 5 years ago

Hi! My guess is that there is something wrong with the metrics calculation.

Can you paste or screenshot me the Metrics info of the singlestat panel?

Here is my select statement:

SELECT last("humi") FROM /^$measurement$/ WHERE ("run" =~ /^$run$/ AND "location" = 'bedroom') AND $timeFilter GROUP BY time($__interval) fill(null)
ayeks commented 4 years ago

Close due inactivity.