Code Monkey home page Code Monkey logo

weewx-weatherlink-live's People

Contributors

michael-slx avatar nickbp avatar tkeffer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

weewx-weatherlink-live's Issues

Issue with mapping: "Not a broadcast packet"

Hi,
I'm stuck with a mapping issue. Syslog excerpt below - relevant lines in bold. Has been happening for a couple weeks now, and the rain and wind charts are blank from the point in time the errors occurred.
I was on WeeWX 4.9.1 and just upgraded to 5.0.2 via apt.
I had to copy over the weewx service to /etc/init.d/ manually
One possibly related factor is that when doing sudo weectl station reconfigure the WeatherLinkLive option does not show up under devices. So I go in manually to weewx.conf and edit the selection--the WWL device detail is there, I just change the selection line.
Any pointers on what is wrong here?
Thanks,
JW

Apr 20 07:52:10 sparta weewxd[385670]: DEBUG weewx.engine: Station does not support reading the time
Apr 20 07:52:10 sparta weewxd[385670]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 20 07:52:10 sparta weewxd[385670]: INFO weewx.manager: Starting backfill of daily summaries
Apr 20 07:52:10 sparta weewxd[385670]: INFO weewx.manager: Daily summaries up to date
Apr 20 07:52:10 sparta weewxd[385670]: INFO weewx.engine: Starting main packet loop.
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Push refresh will happen every 120 scheduler ticks
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Scheduler tick
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Notifying poll callback
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.6:80
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG urllib3.connectionpool: http://192.168.1.6:80 "GET /v1/current_conditions HTTP/1.1" 200 None
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.packets: Trying to create HTTP conditions packet
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.data_host: Polled current conditions
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THMapping['1']: Mapped: outTemp=49.3
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THMapping['1']: Mapped: outHumidity=91.4
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THMapping['1']: Mapped: dewpoint=46.9
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THMapping['1']: Mapped: heatindex=49.4
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THMapping['1']: Mapped: wetbulb=47.9
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: RainMapping['1']: Mapping not responsible: Not a broadcast packet
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: WindMapping['1']: Mapping not responsible: Not a broadcast packet

Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: WindChillMapping['1']: Mapped: windchill=49.3
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: ThwMapping['1', 'appTemp']: Mapped: thw=49.4
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: ThwMapping['1', 'appTemp']: Mapped: appTemp=49.4
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THIndoorMapping: Mapped: inTemp=68.2
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THIndoorMapping: Mapped: inHumidity=41.9
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THIndoorMapping: Mapped: inDewpoint=44.2
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: THIndoorMapping: Mapped: inHeatindex=66.4
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: BaroMapping: Mapped: pressure=29.664
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: BaroMapping: Mapped: altimeter=29.962
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.mappers: BatteryStatusMapping['1']: Mapped: batteryStatus1=0
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Notifying push refresh callback
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.data_host: Re-requesting UDP broadcast
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.6:80
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG urllib3.connectionpool: http://192.168.1.6:80 "GET /v1/real_time?duration=1500 HTTP/1.1" 200 None
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.data_host: Restarting broadcast reception
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.davis_broadcast: Starting broadcast reception
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: 119 scheduler ticks until next push refresh
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Next scheduler tick at 2024-04-20 11:52:20 Z
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.driver: Entering driver loop
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.driver: Waiting for new packet
Apr 20 07:52:10 sparta weewxd[385670]: INFO user.weatherlink_live.driver: Emitting poll packet
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.service: WllWindGustService: Wind observations windSpeed:windDir not in record
Apr 20 07:52:10 sparta weewxd[385670]: INFO weewx.engine: Main loop exiting. Shutting engine down.
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG weewx.manager: Daily summary version is 4.0
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.rtcr: Shut down Thread-3 thread.
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG weewx.restx: Shut down WeatherCloud thread.
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Cancelling scheduler
Apr 20 07:52:10 sparta weewxd[385670]: DEBUG user.weatherlink_live.scheduler: Cancelling tick task

Rain data does not match WLL records

The rain totals from WLL do not match what is captured by the driver. The driver, if it doesn't match, is always slightly lower than what WLL reports.

Screenshot 2021-03-21 121447
Screenshot 2021-03-21 121341

Persistent failures after DNS glitch

Discussed in #41

Originally posted by gdt April 15, 2024
I'm helping someone set up weewx with a WLL for a VP2. Both are on ethernet. The router is glitchy and sometimes fails to respond to DNS queries for mdns. The router does not support static-mapped DHCP. That's all a mess, and not the driver's fault. The computer is a RPI3, running NetBSD with python 3.11. An identical computer with identical sw -- just not this driver -- works 100% solidly with a VP2, staying up except for power, and not having problems at all.

From time to time, the dns lookup fails, and it keeps trying. often it's ok.
Sometimes, there are further issues, and it gets into a state where I get three lines

ERROR user.weatherlink_live.scheduler: Error caught in scheduler tick. Not rescheduling
WARNING user.weatherlink_live.driver: No data since 1 iterations
CRITICAL __main__: Caught WeeWxIOError: Error while receiving or processing packets: ConnectionError(MaxRetryError('HTTPConnectionPool(host=\'wea\
therlinklive.lan\', port=80): Max retries exceeded with url: /v1/current_conditions (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x782b8e90>: Failed to re\
solve \'weatherlinklive.lan\' ([Errno 7] No address associated with hostname)"))'))

