Closed geerlingguy closed 3 years ago
It's not technically an 'Internet' related thing, but hey, it's my project I do what I want!
I'm trying to set up some AirGradient DIY air quality monitors in my house and I want the data logged to my main Pi. And yes, I'll be doing a video on the things. Have to get everything working before I do that though.
Data seems to be working...
172.22.0.1 - - [08/Jul/2021:22:13:42 +0000] "GET /metrics HTTP/1.1" 200 198 "-" "Prometheus/2.25.2"
10.0.100.74 - - [08/Jul/2021:22:14:08 +0000] "POST /sensors/airgradient:1995c6/measures HTTP/1.1" 200 554 "-" "ESP8266HTTPClient"
172.22.0.1 - - [08/Jul/2021:22:14:12 +0000] "GET /metrics HTTP/1.1" 200 198 "-" "Prometheus/2.25.2"
10.0.100.74 - - [08/Jul/2021:22:14:17 +0000] "POST /sensors/airgradient:1995c6/measures HTTP/1.1" 200 554 "-" "ESP8266HTTPClient"
And from the PromQL query rco2{job="airgradient"}
:
Next step is building a dashboard.
And here's a dashboard:
I should note it's not actually 90°F in my office... I had the unit sitting on top of my memory card reader, which gets crazy hot, so it understandably heated up the ambient air for a while while I was importing photos and videos for a new video I'm working on.
I'm also concerned the CO2 calculation might be more than 10-20 ppm off (that's the spec—after 7-10 days the SenseAir S8 is supposed to be calibrated)... but it could be my Temtop handheld unit is just a bit off too... I don't have any 'lab-grade' air monitoring tools so I'm kind of having to trust one or the other device for now :D
It's also weird how little PM2.5 is detected... I mean my office is pretty well sealed off from the rest of the house. I might stick the thing outside and see what else is going on out there.
See my AirGradient exporter: https://github.com/geerlingguy/airgradient-prometheus