Weewx won't Install Correctly Mint 20.3 UNA

232 views
Skip to first unread message

Tim Williams

unread,
Nov 10, 2022, 1:51:40 PM11/10/22
to weewx-user
Hi to all,     For what ever reason weewx will not work after installing via the instructions here: https://www.weewx.com/docs/debian.htm   As a nwbe to weewx and  linux so all help is appreciated Thanks

Here is what I get on the log report:

Here is what I get on the log report:

 sudo tail -f /var/log/syslog
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****  could not convert string to float: '36.7680 -92.2672'
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****  Traceback (most recent call last):
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 84, in __init__
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****      self.stn_info = weewx.station.StationInfo(self.console, **config_dict['Station'])
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/station.py", line 51, in __init__
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****      self.latitude_f      = float(stn_dict['latitude'])
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****  ValueError: could not convert string to float: '36.7680 -92.2672'
Nov 10 12:49:13 willie-ThinkPad-X131e weewx[5225] CRITICAL __main__:     ****  Exiting.

vince

unread,
Nov 10, 2022, 1:55:17 PM11/10/22
to weewx-user
Lets see your latitude and longitude lines in weewx.conf
I suspect you have two numbers on the latitude line...

Tim Williams

unread,
Nov 10, 2022, 2:28:23 PM11/10/22
to weewx-user
ThanYk forresponce, Yes it is doubled . How do you fix it? 
# Description of the station location
    location = "SDora"
   
    # Latitude in decimal degrees. Negative for southern hemisphere
    latitude = 36.7680 -92.2672
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = 36.7680 -92.2672
   
    # Altitude of the station, with the unit it is in. This is used only
    # if the hardware cannot supply a value.
    altitude = 951, foot
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file, which includes a value for the 'driver' option.
    station_type = Vantage
   
    # If you have a website, you may specify an URL. This is required if you
    # intend to register your station.
    #station_url = http://www.example.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

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

Tim Williams

unread,
Nov 10, 2022, 3:41:06 PM11/10/22
to weewx-user
I'm trying to run my vantage vue on my Laptop with Linux mint 20.3 to save elec energy but I am so new at this it is frustrating . so please be patient with this newbe ....thanks :)
I corrected duplicate lLattitude and Longitude and then restarted weewx  but still no luck . Seems to be something to do with my port setting as this log indicated. At first stopped weewx and edited con.. I chose the /dev/ttyS0 and restarted weewx..log critical errors on the port  setting. So I edited weewx again this time using the serial port /dev/ttyS0. And the log shows critical error again. What am I doing wrong?  


weewx[7330] CRITICAL weewx.engine:     ****      raise SerialException("Could not configure port: {}".format(msg))
Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')
Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL __main__: Unable to load driver: Could not configure port: (5, 'Input/output error')
Nov 10 13:53:44 willie-ThinkPad-X131e weewx[7330] CRITICAL __main__:     ****  Exiting...

Tim Williams

unread,
Nov 10, 2022, 4:04:34 PM11/10/22
to weewx-user

I ment to say I used port stting the first time using /dev/ttyUSB0 not  /dev/ttyS0.. thanks


On Thursday, November 10, 2022 at 2:41:06 PM UTC-6 Tim Williams wrote:
I'm trying to run my vantage vue on my Laptop with Linux mint 20.3 to save elec energy but I am so new at this it is frustrating . so please be patient with this newbe ....thanks :)
I corrected duplicate lLattitude and Longitude and then restarted weewx  but still no luck . Seems to be something to do with my port setting as this log indicated. At first stopped weewx and edited con.. I chose the /dev/ttyS0 and restarted weewx..log critical errors on the port  setting. So I edited weewx again this time using the serial port /dev/ttyS0. And the log shows critical error again. What am I doing wrong?  

vince

unread,
Nov 10, 2022, 4:34:49 PM11/10/22
to weewx-user
How is your vue connected to the laptop ?

If it is a Davis USB data logger 'or' a serial logger+serial/usb adaptor, The usual device for a modern Linux is /dev/ttyUSB0 and there are a couple ways to figure that out.

One way is to run 'dmesg' and look at the output.  On my pi4 here it would include:
[    6.515632] pl2303 1-1.3:1.0: pl2303 converter detected
[    6.533119] usb 1-1.3: pl2303 converter now attached to ttyUSB0

That's my serial2USB adaptor that the Vantage serial logger is connected to.   Note the 'ttyUSB0' which shows that /dev/ttyUSB0 is the device for my setup here, if that helps any.

Running 'lsusb' will show you what USB devices are connected to the box:
pi@pi4:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Note bus 001 device 003 matches up with the "usb 1-1.3" from the dmesg command.

If you don't see anything connected you might try disconnecting and reconnecting your console from the computer (assuming it's USB) and the dmesg command should show that happening.

But it's likely /dev/ttyUSB0 that you want...

Tim Williams

unread,
Nov 10, 2022, 5:22:27 PM11/10/22
to weewx-user
 IThanks vince, t's the /dev/ttyUSB0  so I edited my weewx config to /dev/ttyUSB0 :
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
 
