Weather
Component
Name: Weather
Interface: IWeatherComponent
Component Functions:
Name:
Channel:
Level: Command:
getChanceOfPrecipita-
tion()
getCurrentCondition()
getForecastHighTemper-
ature()
getForecastLowTemper-
ature()
getRainfall(dur)
getWeatherAlert()
getWeatherConditions()
getWeatherScale()
getWindInfo()
queryWeatherAll()
208
setWeatherScale(us)
Standard NetLinx API (SNAPI) R 1.8.0
IWeatherComponent
Constant:
?FORECASTCOP
?WEATHERCONDITION
?FORECASTHIGH
?FORECASTLOW
?WEATHERRAIN-<duration>
?WEATHERALERT
?FORECASTCONDITION
?WEATHERSCALE
?WEATHERWIND
WEATHER_FORCE_REA
DING
WEATHERSCALE-<scale>
Notes:
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.
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
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
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
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).
Query for Weather alert, responds with WEATHERALERT-<alert> where <alert> is a
string containing the weather alert
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
Query for the temperature scale, responds with WEATHERSCALE-<scale> where
<scale> is IMPERIAL or METRIC
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
Momentary Function Channel: Causes the weather station to update its readings when
the channel is activated
Set the weather scale, where <scale> is IMPERIAL or METRIC
159
Need help?
Do you have a question about the CAFE DUET STANDARD NETLINX API (SNAPI) COMPONENTS AND LISTENERS and is the answer not in the manual?
Questions and answers