followed by

CRITICAL __main__: Caught WeeWxIOError: Error while receiving or processing packets: OSError(48, 'Address already in use')

I'm way out on a limb, but it looks like failure to close the listening socket for UDP when handling the error. And the scheduler tick error looks suspicious too.

Code is up-to-date driver (git head from a week ago), and old 4.8 weewx. It's on my list to update weewx to 5.x, but that's harder because of the changing of the install method so it will take me a bit. Reading commit logs I don't see a breakage of older weewx, and this error seems like it's in the driver.

I'm going to try to read the code and figure this out, but thought I'd mention it, see if anybody has thoughts.

Consider changing "Emitting poll" from success logging to debug logging

Currently the weatherlink-live driver is quite "chatty" on syslog logging emission of the poll packets and push (broadcast) packets if logging of successful operations is enabled. Seems to me that the two logging entries in .../bin/user/weatherlink_live/init.py that log ""Emitting" calls might be better done as log.debug.

(BTW, thanks a bunch for doing this work!)

JRJ

No data since x iteration

Hello all

I regularly get 10-20 messages like

weewx    | Aug 26 21:15:07 weewx[19] WARNING user.weatherlink_live: No data since 1 iteration

Then I get some data and it starts over to log the errors. Any idea how to improve this? Is there a config setting. Everything is wired so I'm stuck where to search for

Thanks

weewxd not stopping with CTL-C

With 1.0.4, it has become nearly impossible to stop weewxd from the command line.
Normally, running bin/weewxd and seeing the loop packets then halting it with CTL-C
CTL-C has no effect on weewxd with 1.0.4 I had to kill it from a second command window.

LOOP: 2020-10-24 10:49:11 EDT (1603550951) beaufort: 0, dateTime: 1603550951, maxSolarRad: 457.510536987238, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: 68, windGust: 7.0, windGustDir: 284, windSpeed: 1.0 LOOP: 2020-10-24 10:49:12 EDT (1603550952) altimeter: 29.87, barometer: 29.85692832551749, cloudbase: 1002.8056489352831, dateTime: 1603550952, dewpoint: 60.4, heatindex: 64.1, humidex: 71.04787334668785, inDewpoint: 57.6, inHeatindex: 74.3, inHumidity: 56.2, inTemp: 74.2, maxSolarRad: 457.5404147852875, outHumidity: 91.3, outTemp: 63.0, pressure: 29.414, radiation: 155, rainRate: 0.0, thsw: 65.4, thw: 64.1, usUnits: 1, UV: 1.1, wetbulb: 61.3, windchill: 63.0 LOOP: 2020-10-24 10:49:14 EDT (1603550954) beaufort: 0, dateTime: 1603550954, maxSolarRad: 457.600235308501, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 ^C^C^C^C^C^C^CLOOP: 2020-10-24 10:49:16 EDT (1603550956) beaufort: 0, dateTime: 1603550956, maxSolarRad: 457.65998884636673, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 ^C^C^C^C^C^C^C^C^C^C^CLOOP: 2020-10-24 10:49:19 EDT (1603550959) beaufort: 0, dateTime: 1603550959, maxSolarRad: 457.7496718201617, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 ^C^C^C^C^C^C^C^C^C^CLOOP: 2020-10-24 10:49:21 EDT (1603550961) beaufort: 0, dateTime: 1603550961, maxSolarRad: 457.8094224244946, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 ^CLOOP: 2020-10-24 10:49:22 EDT (1603550962) altimeter: 29.87, barometer: 29.85684296370003, cloudbase: 1003.0604342359885, dateTime: 1603550962, dewpoint: 60.5, heatindex: 64.2, humidex: 71.21230962470955, inDewpoint: 57.6, inHeatindex: 74.3, inHumidity: 56.2, inTemp: 74.2, maxSolarRad: 457.8392314819727, outHumidity: 91.3, outTemp: 63.1, pressure: 29.414, radiation: 155, rainRate: 0.0, thsw: 65.5, thw: 64.2, usUnits: 1, UV: 1.1, wetbulb: 61.4, windchill: 63.1 ^C^C^C^CLOOP: 2020-10-24 10:49:24 EDT (1603550964) beaufort: 0, dateTime: 1603550964, maxSolarRad: 457.898980321926, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^CLOOP: 2020-10-24 10:49:26 EDT (1603550966) beaufort: 0, dateTime: 1603550966, maxSolarRad: 457.95866218349585, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0 LOOP: 2020-10-24 10:49:29 EDT (1603550969) beaufort: 0, dateTime: 1603550969, maxSolarRad: 458.0481498723208, rain: 0.0, rainCount: 0, rainCountRate: 0, rainRate: 0.0, rainSize: 0.01, usUnits: 1, windDir: None, windGust: 7.0, windGustDir: 284, windSpeed: 0.0

v5 status is unclear

