Is it possibe to use 1 console for 2 weewx systems?

50 views
Skip to first unread message

WindnFog

unread,
Oct 10, 2023, 4:35:16 PM10/10/23
to weewx-user
Given the somewhat erratic behaviour of the Raspberry Pi's 4's USB ports and the handshaking between weewx and the data console, I suspect what I want to do is impossible, but here's a shot in the dark.  

I'd like to "split" my USB data from a Vantage Vue console between my production weewx Pi 4 and a development Pi 4.  weewx is working well using the Simulator on my development Pi, but I want to feed it actual data and use the Vantage driver.  What would happen if I fed the Vantage Vue console into a powered USB hub and then used two other ports as the data sources?

Both systems are using weewx 4.1.2.

- Paul VE1DX

Stephen Hocking

unread,
Oct 10, 2023, 7:20:19 PM10/10/23
to weewx...@googlegroups.com
I'd suggest sending the Vue's data to something like MQTT, then have both the dev & prod boxes pick data up off it.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6e23865f-b5a6-4928-b100-70f531f21f2cn%40googlegroups.com.


--
  "I and the public know
  what all schoolchildren learn
  Those to whom evil is done
  Do evil in return"		W.H. Auden, "September 1, 1939"

vince

unread,
Oct 10, 2023, 9:39:32 PM10/10/23
to weewx-user
Not understanding your 'erratic behavior' commentary.  I've been running a pi4 via serial2usb converter from a VP2 for well over a year with zero issues.  No need to do crazy stuff like trying to split a serial communication.

bell...@gmail.com

unread,
Oct 11, 2023, 12:10:41 AM10/11/23
to weewx-user
Shameless plug, this what I do. I publish the data to MQTT and use MQTTSubscribeDriver in my various development environments.
rich

Greg Troxel

unread,
Oct 11, 2023, 12:51:28 AM10/11/23
to WindnFog, weewx-user
WindnFog <foc...@gmail.com> writes:

> Given the somewhat erratic behaviour of the Raspberry Pi's 4's USB ports
> and the handshaking between weewx and the data console, I suspect what I
> want to do is impossible, but here's a shot in the dark.

+1 to vince's comments. USB should be ok if your power supply is
adequate.

> I'd like to "split" my USB data from a Vantage Vue console between my
> production weewx Pi 4 and a development Pi 4. weewx is working well using
> the Simulator on my development Pi, but I want to feed it actual data and
> use the Vantage driver. What would happen if I fed the Vantage Vue console
> into a powered USB hub and then used two other ports as the data sources?

This doesn't really make sense. USB is a two-way bus, with one
originator (a computer) and some number of devices (serial ports,
disks). The hub is plugged into the computer, making it act like it has
more ports. You can't use a hub to put one serial adaptor on two
computers.

The two-way part means that the computer sends bytes to the console
(really to the 6150USB data logger) and the console replies. So yes,
you could fake up something where the bytes are proxied across and the
other computer's commands go nowhere.

But as people said, mqtt transmit is the way to go.

Or, you can just move it to the development box for an hour, and then
back. If the developemnt box doesn't clear the logger, the production
one will fetch the old records and all will be ok.

> Both systems are using weewx 4.1.2.

That's old, but that's not relevant to this discussion.

WindnFog

unread,
Oct 11, 2023, 1:10:20 PM10/11/23
to weewx-user
It's v4.10.2 - my typo mistake.  I always use the latest release of weewx.  I'll go with MQTT.

- Paul VE1DX
Reply all
Reply to author
Forward
0 new messages