genebean / PiWeatherRock

Displays local weather on a Raspberry Pi

Home Page:https://piweatherrock.technicalissues.us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hammiesam opened this issue · comments

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

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:

  • get approval from site for integration
  • add config setting for their api key
  • add conditionally displayed field under humidity for AQI
  • add credit to info screen if AQI is enabled

Sent with GitHawk

I’m planning to work on this next week

Sent with GitHawk

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

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"?

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

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?

pm25 and pm10 and epa_aqi would be great!

Is china_aqi of use?

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.

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