Channels; I!-Weather Virtual Channel Map; Request Channels; Status & Request Channels - AMX I!-WEATHER Instruction Manual

Integration!solutions
Table of Contents

Advertisement

Channels

i!-Weather Virtual Channel Map

//Request Channels (DO_PUSH)
VIRTUAL_CHANNEL_QUERY_BY_ZIPCODE
VIRTUAL_CHANNEL_QUERY_BY_STATION
//Status & Request Channels
VIRTUAL_CHANNEL_TEMP_FARENHEIT
VIRTUAL_CHANNEL_TEMP_CELSIUS
VIRTUAL_CHANNEL_SPEED_MPH
VIRTUAL_CHANNEL_SPEED_KPH
VIRTUAL_CHANNEL_SPEED_KNOTS
VIRTUAL_CHANNEL_PRESSURE_INCHES
VIRTUAL_CHANNEL_PRESSURE_TORR
VIRTUAL_CHANNEL_PRESSURE_MILIBAR
//Debug Channel
VIRTUAL_CHANNEL_DEBUG
//Notification Channels
VIRTUAL_CHANNEL_ERROR_UNHANDLED_COMMAND = 248
VIRTUAL_CHANNEL_ERROR_IP_CONNECT
VIRTUAL_CHANNEL_ERROR_NOT_FOUND
VIRTUAL_CHANNEL_ERROR_SYSTEM_DOWN = 251
VIRTUAL_CHANNEL_ERROR
VIRTUAL_CHANNEL_SUCESS
//Status Only Channels:
VIRTUAL_CHANNEL_BUSY

Request Channels

Sending a
//Notify i!-WeatherEngine to retrieve new weather data by ZIP Code
DO_PUSH_TIMED(vdvWEATHER,VIRTUAL_CHANNEL_QUERY_BY_ZIPCODE,5)
Status & Request Channels
The status of the channel can be read to determine the state of the i!-WeatherEngine option.
Sending a

Debug Channels

The status of the debug channel can be read or set to enable/disable i!-WeatherEngine debug
messaging.
i!-Weather
on a request channel notifies the i!-WeatherEngine to process the request.
DO_PUSH
//Determine if the i!-WeatherEngine Speed Format is set to MPH
IF([vdvWEATHER,VIRTUAL_CHANNEL_QUERY_BY_ZIPCODE])
nSPEED_FORMAT = SPEED_MPH
on a request channel notifies the i!-WeatherEngine to process the request.
DO_PUSH
//Set i!-WeatherEngine to MPH Speed Format
DO_PUSH_TIMED(vdvWEATHER,VIRTUAL_CHANNEL_SPEED_MPH,5)
//Turn i!-WeatherEngine Debug Messages ON
ON[vdvWEATHER,VIRTUAL_CHANNEL_DEBUG]
= 1
= 2
= 10
= 11
= 13
= 14
= 15
= 17
= 18
= 19
= 255
= 249
= 250
= 252
= 253
= 254
Programming i!-Weather
17

Advertisement

Table of Contents
loading

Table of Contents