NOAA Weather Driver

Modified on 2012/01/04 15:00 by Administrator — Categorized as: Driver

Image
Provides weather information from the US National Oceanic and Atmospheric Administration's National Weather Service.

The National Digital Forecast Database (NDFD) is updated no more than hourly by 45 after the hour.

This driver requires a connection to the internet to retrieve the weather data.

Manufacturer: NOAA

Primary Communications Port: Network


Configuration Settings


You must provide either Address -OR- Longitude and Latitude.

Events

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:


Instance Properties

Location

Gets the location for the weather.

Accessibility : Read Only

Type: String

Highs

Gets an array of daily maximum temperatures.

Accessibility : Read Only

Type: Array

Lows

Gets an array of daily minimum temperatures.

Accessibility : Read Only

Type: Array

Conditions

Gets an array of Weather Type, Coverage, and Intensity.

Accessibility : Read Only

Type: Array

ConditionIconUrls

Gets an array of condition icons urls by day.

Accessibility : Read Only

Type: Array

Humidity

Gets the percent relative humidity.

Accessibility : Read Only

Type: Number

WindSpeed

Gets the windspeed in miles/hour.

Accessibility : Read Only

Type: Number

WindDirectionDegrees

Gets the wind direction in degrees.

Accessibility : Read Only

Type: Number

WindDirectionText

Gets the wind direction as text. Ex: NW or E.

Accessibility : Read Only

Type: String

WindSpeedGust

Gets the wind speed gust in miles/hour.

Accessibility : Read Only

Type: Number

Temperature

Gets the temperature.

Accessibility : Read Only

Type: Number

ApparentTemperature

Gets the apparent temperature.

Accessibility : Read Only

Type: Number

DewPoint

Gets the dew point temperature.

Accessibility : Read Only

Type: Number

CloudCoverPercent

Gets the percent cloud cover.

Accessibility : Read Only

Type: Number

CurrentCondition

Gets the current condition.

Accessibility : Read Only

Type: String

PrecipitationChance

Gets the percent precipitation chance.

Accessibility : Read Only

Type: Number

Dates

Gets the dates for all the forecast days.

Accessibility : Read Only

Type: Array

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.