Page 1 of 1

Poblem white the primaire sensor!

Posted: Tue Aug 21, 2018 3:33 pm
by gdijkstra
Meteobridge primaire sensor is th0temp but i want to have th1temp as my primaire sensor. But now i get the temperture of th1temp also in th0temp :oops: ? How can i solve this? HELP

Re: Poblem white the primaire sensor!

Posted: Tue Aug 21, 2018 10:58 pm
by Mattk
Go to [Live Data] tab, position mouse pointer over sensor th1temp, a box will pop up saying something like "Click to use th1temp as primary sensor"

Re: Poblem white the primaire sensor!

Posted: Thu Aug 23, 2018 8:58 am
by gdijkstra
Mattk wrote: Tue Aug 21, 2018 10:58 pm Go to [Live Data] tab, position mouse pointer over sensor th1temp, a box will pop up saying something like "Click to use th1temp as primary sensor"
That is what i did, but then i get de same value in th1temp en th0temp. The value from th1temp (this is the primary sensor).....

Re: Poblem white the primaire sensor!

Posted: Fri Aug 24, 2018 1:56 pm
by admin
In which context do you get data from "th1temp" when asking for "th0temp"? When evaluating templates?

Re: Poblem white the primaire sensor!

Posted: Fri Aug 24, 2018 1:59 pm
by admin
Please also read this release notes from March:

released March 10, 2018

adds template variable expressions "[mbsystem-primarysensors:]" and "[mbsystem-noprimarysensors:]" to control inside a template if "0" sensors (like th0, wind0, rain0, etc) should be replaced by sensors defined on "Live Data" tab as primary or taken literally. The mentioned template expressions are evaluated to the empty string and thereby do nothing directly in your template but control how variables are evaluated as a side effect.

Taken from https://www.meteobridge.com/wiki/index.php/Forum

Re: Poblem white the primaire sensor!

Posted: Sun Aug 26, 2018 10:38 am
by gdijkstra
template.JPG
template.JPG (84.77 KiB) Viewed 1700 times
meteobridge.JPG
meteobridge.JPG (157.2 KiB) Viewed 1700 times
The template is meteotemplate.com. In the api file i get the sensor value from th1temp also in th0temp?