Looking for a tag- Two sensors grouped into one

23 views
Skip to first unread message

weerman

unread,
Jun 14, 2021, 4:32:23 PM6/14/21
to weewx-user
Hi all,

I'm looking for a tag which combines the values two temperature sensors into just one tag. 

E.g. you have two sensors, one is mounted on a north facing wall and one on a west facing wall. Lets say the sensor on the west facing wall reads 25°C and the one on the north face reads 23°C. So the average value of both sensors would be 24°C. That would be the value of the tag i'm after. 

Does such a tag already exist in weewx tags or do i have to create such a tag by myself?

Many Thanks 

Georg

Karen K

unread,
Jun 14, 2021, 4:37:25 PM6/14/21
to weewx-user
Something like that (not tested):

#set $avgtemp = ( $current.temp1 + $current.temp2 ) / 2
North-west average: $avgtemp
Reply all
Reply to author
Forward
0 new messages