|
|
|
|
|
by vsergeev
1208 days ago
|
|
Unfortunately, the NWS API is missing machine readable condition codes/icons in the daily and hourly forecast, which is why it isn't available in briefsky. The API has nearly everything else, though. If I had a solution for those icons, I probably would have added support for their weather alerts too, and also made it the default for US locations. See here for notes on other unsupported providers: https://github.com/vsergeev/briefsky#unsupported-providers |
|
Sunrise/sunset data can be calculate yourself: https://gml.noaa.gov/grad/solcalc/calcdetails.html
As for the code/icons, there is indeed an 'icon' in the hourly forecast, for example:
From this url: https://api.weather.gov/gridpoints/PDT/31,35/forecast/hourly which returns an hourly forecast for someplace or other, there is this:
"icon": "https://api.weather.gov/icons/land/night/snow,20?size=small",