using virtual Sensor to correct temperature data **SOLVED**
Posted: Sat Jun 06, 2015 1:33 pm
Hi All,
I have an outside tem sensor that does not give the correct value due to the placement of the sensor.
In the past I used WeeWX, and I had a conversion script ruiing, to "correct" the output of the temp sensor to the correct values.
this was the calculation :
outTemp = 0.88*(outTemp-7)+7
So now I startet playing with the virtual sensors
as a trivver I use TH0 , that gives me Temp & humidity :
So now I creatd a virtual sensor T11 (i only want to correct the temperature)
with as a trigger the TH0 from above, and this as a conversion script :
but this is'nt working.
how do i get the T11 to give me the correct output ?
Erwin
http://weather.on8ar.eu
I have an outside tem sensor that does not give the correct value due to the placement of the sensor.
In the past I used WeeWX, and I had a conversion script ruiing, to "correct" the output of the temp sensor to the correct values.
this was the calculation :
outTemp = 0.88*(outTemp-7)+7
So now I startet playing with the virtual sensors
as a trivver I use TH0 , that gives me Temp & humidity :
Code: Select all
20150606112403 th0 229 44 0100
20150606112456 th0 230 44 0101
20150606112642 th0 231 44 0102
20150606112828 th0 226 45 0101
with as a trigger the TH0 from above, and this as a conversion script :
Code: Select all
awk ' { printf ''%d %d %d %d'', (0.88 * ($2- 7)--7)}'
how do i get the T11 to give me the correct output ?
Erwin
http://weather.on8ar.eu