The README says weewx 4, but now that 5 is released, one would expect drivers to work with v5. Looking at the history of commits and issues/PRs it looks like fresh installs on v5 are expected to work. It would be great to update README.md to clarify v5 status, specifcally letting people understand the answer to "If I want to set up weewx and use this driver, is it ok to install the latest v5, and t latest release tag of the driver."

V1.0.5 error message in install

I got an error message when I tried to install the driver:

user@LokalWiki:~$ wee_extension --install weewx-weatherlink-live-v1.0.5.tar.xz
Request to install 'weewx-weatherlink-live-v1.0.5.tar.xz'
Extracting from tar archive weewx-weatherlink-live-v1.0.5.tar.xz
Traceback (most recent call last):
File "/usr/share/weewx/wee_extension", line 88, in
main()
File "/usr/share/weewx/wee_extension", line 80, in main
ext.install_extension(options.install)
File "/usr/share/weewx/weecfg/extension.py", line 123, in install_extension
self.install_from_dir(extension_dir)
File "/usr/share/weewx/weecfg/extension.py", line 181, in install_from_dir
shutil.copy(source_path, destination_path)
File "/usr/lib/python3.8/shutil.py", line 415, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.8/shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/weewx/user/weatherlink_live/init.py'

Missing values in exported Cumulus realtime.txt file when retrieving data from WeatherLink live using weatherlink-live v1.1.2 driver

I can see that there are missing values in exported Cumulus realtime.txt file when retrieving data from WeatherLink live using weatherlink-live v1.1.2 driver

Any suggestion to how I can fix this, if possible?

crt v0.21 + weatherlink-live v1.1.2:
08/01/24 10:48:41 NULL NULL NULL 0.0 0.0 NULL 0.00 0.00 NULL --- 0 mph F in in 0.0 NULL 0.00 0.00 NULL NULL NULL NULL NULL 20.3 10:45 8.7 00:05 0.0 09:30 0.0 09:30 30.83 09:55 30.79 06:25 5.0.0rc3 0 0.0 NULL NULL NULL 0.00 NULL NULL 0.00 0 1 0 --- NULL ft NULL 2.5 50.8 0

WeatherLink Live data:
{
"data": {
"did": "001D0A714331",
"ts": 1704710999,
"conditions": [
{
"lsid": 400819,
"data_structure_type": 1,
"txid": 1,
"temp": 20.9,
"hum": 48.0,
"dew_point": 4.3,
"wet_bulb": 15.3,
"heat_index": 19.9,
"wind_chill": 20.9,
"thw_index": 19.9,
"thsw_index": 17.9,
"wind_speed_last": 0.0,
"wind_dir_last": 0,
"wind_speed_avg_last_1_min": 0.0,
"wind_dir_scalar_avg_last_1_min": 0,
"wind_speed_avg_last_2_min": 0.0,
"wind_dir_scalar_avg_last_2_min": 0,
"wind_speed_hi_last_2_min": 0.0,
"wind_dir_at_hi_speed_last_2_min": 0,
"wind_speed_avg_last_10_min": 0.0,
"wind_dir_scalar_avg_last_10_min": 0,
"wind_speed_hi_last_10_min": 0.0,
"wind_dir_at_hi_speed_last_10_min": 0,
"rain_size": 2,
"rain_rate_last": 0,
"rain_rate_hi": 0,
"rainfall_last_15_min": 0,
"rain_rate_hi_last_15_min": 0,
"rainfall_last_60_min": 0,
"rainfall_last_24_hr": 0,
"rain_storm": 0,
"rain_storm_start_at": null,
"solar_rad": 67,
"uv_index": 0.6,
"rx_state": 0,
"trans_battery_flag": 0,
"rainfall_daily": 0,
"rainfall_monthly": 0,
"rainfall_year": 0,
"rain_storm_last": 252,
"rain_storm_last_start_at": 1702624080,
"rain_storm_last_end_at": 1703034060
},
{
"lsid": 400818,
"data_structure_type": 4,
"temp_in": 75.8,
"hum_in": 26.0,
"dew_point_in": 38.5,
"heat_index_in": 73.8
},
{
"lsid": 400817,
"data_structure_type": 3,
"bar_sea_level": 30.608,
"bar_trend": 0.018,
"bar_absolute": 27.941
}
]
},
"error": null
}

crt v0.21 + WLLDriver v0.4
08/01/24 11:46:31 24.4 83 20.0 0.0 0.0 NULL 0.00 0.00 30.71 --- 0 mph F in in 6.9 0.00 0.00 0.00 0.00 64.0 34 24.4 5.8 24.1 11:45 13.8 05:00 2.7 01:35 4.0 01:30 30.72 09:30 30.66 00:25 4.10.2 0 0.0 24.4 24.4 NULL NULL NULL NULL 0.00 0 1 0 --- 1173 ft 19.4 2.4 NULL 0

