I!-Weatherenginetest.axs / I!-Weatherenginemod.tko; Define Module; Devices - AMX I!-WEATHER Instruction Manual

Integration!solutions
Table of Contents

Advertisement

Programming 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
DEFINE_MODULE 'i!-WeatherEngineMod'
Where:
mdlWEATHER
i!-WeatherEngineMod.tko Module Parameters
dvIP_CLIENT
vdvWEATHER
chZIPCODE
chSTATION
chSTRUCTURE_ENCODED_
BUFFER

Devices

Make sure the device IDs are correct in the
//i!-Weather Devices
dvWEATHER_IP_CLIENT
dvTP
dvBROWSER_IP_CLIENT
vdvWEATHER
12
statements are listed following the
is a unique module name.
The device of an available IP port on the NetLinx Master.
An available virtual device to be used exclusively for the i!-Weather Application.
A character buffer that contains the current zip code to retrieve weather data.
A character buffer that contains the current station code to retrieve weather
data.
A character buffer that contains the encoded weather data structure.
DEFINE_DEVICE
=
0:4:0
=
128:1:0
=
0:5:0
=
33001:1:0
section):
DEFINE_START
mdlWEATHER(dvIP_CLIENT,
vdvWEATHER,
chZIPCODE,
chSTATION,
chSTRUCTURE_ENCODED_BUFFER)
section:
//INTERNET CONNECTION
//i!-Weather Touch Panel
//INTERNET CONNECTION FOR CITY BROWSER
//VIRTUAL DEVICE
i!-Weather

Advertisement

Table of Contents
loading

Table of Contents