Python and Shell scripts to get radar and hazardous weather outlook info, plus local conditions, from the NWS API. New RIDGE II radar compatibility coming soon.
Add functionality to produce delimited text files (JSON, primarily, but also .tsv) and html tabular output for all text products (forecast, alerts, hazardous weather outlook, spotter activation, and current conditions).
The NWS doesn't release new forecasts every hour, but it does release new radar images many times an hour. Therefore it makes no sense to retrieve forecasts, area forecast discussions, or current weather observation data on the same schedule as retrieving radar images and alerts data.
The main script should implement docopts such that individually useful data can be retrieved with the temporal granularity that is warranted by the frequency of the data being updated. Then the scheduled execution of the main script could be easily configured to gather data as needed. This move should improve overall performance and avoid wasting both bandwidth and time.
It's possible to use several web API calls (with JSON returns) to determine many abbreviations, location identifiers, and settings that are currently entered by hand in settings.yml. The script should provide a one-time or on-demand functionality to retrieve as many of these settings as possible to simplify setup.
Many locally applicable settings are contained in these API URLS:
Proposed: a "status table" or "dashboard" composed of an aggregated JSON file that contains go/no-go and, where practical, at least a category of failure, for each subcomponent of the project. Thus, if the forecast map fails but everything else is obtained okay, the table would be mostly "green", with perhaps an indicator marker of "yellow", indicating the user might want to see what has gone wrong.
Individual subsystems could put their diagnostic data into the standard JSON output, that could then be collected by a new class, and served up as a discrete JSON API endpoint using Flask, as most of the data is already served up that way.
In mid-December 2020, NOAA stopped posting the composite reflectivity images and image layers to the "ridge" URLs. Thus, the functionality has broken for making radar and time-series radar images. The new images are available for download as TIFFs and/or KML files. The TIFFs include no other layers but the false-color radar information.
Should be possible to pull some information from the raw Area Forecast Discussion, enclosed in slashes, like '/NEW/', '/Issued HHMM [A|P]M TZ Wkday Mon Day YYYY/', '/Next Week/', '/Through Sunday Morning/', and so forth, into the JSON for use as additional header text, and resulting in a more compact HTML pane.