User Guide
Standard NetLinx API (SNAPI) R 1.8.0
334
Weather Functions (Cont.)
Name Component Channel Level Command Constant Notes
processPassbackEvent(byte[]) IModuleComponentListener When passback is on, each string received
form the device is sent to the NetLinx pro-
gram as a string. Use a DATA_EVENT
event with a STRING handler to caputre
the data from the device.
getChanceOfPrecipitation() IWeatherComponent ?FORECASTCOP Query for forecast chance of percipitation
changes, respons with FORECASTCOP-
<day 1>,<day 2>,etcĂ– Value list will con-
tain one forcast chance of percipitation for
each forecast day. The first day is always
today. Values are in percent.
getCurrentCondition() IWeatherComponent ?WEATHERCONDI-
TION
Query for current conditions, responds with
WEATHERCONDITION-<condition>, <con-
dition> will be BLIZZARD, BLOWINGS-
NOW, CLEAR, CLOUDY, DRIZZLE, DUST,
FAIR, FOG, FREEZINGDRIZZLE, FREEZ-
INGRAIN, HAZE, HUMID, ICE, MOSTLY-
CLOUDY, MOSTLYSUNNY,
PARTLYCLOUDY, RAIN, RAINSHOWERS,
RAINSNOWMIX, SLEET, SMOKE, SNOW,
SNOWFLURRIES, SNOWSHOWERS,
SUNNY, THUNDERSTORMS, UNKNOWN,
VERYCOLD, WINDY
getForecastHighTemperature() IWeatherComponent ?FORECASTHIGH Query for forecast high temperatures
changes, responds with FORECASTHIGH-
<day 1>,<day 2>, etc... Value list will con-
tain 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
getForecastLowTemperature() IWeatherComponent ?FORECASTLOW Query for forecast low temperatures
changes, responds with FORECASTLOW-
<day 1>,<day 2>, etc... Value list will con-
tain 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) IWeatherComponent ?WEATHERRAIN-
<duration>
Query for Rain fall, responds with WEATH-
ERRAIN-<duration>,<value> where <dura-
tion> is DAY, WEEK, MONTH, YEAR, YTD
and <value> is in inches (Imperial Scale) or
cm (Metric Scale).
getWeatherAlert() IWeatherComponent ?WEATHERALERT Query for Weather alert, responds with
WEATHERALERT-<alert> where <alert> is
a string containing the weather alert