WangDaYeeeeee / GeometricWeather

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

Air quality & Allergen not showing #272

Open Ashulat opened 2 years ago

Ashulat commented 2 years ago

Even though I have Air quality & Allergen both in the list, their cards don't show up. Doesn't matter if I have selected another weather provider. I don't know if it's something I have to do on my end though. IMG_20211028_190758 Screenshot_2021-10-28-19-06-50-332_wangdaye com geometricweather

papjul commented 2 years ago

It's only available in a couple of countries, what's yours?

Ashulat commented 2 years ago

The Netherlands

papjul commented 2 years ago

Air Quality and pollen forecast are only available in the US: https://developer.accuweather.com/faq-page#n69

Maybe you can get air quality from OpenWeather but you will need your own API key.

Ashulat commented 2 years ago

Where can I add my own API key once I got one?

papjul commented 2 years ago

At the moment, you will need to compile from source as #224 is not yet part of a release

Ashulat commented 2 years ago

I compiled it from your source got it working for a few hours until I couldn't retrieve data from openweather anymore. Same error as the official one has I guess.

papjul commented 2 years ago

I compiled it from your source got it working for a few hours until I couldn't retrieve data from openweather anymore. Same error as the official one has I guess.

Rate limit exceeded shouldn't happen with your own key. Error is probably different but there is no easy way to troubleshoot it.

jfk93260 commented 2 years ago

Air Quality and pollen forecast are only available in the US: https://developer.accuweather.com/faq-page#n69

I'll have to disagree with that but how could you know, even AccuWeather disagrees with its own FAQ... I live in Paris and Air Quality as well as Allergens are accessible to me as you can see:

Screenshot_20220111-231428 Screenshot_20220111-231441 Screenshot_20220111-231524

And I can see them in the app too... well, at least partially...

Screenshot_20220111-231715 4 allergens out of 5 (where is the fifth?) but alas Air Quality is nowhere to be seen They do use Plume Labs data for their Air Quality section. Any chance to get the whole package?

papjul commented 2 years ago

Geometric Weather only supports 4 allergens, see https://github.com/WangDaYeeeeee/GeometricWeather/blob/master/app/src/main/java/wangdaye/com/geometricweather/weather/converters/AccuResultConverter.java#L328-L347

(Is the 5th allergen really something measurable outside?)

Air quality see #277 & #278

jfk93260 commented 2 years ago

Geometric Weather only supports 4 allergens, see https://github.com/WangDaYeeeeee/GeometricWeather/blob/master/app/src/main/java/wangdaye/com/geometricweather/weather/converters/AccuResultConverter.java#L328-L347

So I followed your link and WOW! that's a whole lot of lines with lots of pretty colors, very nice to look at, thank you :) But I'm absolutely no developer so I just didn't understand anything... I'm just a lambda user trying to report some bugs :)

(Is the 5th allergen really something measurable outside?)

Hell yes it is! Because... because... er... because AccuWeather says so!... And if it's not?... Well... That would just mean that all those pretty little measures we are all craving for are just bluff... So! Let's show some faith in humanity and let's say that it's not all lies. Actually, I DO think it IS measurable because what is measured is absolutely not the quantity of hair or skin particules in the air but rather a few proteins these animals produce that can be found either on their hair, skin or saliva. That's what people are allergic to. And just like the coronavirus can be spread through the air when you talk, breathe or sneeze, so do those proteins. And with the increasing number of pet owners and the increasing number of people allergic to almost everything (blame pregnant women for eating pasteurized milk instead of raw milk or blame the global pollution, it's up to you), this measure is not totally ridiculous. But that's just my opinion, of course.

Air quality see #277 & #278

Once again, I'm really very sorry but I'm not familiar with these API problems, I never had to care about them before. All I see is that it works nice for some cities but not for others, though the source website displays the same kind of values for every city. Air quality works nice for Shangai, for example, but not for Paris. Strangely enough, Allergens works for Paris, but not for Shangai.