WeatherLink Live data:
{
"data": {
"did": "001D0A714475",
"ts": 1704710672,
"conditions": [
{
"lsid": 620021,
"data_structure_type": 1,
"txid": 1,
"temp": 24.3,
"hum": 83.1,
"dew_point": 19.9,
"wet_bulb": 22.8,
"heat_index": 24.3,
"wind_chill": 24.3,
"thw_index": 24.3,
"thsw_index": null,
"wind_speed_last": 0.0,
"wind_dir_last": 0,
"wind_speed_avg_last_1_min": 0.0,
"wind_dir_scalar_avg_last_1_min": 0,
"wind_speed_avg_last_2_min": 0.0,
"wind_dir_scalar_avg_last_2_min": 0,
"wind_speed_hi_last_2_min": 0.0,
"wind_dir_at_hi_speed_last_2_min": 0,
"wind_speed_avg_last_10_min": 0.0,
"wind_dir_scalar_avg_last_10_min": null,
"wind_speed_hi_last_10_min": 0.0,
"wind_dir_at_hi_speed_last_10_min": 0,
"rain_size": 2,
"rain_rate_last": 0,
"rain_rate_hi": 0,
"rainfall_last_15_min": 0,
"rain_rate_hi_last_15_min": 0,
"rainfall_last_60_min": 0,
"rainfall_last_24_hr": 0,
"rain_storm": 0,
"rain_storm_start_at": null,
"solar_rad": null,
"uv_index": null,
"rx_state": 0,
"trans_battery_flag": 0,
"rainfall_daily": 0,
"rainfall_monthly": 0,
"rainfall_year": 0,
"rain_storm_last": 94,
"rain_storm_last_start_at": 1703715061,
"rain_storm_last_end_at": 1704002461
},
{
"lsid": 620020,
"data_structure_type": 4,
"temp_in": 64.1,
"hum_in": 34.6,
"dew_point_in": 35.6,
"heat_index_in": 61.1
},
{
"lsid": 620019,
"data_structure_type": 3,
"bar_sea_level": 30.712,
"bar_trend": 0.013,
"bar_absolute": 30.545
}
]
},
"error": null
}

Question?

What do you mean with: "Not support historical data support". I thought the data will be saved in weewx db from when it get's connected to weatherstation via WeatherLink Live Access point's local api?

Driver Causes High CPU Usage

I installed the driver and while it works, I noticed the reports were lagging, sometimes as much as 2 minutes after the archive time.
I upgraded to version 1.0.3 and the issue continues.

Here is weewxd when running this driver:
99.8 1.1 281M 43.0M 60259 root 8:10 3 0 R 0 0 /usr/bin/python3 bin/weewxd

Here it is running a different WLL driver:
0.3 1.1 137M 44.1M 62339 root 0:02 1 0 S 0 0 /usr/bin/python3 bin/weewxd

no wind data on id2

Hello, I have a problem that I can't find a solution to.

I have an ISS on ID1 and the wind sensor is separated on ID2, so I adjusted the configuration as follows:
mapping = th:1, rain:1, wind:2, th_indoor, baro, battery:1:outTemp:rain, battery:2:wind

Unfortunately I don't get any values for wind in weewx, what am I doing wrong?

But ID2 definitely comes with values that I see live on the console and I can also see them on the Davis WeatherLink Live 6100 (/v1/current_conditions):

