User Guide
Programming i!-Weather
12
i!-Weather
i!-WeatherEngineTest.axs / i!-WeatherEngineMod.tko
To create a custom NetLinx application for use with i!-Weather, you will need to include the
i!-WeatherEngine module in your program. The included i!-WeatherEngineTest.axs file
demonstrates how to integrate the i!-WeatherEngine module into a program.
Define Module
The i!-WeatherEngine module is distributed as a pre-compiled NetLinx module. To include the
module in a program, an instance of the module must be defined in the parent program. (Normally,
DEFINE_MODULE statements are listed following the DEFINE_START section):
Where:
mdlWEATHER is a unique module name.
Devices
Make sure the device IDs are correct in the
DEFINE_DEVICE section:
//i!-Weather Devices
dvWEATHER_IP_CLIENT = 0:4:0 //INTERNET CONNECTION
dvTP = 128:1:0 //i!-Weather Touch Panel
dvBROWSER_IP_CLIENT = 0:5:0 //INTERNET CONNECTION FOR CITY BROWSER
vdvWEATHER = 33001:1:0 //VIRTUAL DEVICE
DEFINE_MODULE 'i!-WeatherEngineMod' mdlWEATHER(dvIP_CLIENT,
vdvWEATHER,
chZIPCODE,
chSTATION,
chSTRUCTURE_ENCODED_BUFFER)
i!-WeatherEngineMod.tko Module Parameters
dvIP_CLIENT The device of an available IP port on the NetLinx Master.
vdvWEATHER An available virtual device to be used exclusively for the i!-Weather Application.
chZIPCODE A character buffer that contains the current zip code to retrieve weather data.
chSTATION A character buffer that contains the current station code to retrieve weather
data.
chSTRUCTURE_ENCODED_
BUFFER
A character buffer that contains the encoded weather data structure.