skalnik / aqi-wtf

😷 WTF is the AQI near me right now?!
https://aqi.wtf
MIT License
44 stars 12 forks source link

Fix broken sensor averaging #48

Closed skalnik closed 4 years ago

skalnik commented 4 years ago

This PR attempts to setup some basic broken sensor detection but seeing if all the extra pm values are zero, and if so, ignoring that sensor in the sensor pair. This could be made smarter by checking if both pairs in the sensor are all zero and then ignoring that sensor all together and finding the next one, but this seems like a good start.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/skalnik/aqi-wtf/cahl70v2d
✅ Preview: https://aqi-wtf-git-detect-busted-sensor.skalnik.vercel.app

skalnik commented 4 years ago

@obra wanna send your friend that preview link and see if it is better?

obra commented 4 years ago

Accidentally closed the ticket too early, but yes, end user reports this is good to go.

+1