User Guide
337
Standard NetLinx API (SNAPI) R 1.8.0
Weather Functions (Cont.)
Name Component Channel Level Command Constant Notes
processOutdoorHumidityEvent(int) IWeatherComponentListener 36 OUTDOOR_HUMID_LVL Outdoor humidity changed, value is in per-
cent
processOutdoorTemperatureEvent(float) IWeatherComponentListener 34 OUTDOOR_TEMP_LVL Outdoor temperature changed, value is in
degrees C or F depending on weather
scale
processRainfallEvent(float,Duration) IWeatherComponentListener WEATHERRAIN-
<duration>,<value>
Rain fall changed, where <duration> is
DAY, WEEK, MONTH, YEAR, YTD and
<value> is in inches (Imperial Scale) or cm
(Metric Scale).
processWeatherAlertEvent(String) IWeatherComponentListener WEATHERALERT-
<alert>
Weather alert, where <alert> is a string
containing the weather alert
processWeatherConditionsEvent(Weather-
Conditions[])
IWeatherComponentListener FORECASTCONDI-
TION-<day 1>,<day 2>,
etc.
Weather forecast conditions changed,
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, FREEZ-
INGDRIZZLE, FREEZINGRAIN, HAZE,
HUMID, ICE, MOSTLYCLOUDY,
MOSTLYSUNNY, PARTLYCLOUDY, RAIN,
RAINSHOWERS, RAINSNOWMIX, SLEET,
SMOKE, SNOW, SNOWFLURRIES,
SNOWSHOWERS, SUNNY, THUNDER-
STORMS, UNKNOWN, VERYCOLD,
WINDY
processWeatherScaleEvent(UnitScale) IWeatherComponentListener WEATHERSCALE-
<scale>
Weather scale changed, <scale> is IMPE-
RIAL or METRIC
processWindchillEvent(float) IWeatherComponentListener 45 WEATHER_WIND_CHILL_L
VL
Windchill temperature changed, value is in
degrees C or F depending on weather
scale
processWindInfoEvent (WindInfo ) IWeatherComponentListener WEATHERWIND-
<speed>,direction>
Wind speed/direction had changed. Wind
speed will be in mph or kph, depending on
scale. Direction will be N, NNE, NE, ENE,
E, ESE, SE, SSE, S, SSW, SW, WSW, W,
WNW, NW, NNW