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

weather alerts shown multiple times? #8

Open
0m4r opened this issue Mar 15, 2021 · 3 comments
Open

weather alerts shown multiple times? #8

0m4r opened this issue Mar 15, 2021 · 3 comments

Comments

@0m4r
Copy link

0m4r commented Mar 15, 2021

For some reason, some of the weather alerts are shown twice.
I cannot tell tho if they come twice from the BE service used to display them.

image

@Robiv8
Copy link

Robiv8 commented Apr 10, 2022

yes, i have the same problem.
Is there a solution?

@RucknCover
Copy link

I don't think it's a bug, I think it's returning all the items in the alerts node in the api call. If there is more than one being returned by the API, then it'll display them both. It looks like an array, you could check the various tags associated with the call (described here: https://openweathermap.org/api/one-call-api) and determine which ones you want to display.

@marcx28
Copy link

marcx28 commented Dec 12, 2022

I have the same problem

weather

This happens because the OpenWeather API returns two weather alerts. This first alert lasts from 13th December 00:00 to 13th December 23:59 and the second one from 14th December 00:00 to 14th December 23:59. They are basically the same but they return a new alert for each day.

api_response

I don't know a good solution to solve this problem

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

No branches or pull requests

4 participants