User Guide
335
Standard NetLinx API (SNAPI) R 1.8.0
Weather Functions (Cont.)
Name Component Channel Level Command Constant Notes
getWeatherConditions() IWeatherComponent ?FORECASTCONDI-
TION
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,
RAINSHOWERS, RAINSNOWMIX, SLEET,
SMOKE, SNOW, SNOWFLURRIES,
SNOWSHOWERS, SUNNY, THUNDER-
STORMS, UNKNOWN, VERYCOLD,
WINDY
getWeatherScale() IWeatherComponent ?WEATHERSCALE Query for the temperature scale, responds
with WEATHERSCALE-<scale> where
<scale> is IMPERIAL or METRIC
getWindInfo() IWeatherComponent ?WEATHERWIND Query for the wind speed/direction,
responds with WEATHERWIND-
<speed>,direction> 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() IWeatherComponent 208 WEATHER_FORCE_READI
NG
Momentary Function Channel: Causes the
weather station to update its readings when
the channel is activated
setWeatherScale(us) IWeatherComponent WEATHERSCALE-
<scale>
Set the weather scale, where <scale> is
IMPERIAL or METRIC
processBarometricPressureEvent(float) IWeatherComponentListener 48 WEATHER_BAR_LVL Barometric pressure changed, value is in
inches Hg (Imperial Scale) or mm Hg/torr
(Metric Scale)
processBarometricTrendEvent(RISING) IWeatherComponentListener 232 WEATHER_BAR_RISING Feedback Channel: Barometric pressure
trend change (see chart below)
processBarometricTrendEvent(FALLING) IWeatherComponentListener 233 WEATHER_BAR_FALLING Feedback Channel: Barometric pressure
trend change (see chart below)
processChanceOfPrecipitationEvent(int[]) IWeatherComponentListener FORECASTCOP-<day
1>,<day 2>, etcĂ–
Weather forecast chance of percipitation
changes, value list will contain one forcast
chance of percipitation for each forecast
day. The first day is always today. Values
are in percent.