{"data":{"did":"001D0A7145F8","ts":1704740156,"conditions":[{"lsid":612618,"data_structure_type":1,"txid":1,"temp": 22.8, "hum":88.8,"dew_point": 20.0,"wet_bulb": 21.8,"heat_index": 22.8,"wind_chill":null,"thw_index":null,"thsw_index":null,"wind_speed_last":null,"wind_dir_last ":null,"wind_speed_avg_last_1_min":null,"wind_dir_scalar_avg_last_1_min":null,"wind_speed_avg_last_2_min":null,"wind_dir_scalar_avg_last_2_min":null,"wind_speed_hi_last_2_min":null,"wind_dir_at_hi_speed_last_2_min":null,"wind_speed_avg_last_10 min":null,"wind_dir_scalar_avg_last_10_min": null,"wind_speed_hi_last_10_min":null,"wind_dir_at_hi_speed_last_10_min":null,"rain_size":2,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0, "rainfall_last_24_hr":0,"rain_storm":0,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":162,"rainfall_year":162,"rain_storm_last":162,"rain_storm_last_start_at":1704176821,"rain_storm_last_end_at":1704715261},{"lsid":612663,"data_structure_type":1,"txid":2,"temp ":null,"hum":null,"dew_point":null,"wet_bulb":null,"heat_index":null,"wind_chill":null,"thw_index":null,"thsw_index":null,"wind_speed_last": 4.00,"wind_dir_last":47,"wind_speed_avg_last_1_min":5.31,"wind_dir_scalar_avg_last_1_min":47,"wind_speed_avg_last_2_min":4.75,"wind_dir_scalar_avg_last_2_min":45,"wind_speed_hi_last_2_min":9.00,"wind_dir_at hi_speed_last_2_min":54,"wind_speed_avg_last_10_min":4.37, "wind_dir_scalar_avg_last_10_min":42,"wind_speed_hi_last_10_min":9.00,"wind_dir_at_hi_speed_last_10_min":54,"rain_size":1,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_ 60_min ":0,"rainfall_last_24_hr":0,"rain_storm":null,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily": 0,"rainfall_monthly":0,"rainfall_year":0,"rain_storm_last":null,"rain_storm_last_start_at":null,"rain_storm_last_end_at":null},{"lsid":612617,"data_structure_type":4,"temp_in": 76.6,"hum_in":29.9,"dew_point_in": 42.8,"heat_index_in": 74.6},{"lsid":612616,"data_structure_type":3,"bar_sea_level":30.227,"bar_trend": 0.043,"bar_absolute": 28,501}]},"error":null}

Current release (1.1.1) fails when installing in WeeWX 5.0.0b17

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
main()
File "/usr/share/weewx/weectl.py", line 66, in main
namespace.func(namespace)
File "/usr/share/weewx/weectllib/extension_cmd.py", line 112, in install_extension
ext.install_extension(namespace.source)
File "/usr/share/weewx/weecfg/extension.py", line 122, in install_extension
extension_name = self._install_from_file(extension_path, filetype)
File "/usr/share/weewx/weecfg/extension.py", line 154, in _install_from_file
extension_name = self.install_from_dir(extension_dir)
File "/usr/share/weewx/weecfg/extension.py", line 201, in install_from_dir
save_config |= self._inject_config(installer['config'], extension_name)
KeyError: 'config'

FYI: weewx stopped for no apparent reason

(also reported on weewx-user)

Over the weekend moved from weewx 3.9.2 to weewx 4.5.1. It was essentially a reinstall, as I also moved from a Davis wmII (community driver) to a VantageVue with WeatherLinkLive (this driver), editing the config file from scratch.

System is Ubuntu Linux LTS 20.04, python 3.8, mySQL 5.7 The last start of weewx was on 5-Jun-2021. It stopped reporting after 3:15 CDT on 7-Jun-2021, for no apparent reason that I can see.

[FYI: Weather Link Live data continued to flow to the WLL web page.]

(The exact time seems to have been around 3:18 AM on 7-Jun-2021 - that is when I no longer saw broadcasts from WeatherLinkLive.)

Now, it is certainly possible that this is an issue in the WeatherLinkLive driver - and I will raise it as an issue with them, but also decided to check here just in case.

The last things in /var/log/syslog were:

Jun 7 03:15:17 mythtv2 weewx[119044] INFO weewx.manager: Added record 2021-06-07 03:15:00 CDT (1623053700) to database 'weewx'
Jun 7 03:15:17 mythtv2 weewx[119044] INFO weewx.manager: Added record 2021-06-07 03:15:00 CDT (1623053700) to daily summary in 'weewx'
Jun 7 03:15:18 mythtv2 weewx[119044] INFO weewx.restx: Wunderground-PWS: Published record 2021-06-07 03:15:00 CDT (1623053700)
Jun 7 03:15:18 mythtv2 weewx[119044] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.62 seconds
Jun 7 03:15:18 mythtv2 weewx[119044] INFO weewx.imagegenerator: Generated 14 images for report SeasonsReport in 0.29 seconds
Jun 7 03:15:18 mythtv2 weewx[119044] INFO weewx.reportengine: Copied 0 files to /opt/weewx/public_html
Jun 7 03:30:01 mythtv2 CRON[154439]: (root) CMD (/usr/bin/sshpass -p 'CM12RVdx' /usr/bin/scp -r /opt/weewx/public_html/*

The last things in my firewall log which is currently logging the broadcasts (I was going to investigate network traffic and turn these off when I spotted the issue)

Jun 7 03:18:45 cirith kernel: [23782696.289934] IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:ec:fa:bc:ce:49:b7:08:00 SRC=192.168.42.75 DST=192.168.42.255 LEN=426 TOS=0x00 PREC=0x00 TTL=128 ID=64354 PROTO=UDP SPT=25447 DPT=22222 LEN=406

Jun 7 03:18:47 cirith kernel: [23782698.792825] IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:ec:fa:bc:ce:49:b7:08:00 SRC=192.168.42.75 DST=192.168.42.255 LEN=426 TOS=0x00 PREC=0x00 TTL=128 ID=64355 PROTO=UDP SPT=25447 DPT=22222 LEN=406

Jun 7 03:18:50 cirith kernel: [23782701.291975] IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:ec:fa:bc:ce:49:b7:08:00 SRC=192.168.42.75 DST=192.168.42.255 LEN=426 TOS=0x00 PREC=0x00 TTL=128 ID=64356 PROTO=UDP SPT=25447 DPT=22222 LEN=406

(that was the last one until I restarted)

All times CDT.

JRJ

Logging Success

I installed 1.0.4 and it indeed corrects the high CPU issue.
However, it introduces logging of success. This will result in very high syslog usage of course.
How can I toggle this off? I tried log_success = false in the driver stanza with no effect.

Just for your information, the next (4.2.0) version of WeeWX has some changes in the data and how it is processed. beaufort is handled differently now.

Oct 24 10:41:56 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live.mappers: RainMapping[['1']]: First daily rain value Oct 24 10:41:56 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:41:56 tester weewxd[11871]: weewx[11871] INFO weewx.wxxtypes: Type beaufort has been deprecated. Use unit beaufort instead. Oct 24 10:41:58 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:01 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:03 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:06 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:08 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:08 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting poll packet Oct 24 10:42:11 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:13 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:16 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:18 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet Oct 24 10:42:18 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting poll packet Oct 24 10:42:21 tester weewxd[11871]: weewx[11871] INFO user.weatherlink_live: Emitting push (broadcast) packet

Question on Errors

Switched to this driver as a couple of the others for WLL would not allow me to properly shut down Weewx. Data seems to be working fine with the exception of these errors in the log. These will show up every 15-20 minutes it seems. I found similar issues of this kind when searching the weewx Goggle Groups but no resolution.
Wondering if this is normal behavior and the problem might actually be with the network? Or of you might have suggestions?

Thank you.

Jun 18 07:34:51 raspberrypi weewx[3110] ERROR user.weatherlink_live.scheduler: Error caught in scheduler tick. Not rescheduling
Jun 18 07:34:51 raspberrypi weewx[3110] INFO weewx.engine: Main loop exiting. Shutting engine down.
Jun 18 07:34:51 raspberrypi weewx[3110] INFO weewx.engine: Shutting down StdReport thread
Jun 18 07:34:51 raspberrypi weewx[3110] CRITICAL main: Caught WeeWxIOError: Error while receiving or processing packets: HTTPConnectionPool(host='10.1.20.40', port=80): Max retries exceeded with url: /v1/real_time?duration=1500 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb22f2770>: Failed to establish a new connection: [Errno 111] Connection refused'))
Jun 18 07:34:51 raspberrypi weewx[3110] CRITICAL main: **** Waiting 60 seconds then retrying...

No reports after installation

I am using WeatherLink Live at weewx and want to get Soilmoist (channel 2) and Soiltemp in the weewx reports, I use the weewx-weatherlink-live station with the proper mapping (example on github), want there are no reports coming. Log file:

Dec 2 15:33:54 raspberrypi weewx[1948] INFO main: retrying...
Dec 2 15:33:54 raspberrypi weewx[1948] INFO main: Using configuration file /etc/weewx/weewx.conf
Dec 2 15:33:54 raspberrypi weewx[1948] INFO main: Debug is 1
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG main: Initializing engine
Dec 2 15:33:54 raspberrypi weewx[1948] INFO weewx.engine: Loading station type WeatherLinkLive (user.weatherlink_live)
Dec 2 15:33:54 raspberrypi weewx[1948] INFO user.weatherlink_live: Initializing driver: WeatherLinkLive v1.0.10
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live: Configuration: {'host': '192.168.1.29', 'mappings': [['th', '1'], ['th_indoor'], ['baro'], ['rain', '1'], ['wind', '1'], ['uv', '1'], ['solar', '1'], ['thw', '1'], ['thsw', '1', 'appTemp'], ['windchill', '1'], ['soil_temp', '2', '1'], ['soil_temp', '2', '2'], ['soil_temp', '2', '3'], ['soil_temp', '2', '4'], ['soil_moist', '2', '1'], ['soil_moist', '2', '2'], ['soil_moist', '2', '3'], ['soil_moist', '2', '4'], ['leaf_wet', '2', '1'], ['lef_wet', '2', '2'], ['battery', '1', 'outTemp', 'wind'], ['battery', '2', 'tx']], 'polling_interval': 10.0, 'max_no_data_iterations': 5, 'log_success': True, 'log_error': True, 'socket_timeout': 20.0}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper th. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapping targets: {'t': 'outTemp', 'h': 'outHumidity', 'dp': 'dewpoint', 'hi': 'heatindex', 'wb': 'wetbulb'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper th_indoor. Options: []
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: THIndoorMapping[[]]: Mapping targets: {'t': 'inTemp', 'h': 'inHumidity', 'dp': 'inDewpoint', 'hi': 'inHeatindex'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper baro. Options: []
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: BaroMapping[[]]: Mapping targets: {'baro_abs': 'pressure', 'baro_sl': 'altimeter'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper rain. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: RainMapping[['1']]: Mapping targets: {'amount': 'rain', 'rate': 'rainRate', 'count': 'rainCount', 'count_rate': 'rainCountRate', 'size': 'rainSize'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper wind. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: WindMapping[['1']]: Mapping targets: {'wind_dir': 'windDir', 'wind_speed': 'windSpeed', 'gust_dir': 'windGustDir', 'gust_speed': 'windGust'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper uv. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: UvMapping[['1']]: Mapping targets: {'uv': 'UV'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper solar. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SolarMapping[['1']]: Mapping targets: {'solar': 'radiation'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper thw. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: ThwMapping[['1']]: Mapping targets: {'thw': 'thw'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper thsw. Options: ['1', 'appTemp']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: ThswMapping[['1', 'appTemp']]: Mapping targets: {'thsw': 'thsw', 'app_temp': 'appTemp'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper windchill. Options: ['1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: WindChillMapping[['1']]: Mapping targets: {'windchill': 'windchill'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_temp. Options: ['2', '1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilTempMapping[['2', '1']]: Mapping targets: {'soil_temp': 'soilTemp1'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_temp. Options: ['2', '2']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilTempMapping[['2', '2']]: Mapping targets: {'soil_temp': 'soilTemp2'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_temp. Options: ['2', '3']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilTempMapping[['2', '3']]: Mapping targets: {'soil_temp': 'soilTemp3'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_temp. Options: ['2', '4']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilTempMapping[['2', '4']]: Mapping targets: {'soil_temp': 'soilTemp4'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_moist. Options: ['2', '1']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilMoistureMapping[['2', '1']]: Mapping targets: {'soil_moisture': 'soilMoist1'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_moist. Options: ['2', '2']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilMoistureMapping[['2', '2']]: Mapping targets: {'soil_moisture': 'soilMoist2'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_moist. Options: ['2', '3']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilMoistureMapping[['2', '3']]: Mapping targets: {'soil_moisture': 'soilMoist3'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper soil_moist. Options: ['2', '4']
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.mappers: SoilMoistureMapping[['2', '4']]: Mapping targets: {'soil_moisture': 'soilMoist4'}
Dec 2 15:33:54 raspberrypi weewx[1948] DEBUG user.weatherlink_live.configuration: Creating mapper leaf_wet. Options: ['2', '1']
Dec 2 15:33:54 raspberrypi weewx[1948] ERROR weewx.engine: Import of driver failed: 'set' object is not subscriptable (<class 'TypeError'>)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** Traceback (most recent call last):
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/init.py", line 100, in loader
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** return WeatherlinkLiveDriver(config_dict, engine)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/init.py", line 121, in init
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** self.mappers = self.configuration.create_mappers()
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/configuration.py", line 116, in create_mappers
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** mapper = self._create_mapper(source_opts, used_record_keys)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/configuration.py", line 132, in _create_mapper
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** mapper = mapper_init(further_opts, used_map_targets, self.log_success, self.log_error)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/mappers.py", line 455, in init
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** super().init(mapping_opts, used_map_targets, log_success, log_error)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/mappers.py", line 56, in init
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** self.targets = self.__search_multi_targets(self._map_target_dict, used_map_targets)
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/mappers.py", line 96, in __search_multi_targets
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** map_targets = dict([
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** File "/usr/share/weewx/user/weatherlink_live/mappers.py", line 97, in
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** (k, v[i]) for k, v in available_map_targets_dict.items()
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL weewx.engine: **** TypeError: 'set' object is not subscriptable
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL main: Unable to load driver: 'set' object is not subscriptable
Dec 2 15:33:54 raspberrypi weewx[1948] CRITICAL main: **** Waiting 60 seconds then retrying...

Adding extra temperature sensor

Hi,

I added a Davis 6332 connected to a water temperature sensor to my setup.
Any idea how I can map this temperature to an extra temperature field in Weewx?

This is the data from the extra sensor transmitter:
{"lsid":491951,"data_structure_type":1,"txid":2,"temp": 72.3,"hum":null,"dew_point":null,"wet_bulb":null,"heat_index":null,"wind_chill":null,"thw_index":null,"thsw_index":null,"wind_speed_last":null,"wind_dir_last":null,"wind_speed_avg_last_1_min":null,"wind_dir_scalar_avg_last_1_min":null,"wind_speed_avg_last_2_min":null,"wind_dir_scalar_avg_last_2_min":null,"wind_speed_hi_last_2_min":null,"wind_dir_at_hi_speed_last_2_min":null,"wind_speed_avg_last_10_min":null,"wind_dir_scalar_avg_last_10_min":null,"wind_speed_hi_last_10_min":null,"wind_dir_at_hi_speed_last_10_min":null,"rain_size":1,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":0,"rain_storm":null,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":0,"rainfall_year":0,"rain_storm_last":null,"rain_storm_last_start_at":null,"rain_storm_last_end_at":null}

I tried adding "soil_temp:2:1" to my config but get the following error when trying to start weewx:
Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.data_host: Polled current conditions Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapped: outTemp=64.3 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapped: outHumidity=61.8 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapped: dewpoint=50.9 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapped: heatindex=63.5 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THMapping[['1']]: Mapped: wetbulb=55.3 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THIndoorMapping[[]]: Mapped: inTemp=86.7 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THIndoorMapping[[]]: Mapped: inHumidity=31.1 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THIndoorMapping[[]]: Mapped: inDewpoint=52.6 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: THIndoorMapping[[]]: Mapped: inHeatindex=84.9 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: BaroMapping[[]]: Mapped: pressure=30.071 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: BaroMapping[[]]: Mapped: altimeter=30.151 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: RainMapping[['1']]: Mapping not responsible: Not a broadcast packet Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: WindMapping[['1']]: Mapping not responsible: Not a broadcast packet Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: SolarMapping[['1']]: Mapped: radiation=None Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: UvMapping[['1']]: Mapped: UV=None Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: ThwMapping[['1']]: Mapped: thw=63.5 Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: ThswMapping[['1']]: Mapped: thsw=None Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.mappers: WindChillMapping[['1']]: Mapped: windchill=64.3 Aug 28 22:31:59 weerstation weewx[31013] ERROR user.weatherlink_live.scheduler: Error caught in scheduler tick. Not rescheduling Aug 28 22:31:59 weerstation weewx[31013] INFO weewx.engine: Main loop exiting. Shutting engine down. Aug 28 22:31:59 weerstation weewx[31013] DEBUG weewx.restx: Shut down Windy thread. Aug 28 22:31:59 weerstation weewx[31013] DEBUG weewx.restx: Shut down WindGuru thread. Aug 28 22:31:59 weerstation weewx[31013] DEBUG user.weatherlink_live.scheduler: Cancelling scheduler Aug 28 22:31:59 weerstation weewx[31013] INFO user.weatherlink_live.scheduler: All tasks cancelled Aug 28 22:31:59 weerstation weewx[31013] CRITICAL __main__: Caught WeeWxIOError: Error while receiving or processing packets: unsupported format character '{' (0x7b) at index 6 Aug 28 22:31:59 weerstation weewx[31013] CRITICAL __main__: **** Waiting 60 seconds then retrying...

Changes to support Vantage Vue

I was super happy to find this project to start working with the data from my Vantage Vue. I tried the default mapping and was getting a "Not a broadcast packet" error for both my RainMapping and my WindMapping in the DEBUG logs. If I remove

        if packet.data_source != PacketSource.WEATHER_PUSH:
            self._log_mapping_notResponsible("Not a broadcast packet")
            return

from lines 199-201 and 238-241 in the mappers.py file, I am then able to successfully parse my rain and wind data. These must be there for supporting some devices. Is there some way we could integrate a change like this to support Vantage Vue for others to use?

Thank you,
Craig

weewx 5 can not activate driver

Hi,
I installed weewx5 via pip and then tried to install the weatherlink-live driver. Unfortunately this doesn't work or I'm doing something wrong, but what?

I install the driver with the command:
weectl extension install https://github.com/michael-slx/weewx-weatherlink-live/releases/download/v1.1.2/weewx-weatherlink-live-v1.1.2.tar.xz

And then I call this command:
weekly station reconfigure

Then I get the following in Driver:
Installed drivers include:
0) ? (user.weatherlink_live) No module named 'requests'

  1. ? (user.weatherlink_live_driver) No module named 'requests'
  2. AcuRite (weewx.drivers.acurite)
  3. CC3000 (weewx.drivers.cc3000)
  4. FineOffsetUSB (weewx.drivers.fousb)
    ...

Now when I try to select driver 0, I get the following error message (the error message is similar for driver 1):

choose a driver [5]: 0
Traceback (most recent call last):
File "/root/weewx-venv/bin/weekl", line 8, in
sys.exit(main())
^^^^^^
File "/root/weewx-venv/lib/python3.11/site-packages/weekl.py", line 66, in main
namespace.func(namespace)
File "/root/weewx-venv/lib/python3.11/site-packages/weekllib/init.py", line 121, in dispatch
namespace.action_func(config_dict, namespace)
File "/root/weewx-venv/lib/python3.11/site-packages/weekllib/station_cmd.py", line 317, in reconfigure_station
weektllib.station_actions.station_reconfigure(config_dict=config_dict,
File "/root/weewx-venv/lib/python3.11/site-packages/weekllib/station_actions.py", line 164, in station_reconfigure
config_config(config_dict,
File "/root/weewx-venv/lib/python3.11/site-packages/weekllib/station_actions.py", line 207, in config_config
config_driver(config_dict, driver=driver, no_prompt=no_prompt)
File "/root/weewx-venv/lib/python3.11/site-packages/weekllib/station_actions.py", line 417, in config_driver
driver_editor, driver_name, driver_version = weecfg.load_driver_editor(final_driver)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/weewx-venv/lib/python3.11/site-packages/weecfg/init.py", line 445, in load_driver_editor
driver_module = importlib.import_module(driver_module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/weewx-data/bin/user/weatherlink_live/init.py", line 28, in
from user.weatherlink_live.driver import WeatherlinkLiveDriver
File "/root/weewx-data/bin/user/weatherlink_live/driver.py", line 24, in
from user.weatherlink_live import data_host, scheduler
File "/root/weewx-data/bin/user/weatherlink_live/data_host.py", line 29, in
from user.weatherlink_live.davis_http import start_broadcast, request_current
File "/root/weewx-data/bin/user/weatherlink_live/davis_http.py", line 25, in
import requests
ModuleNotFoundError: No module named 'requests'

Question concerning historical data

"WeatherLink Live currently does not provide a local API to access historic data" - just to get it right: There is unlimited access to historical data via weewx, right?
Background: due to current issues with the usb interface of the raspi, I'm considering to switch to the live interface but I will certainly not subscribe to Davis pages.
Thank you in advance for your answer and - for your development!
wetter.nipp.de

Data Binding Issue

I've installed this driver and it is working well.
I did edit the database entries as shown in the annotated example weewx.conf.
With this entry, weewx does not start.
manager = weewx.wxmanager.WXDaySummaryManager
Only if I leave it at weewx default will weewx start.
manager = weewx.manager.DaySummaryManager
The schema is being used as a new database is created with a size of 1204 kb.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.