Virtual sensor set up?

and other offical x86 platforms like e-boxes and fitPC

Moderator: Mattk

Post Reply
birdfeedr
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Aug 29, 2010 3:20 am

Virtual sensor set up?

Post by birdfeedr »

meteohubsensors.png
meteohubsensors.png (95.39 KiB) Viewed 4563 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.
Last edited by birdfeedr on Sun May 20, 2012 9:41 pm, edited 1 time in total.
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Virtual sensor set up?

Post by YJB »

Not 100% sure, but try sensdiffslave 1 none
birdfeedr
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Aug 29, 2010 3:20 am

More info

Post 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".
birdfeedr
Junior Boarder
Junior Boarder
Posts: 31
Joined: Sun Aug 29, 2010 3:20 am

Re: Virtual sensor set up?

Post 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.
Post Reply