What conditional will allow me to report th0temp as the lesser of th0!0temp and th1!0temp?

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

Moderator: Mattk

Post Reply
bam
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Thu Oct 07, 2021 3:01 am

What conditional will allow me to report th0temp as the lesser of th0!0temp and th1!0temp?

Post by bam »

I am looking to make th0temp, outdoor temperature, be the lesser of th0!0temp and th1!0temp.
My th0!0temp is my main outdoor sensor, however it is subject to 30 minute spikes in temperature
so I would like to have the secondary sensor be reported when the main sensor is known wrong.

Thanks!
User avatar
jasonmfarrow
Gold Boarder
Gold Boarder
Posts: 249
Joined: Mon May 25, 2020 4:21 pm
Contact:

Re: What conditional will allow me to report th0temp as the lesser of th0!0temp and th1!0temp?

Post by jasonmfarrow »

Hi Bam,

Your meteobridge maps physical sensors to a chosen logical sensors. The logical sensors are then used to upload to the various weather services you might be using. There is no function within the metobridge that equates to:
  • if <working_sensor_logic> then map_sensor_A else map_sensor_B
The only way I can think of would be to run some custom script that contains the logic of choice and does some kind of outputting. However that would not change what the meteobridge sends to the weather services unless your code was able to overwrite the required logical sensor.

If Boris, the meteobridge owner/developer, were to consider this as a functionality request, you'd have to provide clear logic that defines how a particular sensor might be identified as not working so as to be able to select the alternative sensor. It's likely that the better thing would be to identify why you get these 30-minute spikes in temperature and address the root cause.
Regards
Jason
https://jmfweather.uk | @jasonmfarrow
bam
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Thu Oct 07, 2021 3:01 am

Re: What conditional will allow me to report th0temp as the lesser of th0!0temp and th1!0temp?

Post by bam »

Thank you Jason! :-)
bam
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: Thu Oct 07, 2021 3:01 am

Re: What conditional will allow me to report th0temp as the lesser of th0!0temp and th1!0temp?

Post by bam »

I know why I get these 30-minute spikes in temperature and address the root cause,
but circumstances do not permit changing the location of the 2 sensors nor shielding them.
The secondary sensor is a Courtyard that is visible through the front window, thus runs
a bit warm due to being near the house and sheltered. The Primary Sensor looses shad
in late midafternoon and cannot be shielded, but otherwise provide a better reading.
Post Reply