Looking for sample weewx.conf file that includes two sensor sources for Vantage Pro

132 views
Skip to first unread message

Bob Borzelleri

unread,
Aug 30, 2019, 10:49:04 AM8/30/19
to weewx-user
I am switching to a Raspberry Pi 4 with Weewx from a PC running Weatherlink for the past 15 years.  Previously, I ran the anemometer hard wired into the ISS which would work fine, I assume, with Weewx seeing all sensor inputs (rain, temp/humidity/ solar radiation and wind) from ISS = 1.

Now that I am 15 years older than when I started this weather stuff, I no longer wish to hang off the roof in order to maintain the ISS so I am relocating it to a spot in the yard that does not require a crane in order to get to.  I have switched the anemometer from hard wire in the ISS to plugging into a Davis wireless sensor transmitter.

The Weewx configuration file seems to be happy   seeing the ISS as Station 1 ( ISS = 1), but adding Station 2 on the next line (Anemometer = 2)  doesn't seem to be the hot setup.

If anyone has two Davis Vantage Pro stations feeding into Weewx, I'd appreciate seeing how they included the 2nd one in the configuration file.

BTW, the Davis Console is set up to see the 2nd station and reports its activity.  I also have an Envoy that I set up through Weathlink to see the 2nd station (menu driven Q & A) and have it plugged into the RPi.  I reports all data from the ISS, but not the anemometer and lists N/A alongside the Current Conditions for wind.

Now that I have just called up the page, I see that the Barometer shows the current reading but also shows (N/A) after the reading.

Any help would be greatly appreciated.

...Bob

 

paul bennett

unread,
Aug 30, 2019, 12:27:40 PM8/30/19
to weewx-user
I have exactly that setup - a VP2 with a separate wireless staion on the roof for the anemometer.  The VP2 base station is configured to receive from Station 2.  Here's the [Vantage] section from my weewx.conf:

##############################################################################

[Vantage]
    # This section is for the Davis Vantage series of weather stations.

    # Connection type: serial or ethernet
    #  serial (the classic VantagePro)
    #  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
    type = serial

    # If the connection type is serial, a port must be specified:
    #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
    #     /dev/ttyUSB0 is a common USB port name
    #     /dev/ttyS0   is a common serial port name
    #   BSD:
    #     /dev/cuaU0   is a common serial port name
    port = /dev/ttyUSB0

    # If the connection type is ethernet, an IP Address/hostname is required:
#-#     host = 1.2.3.4

    ######################################################
    # The rest of this section rarely needs any attention.
    # You can safely leave it "as is."
    ######################################################

    # Serial baud rate (usually 19200)
    baudrate = 19200

    # TCP port (when using the WeatherLinkIP)
    tcp_port = 22222

    # TCP send delay (when using the WeatherLinkIP):
    tcp_send_delay = 0.5

    # The id of your ISS station (usually 1). If you use a wind meter connected
    # to a anemometer transmitter kit, use its id
    iss_id = 2

    # How long to wait for a response from the station before giving up (in
    # seconds; must be greater than 2)
    timeout = 4

    # How long to wait before trying again (in seconds)
    wait_before_retry = 1.2

    # How many times to try before giving up:
    max_tries = 4

    # Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
    model_type = 2

    # The driver to use:
    driver = weewx.drivers.vantage

##############################################################################

Hope that helps...

vince

unread,
Aug 30, 2019, 12:32:04 PM8/30/19
to weewx-user
On Friday, August 30, 2019 at 7:49:04 AM UTC-7, Bob Borzelleri wrote:
If anyone has two Davis Vantage Pro stations feeding into Weewx, I'd appreciate seeing how they included the 2nd one in the configuration file.


I don't think you can have multiple 'stations' in one instance of weewx, but you can run multiple instances of weewx on one computer, each talking to one station.   The only way I can think of combining the two into some kind of aggregate would be to have both instances publish to MQTT and then have a third aggregator weewx instance subscribe to the topics from the two hosts.

If you don't need weewx as your all-data-from-both display, then I'd suggest using influxdb+grafana as your db+dashboard, and using something like telegraf to subscribe to the topics and feed influxdb with data.  That's how I have data from one WeatherFlow station overlaid with data from a variety of pi and arduino sprinked around the house.  Works great....but it's not a weewx-based solution to get you to have two stations of data on weewx-generated pages.

Maybe have the stations publish into influxdb and have weewx 'consume' the influxdb data to generate graphs ?  I dunno.

Matthew probably has it solved anyway :-)

Les Niles

unread,
Aug 30, 2019, 1:05:16 PM8/30/19
to Bob Borzelleri, weewx...@googlegroups.com

I have my anemometer connected to a separate sensor transmitter, with the ISS as station 4 and the anemometer as station 3 -- I have a neighbor with an ISS on station 1.  weewx is connected to the console by an ethernet data logger.  I never touched the iss_id in weewx.conf -- it's still the default value of 1.  weewx is just picking up whatever sensors/IDs the console is configured to use.  wee_device --info reports wind on channel 3 and iss on channel 4, as expected.  But I don't have any experience with the Envoy or how to configure it.

  -Les
--
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/fba19644-296a-4f6a-8c2a-4b76c304d42d%40googlegroups.com.

Bob Borzelleri

unread,
Aug 30, 2019, 7:43:25 PM8/30/19
to weewx-user
Thanks.  The data logger in the Envoy is collecting wind data from the separate station, it's just not showing up in Weewx.  It does show up in WeatherLink 6.0.3.  

Next step is to hook up the Console with the RPi.  While I do not want to locate the Console in the same room as the RPi, it will at least clear up if the issue is solely with the Envoy.

Thanks again   
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Bob Borzelleri

unread,
Aug 30, 2019, 7:46:36 PM8/30/19
to weewx-user
Thanks...

It looks like your configuration specifies station #2 as an exception which might mean that Weewx can see the #1 Station by default.  

I will give it a try.

Jacques Terrettaz

unread,
Sep 2, 2019, 10:11:00 AM9/2/19
to weewx-user
Is your VP2 console communicating wirelessly with the ISS ?  If this is the case, you could configure your VP2 console to receive temp/hum/rain date from ISS (id=1) and wind data  from the anemometer transmitter (id=2). No need to have a separate Envoy to capture wind data, and no need to change weewx configuration. 
Reply all
Reply to author
Forward
0 new messages