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

How to create a storm forecast alert? #36

Open
martinmurciego opened this issue Apr 11, 2020 · 2 comments
Open

How to create a storm forecast alert? #36

martinmurciego opened this issue Apr 11, 2020 · 2 comments
Assignees

Comments

@martinmurciego
Copy link

martinmurciego commented Apr 11, 2020

How to create a storm forecast alert that will occur at a certain time, hour or day shift?
It is something that I do not find or do not understand how it is posed. Since the api allows creating triggers and alerts. But I only saw for conditions of temperature, humidity, pressure, etc.

For example, it would be very useful in a practical case of time of the day that you may have to unplug the modem / router so that it does not burn. Or create an automatic mechanism to close the circuit using smart strips (tplink, sonoff, etc.)

forecast
https://samples.openweathermap.org/data/2.5/forecast/hourly?id=524901&lang=zh_cn&appid=439d4b804bc8187953eb36d2a8c26a02

{"temp":276.635,"temp_min":276.635,"temp_max":276.635,"pressure":1019.752,"sea_level":1019.752,"grnd_level":999.387,"humidity":100,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"阴,多云","icon":"04d"}],"clouds":{"all":93},"wind":{"speed":2.99,"deg":253.222},"rain":{},"sys":{"pod":"d"},"dt_txt":"2019-03-29 11:00:00"},{"dt":1553860800,"main":{"temp":276.588,"temp_min":276.588,"temp_max":276.588,"pressure":1019.321,"sea_level":1019.321,"grnd_level":998.972,"humidity":100,"temp_kf":0},"weather":[{"id":804,"main":"Clouds","description":"阴,多云","icon":"04d"}],"clouds":{"all":94},"wind":{"speed":2.64,"deg":255.679},"rain":{},"sys":{"pod":"d"},"dt_txt":"2019-03-29 12:00:00"}

@codewithtyler
Copy link
Collaborator

Currently weather.js does not support this functionality. OpenWeatherMap does support getting Weather alerts by means of push notifications; however, how you get the alerts is not publicly available at this time. I would love to support this in the future but until I can find out how involved it would be this won't be a high priority right now. I'll add it to the backlog though as this would still be something I'd like to add at some point.

@codewithtyler
Copy link
Collaborator

If I misunderstood your request, please let me know.

@codewithtyler codewithtyler self-assigned this Oct 19, 2020
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

2 participants