User Guide
159
Standard NetLinx API (SNAPI) R 1.8.0
Weather
Component
Name: Weather
Interface: IWeatherComponent
IWeatherComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
getChanceOfPrecipita-
tion()
?FORECASTCOP Query for forecast chance of percipitation changes, respons with FORECASTCOP-
<day 1>,<day 2>,etcĂ– Value list will contain one forcast chance of percipitation for
each forecast day. The first day is always today. Values are in percent.
getCurrentCondition() ?WEATHERCONDITION Query for current conditions, responds with WEATHERCONDITION-<condition>, <con-
dition> will be BLIZZARD, BLOWINGSNOW, CLEAR, CLOUDY, DRIZZLE, DUST,
FAIR, FOG, FREEZINGDRIZZLE, FREEZINGRAIN, HAZE, HUMID, ICE, MOSTLY-
CLOUDY, MOSTLYSUNNY, PARTLYCLOUDY, RAIN, RAINSHOWERS, RAINSNOW-
MIX, SLEET, SMOKE, SNOW, SNOWFLURRIES, SNOWSHOWERS, SUNNY,
THUNDERSTORMS, UNKNOWN, VERYCOLD, WINDY
getForecastHighTemper-
ature()
?FORECASTHIGH Query for forecast high temperatures changes, responds with FORECASTHIGH-<day
1>,<day 2>, etc... Value list will contain one forcast high temperature for each forecast
day. The first day is always today. Values are in degrees C or F depending on weather
scale
getForecastLowTemper-
ature()
?FORECASTLOW Query for forecast low temperatures changes, responds with FORECASTLOW-<day
1>,<day 2>, etc... Value list will contain one forcast high temperature for each forecast
day. The first day is always today. Values are in degrees C or F depending on weather
scale
getRainfall(dur) ?WEATHERRAIN-<duration> Query for Rain fall, responds with WEATHERRAIN-<duration>,<value> where <dura-
tion> is DAY, WEEK, MONTH, YEAR, YTD and <value> is in inches (Imperial Scale) or
cm (Metric Scale).
getWeatherAlert() ?WEATHERALERT Query for Weather alert, responds with WEATHERALERT-<alert> where <alert> is a
string containing the weather alert
getWeatherConditions() ?FORECASTCONDITION Query for forecast conditions, responds with FORECASTCONDITION-<day 1>,<day
2>, etc.. Value list will contain one forcast condition for each forecast day. The first day
is always today. Values will be BLIZZARD, BLOWINGSNOW, CLEAR, CLOUDY,
DRIZZLE, DUST, FAIR, FOG, FREEZINGDRIZZLE, FREEZINGRAIN, HAZE, HUMID,
ICE, MOSTLYCLOUDY, MOSTLYSUNNY, PARTLYCLOUDY, RAIN, RAINSHOW-
ERS, RAINSNOWMIX, SLEET, SMOKE, SNOW, SNOWFLURRIES, SNOWSHOW-
ERS, SUNNY, THUNDERSTORMS, UNKNOWN, VERYCOLD, WINDY
getWeatherScale() ?WEATHERSCALE Query for the temperature scale, responds with WEATHERSCALE-<scale> where
<scale> is IMPERIAL or METRIC
getWindInfo() ?WEATHERWIND Query for the wind speed/direction, responds with WEATHERWIND-<speed>,direc-
tion> where <speed> will be in mph or kph, depending on scale and <direction> will be
N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW
queryWeatherAll() 208 WEATHER_FORCE_REA
DING
Momentary Function Channel: Causes the weather station to update its readings when
the channel is activated
setWeatherScale(us) WEATHERSCALE-<scale> Set the weather scale, where <scale> is IMPERIAL or METRIC