Author Topic: Multiple weather stations but combine readings  (Read 1565 times)

0 Members and 1 Guest are viewing this topic.

Offline weeeeee

  • Member
  • *
  • Posts: 2
Multiple weather stations but combine readings
« on: September 26, 2024, 04:39:52 AM »
I am new to weewx and have this question which has probably been answered before but I couldn't find an answer.

I have set my weewx instance to collect data from two weather stations (station1 and station2).

I would like to generate a report that combines the data from each weather station and I have found the required documentation for that in the wiki.

What I cannot find out how to do is the following:

Lets say I want to output the maximum outside temperature, I will have two readings $station1.outTemp and $station2.outTemp.  How do I pick the maximum?  Should I create some sort of xtype?

I would like to expand this to other properties like humidity, wind speed etc and also other magnitudes like minimum or average.

Online Mattk

  • Forecaster
  • *****
  • Posts: 2377
Re: Multiple weather stations but combine readings
« Reply #1 on: September 26, 2024, 05:45:31 AM »
Using a bit of logic  [tup] If $station1.outTemp > $station2.outTemp then use $station1.outTemp else use $station2.outTemp  =D>

Offline weeeeee

  • Member
  • *
  • Posts: 2
Re: Multiple weather stations but combine readings
« Reply #2 on: September 26, 2024, 08:35:10 AM »
Where would I put this logic?  In the skin templates? (I'm sorry if this is simple but I am very new with weewx).

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 265
    • home site
Re: Multiple weather stations but combine readings
« Reply #3 on: September 26, 2024, 07:07:10 PM »
You should really subscribe to the weewx-user google group and ask this one over there.  Your use case is pretty odd to say the least.  Why would you want to do this at all, and how would you know which station's readings to trust ?

It might help if you say what kind(s) of stations you have and how they are connected.
WeeWX sites on a pi4:
  Davis VP2+DFARS
  EcoWitt GW1200, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture, WH34 soilTemp
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/  - sorry, but I block incoming other than US/CA/AU due to bots from elsewhere
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881