randallspicher / weather.noaa

Kodi weather plugin for NOAA (weather.gov)
GNU General Public License v2.0
1 stars 0 forks source link

weather.noaa a Kodi Plugin for the National Weather Service (NOAA) weather forecasts

This Kodi plugin fetches weather reports from the National Weather Service (NWS) (eg NOAA) from their https://www.weather.gov public api feed

Note the NWS only provides weather forecasts for USA.

Available in the main Kodi repo for Matrix (and up) or beta releases can be pulled from my repo, (using either the Matrix or the Leia version)

NWS forecasts differ a bit from most other weather providers

The weather.noaa plugin also provides these advanced features (requiring skin support)

Mimic-LR is a skin that makes use of the additional features.

Skinners:

Note that weather.gov does not supply forecasts as one-per-day. It instead provides separate forecasts for Daytime and Overnight. Hard-coding the text "Today" and "Tomorrow" will not be accurate, (since first 2 actual forecasts may be for "This Afternoon" and "Tonight" depending on the current time-of-day. The "Title" property is best to use. Since the forecast for Day and Night are separate records, the daytime forecast does not provide a "LowTemperature", and the night-time forecast does not provide a "HighTemperature" The respective non-relevant properties will be left blank in the Daily.n.xxx properties (you will get either Daily.n.HighTemperature, or Daily.n.LowTemperature, depending on if it's a day or night forecast.) Since Day0.HighTemp and Day0.LowTemp are raw numbers that Kodi insists on calculating, the same temperature is populated and returned in both, to keep kodi happy. It is recommended that the skin only make use of the Daily properties.

Weather.gov has much more verbose descriptive forecasts (can be paragraphs of info, instead of just a couple words). A new screen (or pop-up dialog) is recommended to display the overview.

The plugin provides the following properties:

Day forecast (0-13) -- 7 Days Note, are separate forecasts for daytime an nighttime Also note, because weather.gov provides a separate Day and Night forecast, the HighTemp and LowTemp will return the same temperature, use "isDaytime" to determine which to show

Daily forecast (1-14) -- 7 Days Note, there are separate forecasts for daytime an nighttime Each item will be either a Daytime forecast with a HighTemperature, or it will be a Nighttime forecast with a LowTemperature

Current Weather:

Weather Alerts (1-10): number varies depending on number of alerts currently issued by the NWS

Hourly Weather (1-156):

Radar and Satellite maps (1-5):