Following the info 123 posted on displaying temps in the Date time area and seeing how Chuck modified it to
use data from his weather station, I added this to the date time render script.
I am using the VWS module to get the weather data, my problem is that sometimes the
Temperature displays too many places after the decimal point.
Is there a way to limit the nuber of digits after the decimal point to 1 and also
I would like the humidity readings to display without the extra zero and a decimal point.
Below is a example of what I sometimes get.
Friday
April 30 2010
8:18 AM 45.3°F
0.48% Outside
72.5000000000001°F
0.33% Indoors
use data from his weather station, I added this to the date time render script.
Code:
if not Home.WS_Temp_Sensor is nothing then
tStr = tStr & (" " & Home.WS_Temp_Sensor.Temperature.Fahrenheit)& chr(176) & "F"
end if
if not Home.HumiditySensor is nothing then
tStr = tStr & (" " & Home.HumiditySensor.Humidity)& "%" & " Outside"
end if
if not Home.WS_Temp_Sensor2 is nothing then
tStr = tStr & (" " & Home.WS_Temp_Sensor2.Temperature.Fahrenheit)& chr(176) & "F"
end if
if not Home.HumiditySensor2 is nothing then
tStr = tStr & (" " & Home.HumiditySensor2.Humidity)& "%" & " Indoors"
end if
I am using the VWS module to get the weather data, my problem is that sometimes the
Temperature displays too many places after the decimal point.
Is there a way to limit the nuber of digits after the decimal point to 1 and also
I would like the humidity readings to display without the extra zero and a decimal point.
Below is a example of what I sometimes get.
Friday
April 30 2010
8:18 AM 45.3°F
0.48% Outside
72.5000000000001°F
0.33% Indoors