Poblem white the primaire sensor!

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
gdijkstra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Tue Aug 21, 2018 3:20 pm

Poblem white the primaire sensor!

Post 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
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1395
Joined: Mon Sep 22, 2014 3:24 am

Re: Poblem white the primaire sensor!

Post 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"
gdijkstra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Tue Aug 21, 2018 3:20 pm

Re: Poblem white the primaire sensor!

Post 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).....
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Poblem white the primaire sensor!

Post by admin »

In which context do you get data from "th1temp" when asking for "th0temp"? When evaluating templates?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Poblem white the primaire sensor!

Post 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
gdijkstra
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Tue Aug 21, 2018 3:20 pm

Re: Poblem white the primaire sensor!

Post by gdijkstra »

template.JPG
template.JPG (84.77 KiB) Viewed 1695 times
meteobridge.JPG
meteobridge.JPG (157.2 KiB) Viewed 1695 times
The template is meteotemplate.com. In the api file i get the sensor value from th1temp also in th0temp?
Post Reply