genebean / PiWeatherRock

Displays local weather on a Raspberry Pi

Home Page:https://piweatherrock.technicalissues.us

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include Severe Weather Alerts

ryakel opened this issue · comments

Is your feature request related to a problem? Please describe.
It is challenging to get a complete picture of the weather forecast without including alerts from the weather provider.

Describe the solution you'd like
I would be great if the alerts section of DarkSky (or whatever provider comes next) could be parsed and included in the same box as the other 'additional info' like wind, humidity, and the umbrella reminder. My specific preference would be that the umbrella reminder is replaced with a severe weather alert if that is present. DarkSky has a JSON blob that shows how this stanza exists when present. https://darksky.net/dev/docs#forecast-request

"alerts": [
          {
            "title": "Flood Watch for Mason, WA",
            "time": 1509993360,
            "expires": 1510036680,
            "description": "...FLOOD WATCH REMAINS IN EFFECT THROUGH LATE MONDAY NIGHT...\nTHE FLOOD WATCH CONTINUES FOR\n* A PORTION OF NORTHWEST WASHINGTON...INCLUDING THE FOLLOWING\nCOUNTY...MASON.\n* THROUGH LATE FRIDAY NIGHT\n* A STRONG WARM FRONT WILL BRING HEAVY RAIN TO THE OLYMPICS\nTONIGHT THROUGH THURSDAY NIGHT. THE HEAVY RAIN WILL PUSH THE\nSKOKOMISH RIVER ABOVE FLOOD STAGE TODAY...AND MAJOR FLOODING IS\nPOSSIBLE.\n* A FLOOD WARNING IS IN EFFECT FOR THE SKOKOMISH RIVER. THE FLOOD\nWATCH REMAINS IN EFFECT FOR MASON COUNTY FOR THE POSSIBILITY OF\nAREAL FLOODING ASSOCIATED WITH A MAJOR FLOOD.\n",
            "uri": "http://alerts.weather.gov/cap/wwacapget.php?x=WA1255E4DB8494.FloodWatch.1255E4DCE35CWA.SEWFFASEW.38e78ec64613478bb70fc6ed9c87f6e6"
          },

Describe alternatives you've considered
For now, my solution to this will be to script the collection of this alert blob and alert on it off-box.