stjohnjohnson / purple-air.py

Python script to help pull Purple-Air sensor data into Home Assistant
MIT License
5 stars 0 forks source link

Adjustments for PurpleAir.com visuals #5

Closed Docano closed 2 years ago

Docano commented 2 years ago

Hi this is a great foundation you've laid. Good work. A couple minor things I've observed is when the humidity and temp_f data are displayed on purpleair.com's map, it does an adjustment of +4 to the raw json humidity number and also -8 to the raw json temp_f number.

"Humidity, corrected by adding 4% as a general correction to account for heat generated by the WiFi module in a PurpleAir sensor. This will not be accurate for all situations."

"Temperature (°F) A correction of -8°F is applied to the temperature readings in a PurpleAir sensor. This is a general correction and may not be applicable to all situations."

stjohnjohnson commented 2 years ago

Oh that's really interesting. I didn't realize that.

I wonder if I should make the correction part of the code or a flag to pass. I'm open to either way.

stjohnjohnson commented 2 years ago

Eh, I decided to just fix it. Interestingly enough the PurpleAir website also handles Atmospheric Pressure offset by elevation. But I felt I didn't need to adjust for that.