Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hammiesam opened this issue Feb 10, 2020 · 10 comments
Open

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

hammiesam opened this issue Feb 10, 2020 · 10 comments
Assignees

Comments

@hammiesam
Copy link

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

@genebean genebean self-assigned this Feb 10, 2020
@genebean
Copy link
Owner

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

@genebean
Copy link
Owner

I’m planning to work on this next week

Sent with GitHawk

@hammiesam
Copy link
Author

hammiesam commented Feb 24, 2020

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

@genebean
Copy link
Owner

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
Copy link
Author

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

@genebean
Copy link
Owner

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
Copy link
Author

pm25 and pm10 and epa_aqi would be great!

@genebean
Copy link
Owner

Is china_aqi of use?

@hammiesam
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants