toujours le même problème ###################################################### Mar 4 19:14:11 PiMeteo systemd[1]: Stopping LSB: weewx weather system... Mar 4 19:14:11 PiMeteo weewx[1515] INFO __main__: Received signal TERM (15). Mar 4 19:14:16 PiMeteo weewx[1546]: Stopping weewx weather system: weewx.. Mar 4 19:14:16 PiMeteo systemd[1]: weewx.service: Succeeded. Mar 4 19:14:16 PiMeteo systemd[1]: Stopped LSB: weewx weather system. Mar 4 19:14:16 PiMeteo systemd[1]: Starting LSB: weewx weather system... Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Initializing weewx version 4.10.2 Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using Python 3.7.3 (default, Oct 31 2022, 14:04:00) #012[GCC 8.3.0] Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Located at /bin/python3 Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Platform Linux-5.10.63-v7l+-armv7l-with-debian-10.13 Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Locale is 'fr_BE.UTF-8' Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Using configuration file /etc/weewx/weewx.conf Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: Debug is 1 Mar 4 19:14:16 PiMeteo weewx[1585] INFO __main__: PID file is /var/run/weewx.pid Mar 4 19:14:16 PiMeteo weewx[1589] DEBUG __main__: Initializing engine Mar 4 19:14:16 PiMeteo weewx[1589] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage) Mar 4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Driver version is 3.5.2 Mar 4 19:14:16 PiMeteo weewx[1589] DEBUG weewx.drivers.vantage: Option loop_request=1 Mar 4 19:14:16 PiMeteo weewx[1589] ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB2' (<class 'serial.serialutil.SerialException'>) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** Traceback (most recent call last): Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB2' Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** During handling of the above exception, another exception occurred: Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** Traceback (most recent call last): Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** return VantageService(engine, config_dict) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__ Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** Vantage.__init__(self, **config_dict[DRIVER_NAME]) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 531, in __init__ Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** self.port.openPort() Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 318, in openPort Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__ Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** self.open() Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL weewx.engine: **** serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB2' Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB2: [Errno 2] Aucun fichier ou dossier de ce type: '/dev/ttyUSB2' Mar 4 19:14:16 PiMeteo weewx[1589] CRITICAL __main__: **** Waiting 60 seconds then retrying...
[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/ttyUSB2 # If the connection type is ethernet, an IP Address/hostname is required: # host = 192.168.0.13 ###################################################### # 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 type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = both loop_request = 1 # 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 = 1 # 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 ################################################################################ pi@PiMeteo:~ $ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO) Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub ################################################################################ Le samedi 4 mars 2023 à 14:25:11 UTC+1, Blaise Cacramp a écrit : > Yes, that's what I also thought: a problem in my IP adapter. (the LED no > longer flashes) > Fortunately I have a USB adapter in a corner. I will change that. > Thank you Tom > Le 04-03-23 à 14:05, Tom Keffer a écrit : > > I am guessing that you are trying to connect to a Vantage station through > an ethernet connection. Your computer is complaining that there is no path > to the IP address 192.168.0.13. > > 1. Is this truly a Vantage with an IP logger? They exist, but they are > very rare. Perhaps it is really a USB or serial logger, and you specified > the wrong type in weewx.conf under [Vantage]. > > 2. If you truly have an IP logger, make sure you have the right IP > address, and that your router is letting you access it. You may have a > firewall problem. > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/037882b8-7d80-4508-94b1-0f9a8373f405n%40googlegroups.com.