jessehamner / WeatherWidget

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.
Apache License 2.0
5 stars 0 forks source link

Use NWS info pages to derive local settings #16

Open jessehamner opened 3 years ago

jessehamner commented 3 years ago

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:

See especially

jessehamner commented 3 years ago

Started work. Have implemented "points" and "stations", and written results to a test YAML file. Need to conform names to existing variable names. Should enable simpler and more robust code.

jessehamner commented 3 years ago

Relevant pages on NWS API and XML schema:

jessehamner commented 3 years ago

Have conformed NWS variable names to existing YAML variable names. Need to create a separate configuration command-line option to avoid configuring the settings.yml file every time.