WangDaYeeeeee / GeometricWeather

A Material Design Weather Application
GNU Lesser General Public License v3.0
2.44k stars 186 forks source link

[Feature Request] Pollen count #74

Open bdtoole opened 5 years ago

bdtoole commented 5 years ago

It would be great if pollen count could be added to the app. I believe that data can be pulled from AccuWeather.

In addition, are there plans to expand the air quality out to other US cities?

WangDaYeeeeee commented 5 years ago

I will check if accu provides data related to pollen count.

Additionally, at present I can only get air quality in some cities of Asia, I will try to find out ways to solve this problem.

bdtoole commented 5 years ago

I know their website provides easy access to both pollen and air quality for a given city (see https://www.accuweather.com/en/us/west-linn-or/97068/allergies-weather/40843_pc for example, using the drop-down menu for allergy type).

It looks like both are available in their API: https://apidev.accuweather.com/developers/airQuality https://apidev.accuweather.com/developers/faq#airQual

It seems "details=true" needs to be properly appended to the API URL, and Air Quality needs a LocationKey from the Locations API: https://apidev.accuweather.com/developers/locationsAPIguide