Do you have a device /dev/ttyUSB0? That's normally where a Vantage shows up
in the device directory, but not always.

The most reliable way to find out where the Vantage ended up is to unplug
it, plug it in again, then type 'dmesg'. This will look something like:

*dmesg*
[14818.699217] usb 2-2.1: USB disconnect, device number 4
[14818.699660] pl2303 ttyUSB0: pl2303 converter now disconnected from
ttyUSB0
[14818.699710] pl2303 2-2.1:1.0: device disconnected
[14820.731608] usb 2-2.1: new full-speed USB device number 10 using xhci_hcd
[14820.844750] usb 2-2.1: New USB device found, idVendor=05ad,
idProduct=0fba, bcdDevice= 3.00
[14820.844756] usb 2-2.1: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[14820.844759] usb 2-2.1: Product: USB-Serial Controller
[14820.844761] usb 2-2.1: Manufacturer: Prolific Technology Inc.
[14820.852720] pl2303 2-2.1:1.0: pl2303 converter detected
[14820.856368] usb 2-2.1: pl2303 converter now attached to ttyUSB0

In my case, the serial-to-usb converter showed up at /dev/ttyUSB0, but your
results may differ.

-tk

On Wed, Apr 21, 2021 at 4:34 PM Dave McCreath <[email protected]>
wrote:

> Forgot to add.
>
> Now running 4.5.1 from a backup SD card and all is currently well but does
> not look like I'll be able to update/upgrade the RPi until I figure out
> what's wrong.
>
> Regards
>
> Dave
>
> On Thursday, 22 April 2021 at 00:08:18 UTC+1 Dave McCreath wrote:
>
>> Good Evening Venerable Experts
>>
>> Earlier on today I updated my RPi (sudu apt-get update && sudo apt-get
>> upgrade).  On rebooting WeeWx failed to start, this was post an upgrade
>> from 4.2 to 4.5.1. (I have WeeWx added to the sources list)
>>
>> So, being savvy, rebooted from a backup sd card to bring the system back
>> to where it was prior to the update/upgrade and WeeWx version 4.2.
>>
>> I then went about updating/upgrading WeeWx from 4.2 to 4.5 (sudo apt-get
>> install weewx), that went fine, rebooted and WeeWx ran without any issues
>> post the upgrade.
>>
>> Next I then tried sudu apt-get update && sudo apt-get upgrade again.
>> Post a reboot, exactly the same issue as before, WeeWx would not start:
>>
>> pi@raspberrypi:~ $ service weewx status
>>
>> ● weewx.service - LSB: weewx weather system
>>
>>    Loaded: loaded (/etc/init.d/weewx; generated)
>>
>>    Active: active (exited) since Wed 2021-04-21 23:48:06 BST; 2min 28s ago
>>
>>      Docs: man:systemd-sysv-generator(8)
>>
>>   Process: 338 ExecStart=/etc/init.d/weewx start (code=exited,
>> status=0/SUCCESS)
>>
>>
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****      self.port.openPort()
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py",
>> line 308, in openPort
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****      self.serial_port = serial.Serial(self.port,
>> self.baudrate, timeout=self.timeout)
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****    File
>> "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****      self.open()
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****    File
>> "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****      raise SerialException(msg.errno, "could not
>> open port {}: {}".format(self._port, msg))
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could
>> not open port /dev/ttyUSB0: [Errno 2] No such file or directory:
>> '/dev/ttyUSB0'
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL __main__:
>> Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno
>> 2] No such file or directory: '/dev/ttyUSB0'
>>
>> Apr 21 23:48:06 raspberrypi python3[611]: weewx[611] CRITICAL
>> __main__:     ****  Exiting...
>>
>>
>> Any ideas?
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/27e48fc1-8ea2-44c7-bdaa-73cfb1c15dcen%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/27e48fc1-8ea2-44c7-bdaa-73cfb1c15dcen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECZ4Z%3DFCUUjoGFqJAgVkMg-WAiD6YpV2RXo69uMtAv7%2BA%40mail.gmail.com.

Reply via email to