genebean / PiWeatherRock

Displays local weather on a Raspberry Pi
https://piweatherrock.technicalissues.us
MIT License
50 stars 23 forks source link

Pull Air Quality Index data from https://aqicn.org/gaia/ #36

Open hammiesam opened 4 years ago

hammiesam commented 4 years ago

Is it possible to pull Air Quality Index data to be displayed on PiWeatherRock?

genebean commented 4 years ago

I have reached out to them to check on how to comply with their terms of use. My thought is that if they give a 👍 in integrating that I’ll make this an optional data point that’s shows just below humidity.

See http://aqicn.org/json-api/doc/#api-Geolocalized_Feed-GetGeolocFeed for how to reuse the lat and long used for forecasting and http://aqicn.org/api/ for general api info.

The steps needing to be done are:

Sent with GitHawk

genebean commented 4 years ago

I’m planning to work on this next week

Sent with GitHawk

hammiesam commented 4 years ago

Awesome! Looking forward to it. Thanks for all your hard work.

genebean commented 4 years ago

So, it looks like the move to Climacell is also going to facilitate getting this done :) Do you just need the AQI or do you also need other data points such as "Particulate Matter" and "ozone"?

hammiesam commented 4 years ago

Hi Gene, particulate matter would be great as well like possible! Thank you

genebean commented 4 years ago

It looks like a few associated things are offered... would you look at the Air Quality section of https://developer.climacell.co/v3/reference and let me know what makes sense?

hammiesam commented 4 years ago

pm25 and pm10 and epa_aqi would be great!

genebean commented 4 years ago

Is china_aqi of use?

hammiesam commented 4 years ago

i think China made their own aqi standard because their pollution from factories and coal power plants are so bad. so it's less strict compared to the US EPA standard according to what i've read, so personally i rather have the epa_aqi. Thanks Gene.

genebean commented 4 years ago

Works for me 😀 It’s simpler to just do epa vs doing both or trying to pick one or the other.