User Guide

Programming i!-Weather
16
i!-Weather
A source code example is provided below to demonstrate how to read a particular format:
//Read i!-Weather Temperature Format from i!-WeatherEngine
IF([vdvWEATHER,VIRTUAL_CHANNEL_TEMP_FARENHEIT])
{
nTEMP_FORMAT = TEMP_FARENHEIT
}
IF([vdvWEATHER,VIRTUAL_CHANNEL_TEMP_CELSIUS])
{
nTEMP_FORMAT = TEMP_CELSIUS
}
Weather data formats can also be changed via the virtual weather device command
interface (Refer to the Commands section on page 19).