I am trying to port my Vantage Vue to weewx. My current setup (using a
serial-to-usb) device was working fine on when connected to PWS software on
my windows computer as recently as this morning. I have taken the exact
same console and cables and connected to my Raspberry PI 2. I have a
proper power supply set up and I am not seeing low voltage warnings.
Unfortunately I am getting the error in the subject line. I see that
others have had the same error - I tried their solutions but so far none
have worked. I installed both Debian and weewx last week so I should be
pretty up to date.
- Removed all cables and batteries from both the pi and the Vantage Console
Any help would be GREATLY appreciated!!
---------------------------------------------------------------------
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 "/home/weewx/./bin/weewxd", line 249, in <module>
main()
File "/home/weewx/./bin/weewxd", line 148, in main
engine = weewx.engine.StdEngine(config_dict)
File "/home/weewx/bin/weewx/engine.py", line 81, in __init__
self.setupStation(config_dict)
File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
self.console = loader_function(config_dict, self)
File "/home/weewx/bin/weewx/drivers/vantage.py", line 40, in loader
return VantageService(engine, config_dict)
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1989, in __init__
Vantage.__init__(self, **config_dict[DRIVER_NAME])
File "/home/weewx/bin/weewx/drivers/vantage.py", line 534, in __init__
self._setup()
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1390, in _setup
self.port.wakeup_console(max_tries=self.max_tries)
File "/home/weewx/bin/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
------------------------------------------------
station_type = Vantage
type = serial
baudrate = 19200
tcp_port = 22222
tcp_send_delay = 0.5
loop_request = 1
port = /dev/ttyAMA0
wait_before_retry = 1.2
max_tries = 4
# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
model_type = 1 ##### I tried both values
driver = weewx.drivers.vantage
--
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/1c8a5b2b-bae9-4e2b-b5c9-b3cd83df8ae1n%40googlegroups.com.