Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partly fixes #29
Alerts the user about weather alerts found for their region. Should work (or at least it's advertised to work) worldwide and polls hourly. Uses the free API
api.weatherapi.com
(https://www.weatherapi.com/).I have to admit that I'm not really familiar with accessing web API's like this so if I did something wrong I'd be happy to know.
For now to do some testing I used the aforementioned api because it's easy to use, free (at least for a million calls per month which might be limitting and we probably should mention them somewehere) and allows pretty much any use even with the free plan (no legal expert here though). I hardcoded an api token that's associated with a free account i created there (I know probably not very smart :)). I'm really no expert in this so if there are better apis or if there are other problems (also a million calls per month is probably not enough because with a every day use of 5 hour it ends up at around 6000 users, if we limit polling to once daily it would still only be 30000 users) because of this please tell me. It should be pretty easy to switch as long as it's an json api.
Also the UX side probably could need some improvements especially some clearer phrasing or better icons. Maybe we should even add a default action that opens another window with a detailed description or opens a website etc.)