Owner's Manual (Complete)

Chapter 11 - Expressions
The Home Control Assistant
19
string = solarRadiationUnits()
Returns a string of the current solar radiation units. Always
"W/sq m"
string = _UVUnits()
Returns a string of the current UV units. Always "UV index"
string = _soilUnits()
Returns a string of the current soil units. Always "c"
number = _tempConvert (number, fromUnits, toUnits)
Converts a temperature between F and C. The first parameter is the temperature. The 2
nd
parameter is the current units and the 3
rd
parameter is the units wanted. The encodings of the
units parameters are:
F = 0
C = 1
number = _barometerConvert (number, fromUnits, toUnits)
Converts a barometer measurement between the four supported units. The first parameter is
the barometric reading. The 2
nd
parameter is the current units and the 3
rd
parameter is the
units wanted. The encodings of the units parameters are:
Inches = 0
Millimeters = 1
Millbars = 2
Hecto Pascals = 3
number = __windSpeedConvert (number, fromUnits, toUnits)
Converts a barometric reading between the four supported rates. The first parameter is the
wind speed. The 2
nd
parameter is the current units and the 3
rd
parameter is the units wanted.
The encodings of the units parameters are:
Miles per hour = 0
Knots = 1
Kilometers per hour = 2
Meters per second = 3
number = _rainConvert (number, fromUnits, toUnits)
Converts a rain amount between the two supported units. The first parameter is the rain
amount. The 2
nd
parameter is the current units and the 3
rd
parameter is the units wanted. The
encodings of the units parameters are:
Inches = 0
Millimeters = 1
string = _windDirection (number)
Changes a wind direction in degrees into a string of the form, N, NNE, NE, ENE, E, etc.