- And restarted then looked at log . Still wont run weewx .Log says it can't open vantage console: At least now weewx is attempting to run .

$ sudo tail -f /var/log/syslog
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Using Python 3.8.10 (default, Jun 22 2022, 20:18:18) #012[GCC 9.4.0]
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Located at /usr/bin/python3
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Platform Linux-5.4.0-131-generic-x86_64-with-glibc2.29
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Locale is 'en_US.UTF-8'
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: Debug is 0
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9058] INFO __main__: PID file is /var/run/weewx.pid
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9062] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 10 16:11:13 willie-ThinkPad-X131e weewx[9037]:    ...done.
Nov 10 16:11:13 willie-ThinkPad-X131e systemd[1]: Started LSB: weewx weather system.
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1939, in __init__
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 521, in __init__
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      self._setup()
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1340, in _setup
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Nov 10 16:11:34 willie-ThinkPad-X131e weewx[9062] CRITICAL __main__:     ****  Exiting...


vince

unread,
Nov 10, 2022, 5:39:02 PM11/10/22
to weewx-user
If you're on the latest version (you didn't say), you should set debug=1 in weewx.conf, restart weewx, and post a longer log extract here so others can look at the debugging output.

Your tail -f is too short, you want to show from the time weewx starts through one archive period at least.   Perhaps add the -n 200 switch to your tail command to try to catch more lines if you're not comfortable with the command line.


Tim Williams

unread,
Nov 10, 2022, 8:42:38 PM11/10/22
to weewx-user
I set log to debug=1   will send new log when I figure out how to :)

Tim Williams

unread,
Nov 10, 2022, 8:43:18 PM11/10/22
to weewx-user
 /etc/init.d/weewx start
Starting weewx (via systemctl): weewx.service.
willie@willie-ThinkPad-X131e:~$ sudo tail -f /var/log/syslog
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****      self.port.openPort()
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 305, in openPort
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****      self.open()
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/vpro: [Errno 2] No such file or directory: '/dev/vpro'
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/vpro: [Errno 2] No such file or directory: '/dev/vpro'
Nov 10 19:27:07 willie-ThinkPad-X131e weewx[12859] CRITICAL __main__:     ****  Exiting...
Nov 10 19:30:01 willie-ThinkPad-X131e CRON[12900]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)



On Thursday, November 10, 2022 at 4:39:02 PM UTC-6 vince wrote:

gjr80

unread,
Nov 10, 2022, 8:48:43 PM11/10/22
to weewx-user
You might want to have a read of the WeeWX Wiki article Help! Posting to weewx user. The article gives some pretty straightforward instructions on how to get a good log extract and post it here. The better the log extract you provide, generally the better the advice you will get - and it will save time all round.

Gary

Tim Williams

unread,
Nov 10, 2022, 9:40:55 PM11/10/22
to weewx-user
gir80 , Thanks a bunch here is a copy of Log extended
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****      self.port.openPort()
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 305, in openPort
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****      self.open()
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/vpro: [Errno 2] No such file or directory: '/dev/vpro'
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/vpro: [Errno 2] No such file or directory: '/dev/vpro'
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL __main__:     ****  Exiting...
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8935] dhcp4 (wlp2s0): option dhcp_lease_time      => '3600'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8937] dhcp4 (wlp2s0): option domain_name_servers  => '10.0.0.1 205.171.2.65'
Nov 10 20:29:30 willie-ThinkPad-X131e dbus-daemon[626]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.12' (uid=0 pid=627 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8937] dhcp4 (wlp2s0): option expiry               => '1668137370'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8938] dhcp4 (wlp2s0): option host_name            => 'willie-ThinkPad-X131e'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8938] dhcp4 (wlp2s0): option ip_address           => '10.0.0.3'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8939] dhcp4 (wlp2s0): option next_server          => '10.0.0.1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8940] dhcp4 (wlp2s0): option requested_broadcast_address => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8940] dhcp4 (wlp2s0): option requested_domain_name => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8941] dhcp4 (wlp2s0): option requested_domain_name_servers => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8941] dhcp4 (wlp2s0): option requested_domain_search => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8942] dhcp4 (wlp2s0): option requested_host_name  => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8942] dhcp4 (wlp2s0): option requested_interface_mtu => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8943] dhcp4 (wlp2s0): option requested_ms_classless_static_routes => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8943] dhcp4 (wlp2s0): option requested_nis_domain => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8944] dhcp4 (wlp2s0): option requested_nis_servers => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8944] dhcp4 (wlp2s0): option requested_ntp_servers => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8945] dhcp4 (wlp2s0): option requested_rfc3442_classless_static_routes => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8945] dhcp4 (wlp2s0): option requested_root_path  => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8946] dhcp4 (wlp2s0): option requested_routers    => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8946] dhcp4 (wlp2s0): option requested_static_routes => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8947] dhcp4 (wlp2s0): option requested_subnet_mask => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8947] dhcp4 (wlp2s0): option requested_time_offset => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8948] dhcp4 (wlp2s0): option requested_wpad       => '1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8948] dhcp4 (wlp2s0): option routers              => '10.0.0.1'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8949] dhcp4 (wlp2s0): option subnet_mask          => '255.255.255.0'
Nov 10 20:29:30 willie-ThinkPad-X131e NetworkManager[627]: <info>  [1668133770.8949] dhcp4 (wlp2s0): state changed extended -> extended
Nov 10 20:29:30 willie-ThinkPad-X131e systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 10 20:29:31 willie-ThinkPad-X131e dbus-daemon[626]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 10 20:29:31 willie-ThinkPad-X131e systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 10 20:29:40 willie-ThinkPad-X131e systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Nov 10 20:30:01 willie-ThinkPad-X131e CRON[13877]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Nov 10 20:32:26 willie-ThinkPad-X131e systemd[1]: Started Run anacron jobs.
Nov 10 20:32:26 willie-ThinkPad-X131e anacron[14409]: Anacron 2.3 started on 2022-11-10
Nov 10 20:32:26 willie-ThinkPad-X131e anacron[14409]: Normal exit (0 jobs run)
Nov 10 20:32:26 willie-ThinkPad-X131e systemd[1]: anacron.service: Succeeded.
Nov 10 20:33:01 willie-ThinkPad-X131e dbus-daemon[626]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.143' (uid=0 pid=14434 comm="/usr/bin/gdbus call --system --dest org.freedeskto" label="unconfined")
Nov 10 20:33:01 willie-ThinkPad-X131e systemd[1]: Starting PackageKit Daemon...
Nov 10 20:33:01 willie-ThinkPad-X131e PackageKit: daemon start
Nov 10 20:33:01 willie-ThinkPad-X131e dbus-daemon[626]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Nov 10 20:33:01 willie-ThinkPad-X131e systemd[1]: Started PackageKit Daemon.
Nov 10 20:38:06 willie-ThinkPad-X131e PackageKit: daemon quit
Nov 10 20:38:06 willie-ThinkPad-X131e systemd[1]: packagekit.service: Succeeded.

