Closed gary-hammer closed 6 months ago
I didn't know there were v5 alphas. I'll have to look into it.
I must have gotten lucky then with the last release.
I've just pushed a new commit updating the VM scripts.
I've tested the driver with v5 alpha and it seems to work now.
Which alpha and driver version?
Driver v1.1, WeeWX directly from Github repo V5 branch
Hmmm, fails to run here. It did install however. Installing 1..0.11 works fine.
Attaching error log. wx-wll.txt
It looks like it fails when there is an old driver installed.
Current release (1.1.1) fails when installing in WeeWX 5.0.0b17
sudo weectl extension install weewx-weatherlink-live-v1.1.1.tar.xz
Request to install 'weewx-weatherlink-live-v1.1.1.tar.xz'.
Extracting from tar archive weewx-weatherlink-live-v1.1.1.tar.xz
Traceback (most recent call last):
File "/usr/share/weewx/weectl.py", line 74, in
Using WeeWx 5.0.2
Release 1.1.2 following the install instructions does not install. Weewx seems to have changed many files and seems to be broken.
Eventually settled on the newer extension installer
weectl extension install EXTENSION-LOCATION
This is what I see now using the following:
weectl extension list Using configuration file /etc/weewx/weewx.conf Extension Name Version Description weatherlink-live 1.1.2 WeeWX driver for Davis WeatherLink Live.
So I think it's installed.
weectl station reconfigure Only shows the default configurations. Not yours. Assuming the documentation is all wrong now and needs to be updated.
My weewx.conf was modified to include the following: ############################################################################## [WeatherLinkLive]
driver = user.weatherlink_live_driver
# Host name or IP address of WeatherLink Live
host = MyIP_Address
# Mapping of transmitter ids to WeeWX records
mapping = th:1, rain:1, wind:1, windchill:1, thw:1:appTemp, battery:1:outTemp:rain:wind, th_indoor, baro
# Whether to log successful operations. Overrides top-level setting.
#log_success = False
# Whether to log unsuccessful operations. Overrides top-level setting.
#log_failure = True
Yes it fails when I try to start weewx.
sudo systemctl start weewx sudo systemctl status weewx
Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2024-02-11 15:00:25 CST; 14s ago Docs: https://weewx.com/docs Process: 2871 ExecStart=/usr/bin/weewxd /etc/weewx/weewx.conf (code=exited, status=1/FAILURE) Main PID: 2871 (code=exited, status=1/FAILURE)
Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: File "/etc/weewx/bin/user/weatherlink_live/configuration.py", line 24, in Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: from user.weatherlink_live.mappers import TMapping, THMapping, WindMappi Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: File "/etc/weewx/bin/user/weatherlink_live/mappers.py", line 48, in <modul Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: class AbstractMapping(object): Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: File "/etc/weewx/bin/user/weatherlink_live/mappers.py", line 137, in Abstr Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: def map_table(self) -> Dict[str, Union[str, list[str]]]: Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: TypeError: 'type' object is not subscriptable Feb 11 15:00:25 pi weewxd[2871]: CRITICAL main: Exiting. Feb 11 15:00:25 pi systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE Feb 11 15:00:25 pi systemd[1]: weewx.service: Failed with result 'exit-code'.
I just installed today. All is fine with weewx 5.0.2 and 1.1.2 I used the pip install method and activated the venv You don't mention if you are upgrading or what OS.
Newer releases of both drivers and weewx
I gave the new release a try as the last release (1.0.11) was working well in WeeWX 5 alphas. I'm attaching the log from the attempt as wx5.txt
wx5.txt