Re: [weewx-user] Weewx unable to Activate consol

84 views
Skip to first unread message

Tom Keffer

unread,
Feb 7, 2023, 9:30:51 PM2/7/23
to weewx...@googlegroups.com
First step is to make sure you have connectivity with your VP2. See the section Establishing connectivity in the wiki. What to do next will depend on the results.

-tk

On Mon, Feb 6, 2023 at 6:34 PM Joseph Wamsley <jwa...@gmail.com> wrote:
First off I am totally new to the Raspberry pi and weewx world. So I would appreciate any and all help I can get.

First off the way I have my system set up is a Raspberry pi 4 that boots off a 1tb ssd. The weather station is the Davis Vantage pro 2 weather station with the serial data logger running to a usb to data adapter. (I don't have a powered USB gateway and that might be part of the issue but I'm not sure.) I've tried installing Weewx using the debian-based systems as found on the weewx website. I received the following error when trying to check the pi logs using: sudo tail -f /var/log/syslog

Feb  6 18:19:25 weatherpi weewx[1968] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Feb  6 18:19:25 weatherpi weewx[1954]: Starting weewx weather system: weewx.
Feb  6 18:19:25 weatherpi systemd[1]: Started LSB: weewx weather system.
AFeb  6 18:19:48 weatherpi weewx[1968] ERROR weewx.drivers.vantage: Unable to wake up Vantage console
Feb  6 18:19:48 weatherpi weewx[1968] ERROR weewx.engine: Import of driver failed: Unable to wake up Vantage console (<class 'weewx.WakeupError'>)
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 527, in __init__
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      self._setup()
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1346, in _setup
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      self.port.wakeup_console(max_tries=self.max_tries)
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 121, in wakeup_console
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****      raise weewx.WakeupError("Unable to wake up Vantage console")
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL weewx.engine:     ****  weewx.WakeupError: Unable to wake up Vantage console
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL __main__: Unable to load driver: Unable to wake up Vantage console
Feb  6 18:19:48 weatherpi weewx[1968] CRITICAL __main__:     ****  Exiting...

Then I enabled the logging and get the fillowing:

--- Logging error ---
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 105, in wakeup_console
    _resp = self.read(2)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 292, in read
    raise weewx.WeeWxIOError("Expected to read %d chars; got %d instead" % (chars, N))
weewx.WeeWxIOError: Expected to read 2 chars; got 0 instead

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/handlers.py", line 937, in emit
    msg = self.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
    return fmt.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not WeeWxIOError
Call stack:
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
    self.console = loader_function(config_dict, self)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
    return VantageService(engine, config_dict)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
    Vantage.__init__(self, **config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 527, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1346, in _setup
    self.port.wakeup_console(max_tries=self.max_tries)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 113, in wakeup_console
    log.debug("Wake up try %d failed. Exception: %s", e)
Message: 'Wake up try %d failed. Exception: %s'
Arguments: (WeeWxIOError('Expected to read 2 chars; got 0 instead'),)
Unable to wake up console... sleeping
Unable to wake up console... retrying
--- Logging error ---
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 105, in wakeup_console
    _resp = self.read(2)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 292, in read
    raise weewx.WeeWxIOError("Expected to read %d chars; got %d instead" % (chars, N))
weewx.WeeWxIOError: Expected to read 2 chars; got 0 instead

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/handlers.py", line 937, in emit
    msg = self.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
    return fmt.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not WeeWxIOError
Call stack:
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
    self.console = loader_function(config_dict, self)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
    return VantageService(engine, config_dict)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
    Vantage.__init__(self, **config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 527, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1346, in _setup
    self.port.wakeup_console(max_tries=self.max_tries)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 113, in wakeup_console
    log.debug("Wake up try %d failed. Exception: %s", e)
Message: 'Wake up try %d failed. Exception: %s'
Arguments: (WeeWxIOError('Expected to read 2 chars; got 0 instead'),)
Unable to wake up console... sleeping
Unable to wake up console... retrying
--- Logging error ---
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 105, in wakeup_console
    _resp = self.read(2)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 292, in read
    raise weewx.WeeWxIOError("Expected to read %d chars; got %d instead" % (chars, N))
weewx.WeeWxIOError: Expected to read 2 chars; got 0 instead

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/handlers.py", line 937, in emit
    msg = self.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
    return fmt.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not WeeWxIOError
Call stack:
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
    self.console = loader_function(config_dict, self)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
    return VantageService(engine, config_dict)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
    Vantage.__init__(self, **config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 527, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1346, in _setup
    self.port.wakeup_console(max_tries=self.max_tries)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 113, in wakeup_console
    log.debug("Wake up try %d failed. Exception: %s", e)
Message: 'Wake up try %d failed. Exception: %s'
Arguments: (WeeWxIOError('Expected to read 2 chars; got 0 instead'),)
Unable to wake up console... sleeping
Unable to wake up console... retrying
--- Logging error ---
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 105, in wakeup_console
    _resp = self.read(2)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 292, in read
    raise weewx.WeeWxIOError("Expected to read %d chars; got %d instead" % (chars, N))
weewx.WeeWxIOError: Expected to read 2 chars; got 0 instead

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/logging/handlers.py", line 937, in emit
    msg = self.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
    return fmt.format(record)
  File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not WeeWxIOError
Call stack:
  File "/usr/share/weewx/weewxd", line 249, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 148, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
    self.setupStation(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
    self.console = loader_function(config_dict, self)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
    return VantageService(engine, config_dict)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1945, in __init__
    Vantage.__init__(self, **config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 527, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1346, in _setup
    self.port.wakeup_console(max_tries=self.max_tries)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 113, in wakeup_console
    log.debug("Wake up try %d failed. Exception: %s", e)
Message: 'Wake up try %d failed. Exception: %s'
Arguments: (WeeWxIOError('Expected to read 2 chars; got 0 instead'),)
Unable to wake up console... sleeping
Unable to wake up console... retrying

Does anyone have any suggestions on what I can do to fix this issue? Any help would be appreciated. Remember that I'm totally new to this please.

--
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/2503bd08-e296-4f21-bf52-404b1150382en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages