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

[Feature Request]Air Quality Index(AQI) #49

Open
Neverest opened this issue Aug 10, 2016 · 8 comments
Open

[Feature Request]Air Quality Index(AQI) #49

Neverest opened this issue Aug 10, 2016 · 8 comments

Comments

@Neverest
Copy link

Is it possible to add the Air Quality Index on wttr.in in the future?

@Neverest Neverest changed the title [Festure Request]Air Quality Index(AQI) [Feature Request]Air Quality Index(AQI) Aug 10, 2016
@eadmaster
Copy link

eadmaster commented Sep 10, 2018

I suggest to take a look at the OpenAQ API for that.

The UV index would be nice too.

@chubin
Copy link
Owner

chubin commented Sep 15, 2018

Thank you very much for the idea.
Actually, I had this idea too, but the main problem was (and still is)
to find a good data source. I have a feeling, that one data source will
be not enough. For example, the suggested OpenAQ data source seems to be good
for Europe, but has almost no data about China. Though for that country this functionality would be
extremely important.

Do you have some other suggestions about AQ data sources (besides OpenAQ)?

@eadmaster
Copy link

http://aqicn.org/ seems to have Chinese cities as well, but it requires a token to access...

@ScanuNicco
Copy link

For the US you might be able to get data from airnow.gov . It looks like you might need to request an API account though. https://docs.airnowapi.org/

@ScanuNicco
Copy link

Actually purpleair.com also has data for much of the US and Europe, and they just have a JSON api with no authentication required: https://www2.purpleair.com/community/faq#hc-access-the-json

@chubin
Copy link
Owner

chubin commented Oct 31, 2021

@ScanuNicco Thank you for the both links. Both look very promising, especially PurpleAir. I will add them to the list of the potential data sources

@chubin
Copy link
Owner

chubin commented Jun 6, 2022

@eadmaster Now we have UV Index: it is %u in the one-line query

@zDEFz
Copy link

zDEFz commented Apr 23, 2023

I use wttr.in in my i3blocks/i3status config. However I made it very simple for the air quality...

#!/bin/bash
if  [ "$(curl https://www.iqair.com/germany/baden-wuerttemberg/walldorf | grep -Eo " Open your windows")" = " Open your windows" ] ; 
then
	 echo "Good air outside"
else
	 echo "Bad air outside"
fi

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

5 participants