vince

unread,
Nov 10, 2022, 10:17:32 PM11/10/22
to weewx-user
On Thursday, November 10, 2022 at 6:40:55 PM UTC-8 timwill...@gmail.com wrote:
Nov 10 20:23:59 willie-ThinkPad-X131e weewx[13771] CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/vpro: [Errno 2] No such file or directory: '/dev/vpro'

Again, as I said earlier, try "/dev/ttyUSB0"  for the usual device name if (as you said earlier) that is what your os reported.

Where are you seeing instructions to use /dev/vpro ?    There used to be 'old' users guide info on this but I don't see it in current versions and it's more of an advanced nice-to-have anyway.  Get a minimalist setup working before you try to get fancy.

Tim Williams

unread,
Nov 10, 2022, 10:41:30 PM11/10/22
to weewx-user
Hi Vince.. I was following the wrong instruction for vantage and used the /dev/vpro ....whoops .   I edittted wewx config to .port=/dev/ttyUSB0  . Am waiting for log to complete and will update shortly . Thanks for pointing that out .

Tim Williams

unread,
Nov 10, 2022, 11:15:25 PM11/10/22
to weewx-user
updated Log: 

Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 521, in __init__
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****      self._setup()
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1340, in _setup
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Nov 10 22:04:43 willie-ThinkPad-X131e weewx[17857] CRITICAL __main__:     ****  Exiting...


Tim Williams

unread,
Nov 11, 2022, 5:23:26 PM11/11/22
to weewx-user
sudo tail -f /var/log/syslog
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10244] INFO __main__: PID file is /var/run/weewx.pid
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10247] DEBUG __main__: Initializing engine
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10247] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Driver version is 3.4.0
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Option loop_request=1
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Nov 11 16:19:39 willie-ThinkPad-X131e weewx[10222]:    ...done.
Nov 11 16:19:39 willie-ThinkPad-X131e systemd[1]: Started LSB: weewx weather system.
Nov 11 16:19:43 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Wakeup retry #1 failed: Expected to read 2 chars; got 0 instead
Nov 11 16:19:48 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Wakeup retry #2 failed: Expected to read 2 chars; got 0 instead
Nov 11 16:19:53 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Wakeup retry #3 failed: Expected to read 2 chars; got 0 instead
Nov 11 16:19:58 willie-ThinkPad-X131e weewx[10247] DEBUG weewx.drivers.vantage: Wakeup retry #4 failed: Expected to read 2 chars; got 0 instead
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1939, in __init__
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 521, in __init__
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      self._setup()
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1340, in _setup
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Nov 11 16:20:00 willie-ThinkPad-X131e weewx[10247] CRITICAL __main__:     ****  Exiting...

gary....@gmail.com

unread,
Nov 12, 2022, 12:11:46 PM11/12/22
to weewx-user
Vantage console may need the driver at the end of this thread.

Reply all
Reply to author
Forward
0 new messages