weather-NwsWeatherProvider

 Each WeatherReport component has a “Provider” child that interfaces with the weather data source. When adding a new WeatherReport (locale), the default type is the Nws Weather Provider, for the NWS (National Weather Service). You select a specific NWS station using two drop-down selection lists, typically specifying a state, then city.

NoteApart from the default Nws Weather Provider, one or more other providers may be available.

For related details, see FoxWeatherProvider and WundergroundWeatherProvider.

NwsWeatherProvider properties include the “station ID” for the selected weather station, the number of outlook days for the weather report, as well as read-only properties reflecting the locale’s longitude and latitude. Also included is an “Advisories Alarm Ext” that allows for alarms when hazardous conditions exist or are expected.

For more details, see the following sections:

NwsWeatherProvider properties

Property sheet access of an NwsWeatherProvider shows the NWS station ID for the selected locale, along with days outlook and other read-only properties, as shown in Figure 8.

Figure 8. NwsWeatherProvider (property sheet)


NwsWeatherProvider (property sheet)

These properties are:

  • Station Id

    Station ID is automatically determined when you pick a report (location), using the Weather Manager view.

  • Outlook

    Number of days outlook—by default, 7 days. The maximum recommended Outlook value is 7 (days). Any greater number generates additional Forecast components upon a report update, however, they do not contain usable data.

  • Location

    Read-only “Location” property with a string value for the selected location.

  • Longitude

    Read-only geographical longitude for the selected location, in decimal degrees.

    NoteValues for longitude and latitude are useful if using a “SunPosition” component for this location—you must enter them in corresponding properties of that component. For related details, see SunPosition.

  • Latitude

    Read-only geographical latitude for this location, in decimal degrees. See the note above.