Page 1 of 1

Virtual sensor set up?

Posted: Sun May 20, 2012 1:40 pm
by birdfeedr
meteohubsensors.png
meteohubsensors.png (95.39 KiB) Viewed 4561 times
I have a series of sensors, two of which monitor the temperature on both sides of a solar collector. These are th12 and th13. I have tried to create a virtual sensor that displays the difference between the two by following the write-up in the meteohub 4.7 documentation. I'm currently running 4.8 Build 5634.

Attachment shows sensor page with no data on th20. The conversion text fields are "sensdiffmaster 1 300" and "sensdiffslave 1 300". I created the sensor and the meteohub system recomputed data (taking a long time), but shows no results. What did I goof up?

Thanks for your help.
[edit to add]Wrong forum. Should be in Application, not Meteohub Hardware.

Re: Virtual sensor set up?

Posted: Sun May 20, 2012 7:12 pm
by YJB
Not 100% sure, but try sensdiffslave 1 none

More info

Posted: Sun May 20, 2012 9:53 pm
by birdfeedr
Meteohub log shows
logger (20.05.2012 00:00:17): computation of virtual sensor "th20" with values "6" failed: Wrong number of parameters: "temp[1/10C]* hum[%]* dew[1/10C]" (* = mandatory, others can be replaced by "-")

sensor data shows typical entry
20120520193726 th12 139 255 0000
20120520193738 th13 217 255 0000

The 300 seconds probably is the same as the 300 seconds default value in Weather Station / Hold Time for Live Data. I've changed the conversion per your recommendation, and will see what results.

Thanks.

I think the error message is because th20 should be returning something like "datestamp th20 6 255 0000".

Re: Virtual sensor set up?

Posted: Mon May 21, 2012 10:54 am
by birdfeedr
Solved. Changed sensor type to t1 which is temperature only. Single parameter was returned from difference calculation. The th20 sensor type was expecting more data.