johnwalicki / node-red-contrib-twc-weather

Node-RED nodes for The Weather Company and Weather Underground Personal Weather Station APIs
Apache License 2.0
10 stars 11 forks source link

Weather alert node? #4

Closed jpoeppelman1 closed 3 years ago

jpoeppelman1 commented 4 years ago

Hello. I was wondering if you could add a node to query the active weather alerts?

johnwalicki commented 4 years ago

While I don't have a severe weather node, I did create a example Node-RED flow that shows severe weather alerts on a map.

https://github.com/johnwalicki/Node-RED-Severe-Weather-Alert-Map

johnwalicki commented 4 years ago

That Node-RED flow calls the TWC alerts API (if necessary, several times) to retrieve all of the NWS severe weather alerts (by US state or by all USA). Then plots them on a map.

johnwalicki commented 4 years ago

@jpoeppelman1 If you agree that example is useful, I'll close this ticket?

jpoeppelman1 commented 4 years ago

Thanks John. It's a great example, but I was really hoping for a lightweight alert node to embed into my flow.

On Thu, Nov 26, 2020, 12:24 PM John Walicki notifications@github.com wrote:

@jpoeppelman1 https://github.com/jpoeppelman1 If you agree that example is useful, I'll close this ticket?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/johnwalicki/node-red-contrib-twc-weather/issues/4#issuecomment-734415154, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILR7QQE6JW7NEY2KZRW4OTSR2FL3ANCNFSM4UDWVWZQ .

johnwalicki commented 3 years ago

I was purposeful in constructing the Node-RED-Severe-Weather-Alert-Map flow and Node-RED groups. It would be relatively easy to grab the half dozen nodes in the center "Query Weather Alert Headline API" group and import them into your flow. That section is portable and has one entry point and one exit. The top and bottom groups build the Node-RED dashboard/map. You could ignore those. flow