Thank you for the answers! Of course that makes sense.

@John: I tried the extension. The error is gone. Apparently there is 
another problem. The weather data are not retrieved.

*LOG:*

2024-05-16 11:27:14 weewxd[3145]: ERROR user.wlink: download failed attempt 
1 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:27:44 weewxd[3145]: ERROR user.wlink: download failed attempt 
2 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:28:14 weewxd[3145]: ERROR user.wlink: download failed attempt 
3 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:28:45 weewxd[3145]: ERROR user.wlink: download failed attempt 
4 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:29:15 weewxd[3145]: ERROR user.wlink: download failed attempt 
5 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:29:45 weewxd[3145]: ERROR user.wlink: download failed after 5 
tries
2024-05-16 11:29:45 weewxd[3145]: INFO weewx.engine: Starting main packet 
loop.
2024-05-16 11:29:45 weewxd[3145]: ERROR user.wlink: download failed attempt 
1 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:30:15 weewxd[3145]: ERROR user.wlink: download failed attempt 
2 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:30:46 weewxd[3145]: ERROR user.wlink: download failed attempt 
3 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:31:16 weewxd[3145]: ERROR user.wlink: download failed attempt 
4 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:31:46 weewxd[3145]: ERROR user.wlink: download failed attempt 
5 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:32:16 weewxd[3145]: ERROR user.wlink: download failed after 5 
tries
2024-05-16 11:33:16 weewxd[3145]: ERROR user.wlink: download failed attempt 
1 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>
2024-05-16 11:33:47 weewxd[3145]: ERROR user.wlink: download failed attempt 
2 of 5: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify 
failed: self-signed certificate in certificate chain (_ssl.c:1000)>


@Karen: Unfortunately the computer and console are not on the same network.
Karen K schrieb am Donnerstag, 16. Mai 2024 um 07:10:37 UTC+2:

> If the PC running WeeWX and the Weatherlink device is on the same network, 
> you could try to retrieve data directly from the device instead of fetching 
> it from weatherlink.com. You may want to try the WeatherLinkLiveUDP driver 
> <https://github.com/grebleem/weewx-weatherlinkliveudp> for this. Or if 
> you have a paid account with weatherlink.com you could try WLLDriver 
> <https://github.com/Drealine/weatherlinklive-driver-weewx>.
>
> John Kline schrieb am Donnerstag, 16. Mai 2024 um 01:25:06 UTC+2:
>
>> It looks like there is a 3 year old PR that Matthew never merged to port 
>> it to Python 3.
>>
>> Justin, you might try:
>> [image: weewx-wlink.png]
>>
>> sshambar/weewx-wlink at work 
>> <https://github.com/sshambar/weewx-wlink/tree/work>
>> github.com <https://github.com/sshambar/weewx-wlink/tree/work>
>> <https://github.com/sshambar/weewx-wlink/tree/work>
>>
>> Note: I have not tried it myself.
>>
>> On May 15, 2024, at 3:32 PM, Tom Keffer <tke...@gmail.com> wrote:
>>
>> 
>>
>> It looks like the wlink extension was never ported to Python 3.
>>
>> On Wed, May 15, 2024 at 3:35 AM Justin Wenk <wem...@freenet.de> wrote:
>>
>>> Hi everyone! I have the following problem: I want to use the “Wlink” 
>>> extension (https://github.com/weewx/weewx/wiki/wlink). I followed the 
>>> instructions but I always get an error. I use WeeWX on macOS (Sonoma 
>>> 14.13.1).
>>>
>>> *Log:*
>>>
>>> 2024-05-15 12:01:32 weewxd[2676]: INFO weewxd: Initializing weewxd 
>>> version 5.0.2
>>> 2024-05-15 12:01:32 weewxd[2676]: INFO weewxd: Command line: 
>>> /Users/justin/weewx-venv/bin/weewxd
>>> 2024-05-15 12:01:32 weewxd[2676]: INFO weewxd: Using Python 3.12.3 
>>> (v3.12.3:f6650f9ad7, Apr  9 2024, 08:18:47) [Clang 13.0.0 
>>> (clang-1300.0.29.30)]
>>> 2024-05-15 12:01:32 weewxd[2676]: INFO weewxd: Located at 
>>> /Users/justin/weewx-venv/bin/python3
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: Platform 
>>> macOS-14.3.1-arm64-arm-64bit
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: Locale: 'de_DE.UTF-8'
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: Entry path: 
>>> /Users/justin/weewx-venv/lib/python3.12/site-packages/weewxd.py
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: WEEWX_ROOT: 
>>> /Users/justin/weewx-data
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: Configuration file: 
>>> /Users/justin/weewx-data/weewx.conf
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: User module: 
>>> /Users/justin/weewx-data/bin/user
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewxd: Debug: 1
>>> 2024-05-15 12:01:33 weewxd[2676]: DEBUG weewxd: Initializing engine
>>> 2024-05-15 12:01:33 weewxd[2676]: INFO weewx.engine: Loading station 
>>> type WeatherLink (user.wlink)
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd: Caught unrecoverable 
>>> exception:
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****  multiple 
>>> exception types must be parenthesized (wlink.py, line 180)
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****  Traceback 
>>> (most recent call last):
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****    File 
>>> "/Users/justin/weewx-venv/lib/python3.12/site-packages/weewxd.py", line 
>>> 160, in main
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****      engine 
>>> = weewx.engine.StdEngine(config_dict)
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****             
>>>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****    File 
>>> "/Users/justin/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", 
>>> line 77, in __init__
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****     
>>>  self.setupStation(config_dict)
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****    File 
>>> "/Users/justin/weewx-venv/lib/python3.12/site-packages/weewx/engine.py", 
>>> line 104, in setupStation
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****     
>>>  __import__(driver)
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****    File 
>>> "/Users/justin/weewx-data/bin/user/wlink.py", line 180
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****      except 
>>> (urllib2.URLError, socket.error,
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****             
>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     **** 
>>>  SyntaxError: multiple exception types must be parenthesized
>>>
>>> 2024-05-15 12:01:33 weewxd[2676]: CRITICAL weewxd:     ****  Exiting.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------------------------------------------------------------
>>> Wlink.py is located in the /weewx-data/bin/user folder.
>>>
>>> *A part from the weewx.conf:*
>>>
>>>
>>> ##############################################################################
>>>
>>> #   This section is for information about the station.
>>>
>>> [Station]
>>>     
>>>     # Description of the station location, such as your town.
>>>     location = HalleWetter
>>>     
>>>     # Latitude in decimal degrees. Negative for southern hemisphere.
>>>     latitude = 51.52
>>>     # Longitude in decimal degrees. Negative for western hemisphere.
>>>     longitude = 11.85
>>>     
>>>     # Altitude of the station, with the unit it is in. This is used only
>>>     # if the hardware cannot supply a value.
>>>     altitude = 94, meter    # Choose 'foot' or 'meter' for unit
>>>     
>>>     # Set to type of station hardware. There must be a corresponding 
>>> stanza
>>>     # in this file, which includes a value for the 'driver' option.
>>>     station_type = WeatherLink
>>>     
>>>     # If you have a website, you may specify an URL. The URL is required 
>>> if you
>>>     # intend to register your station. The URL must include the scheme, 
>>> for
>>>     # example, "http://"; or "https://";
>>>     #station_url = https://www.example.com
>>>     
>>>     # The start of the rain year (1=January; 10=October, etc.). This is
>>>     # downloaded from the station if the hardware supports it.
>>>     rain_year_start = 1
>>>     
>>>     # Start of week (0=Monday, 6=Sunday)
>>>     week_start = 6
>>>
>>>
>>> ##############################################################################
>>>
>>> [WeatherLink]
>>>         username = ------------ # use the device ID for weatherlink 2.0 
>>> accounts
>>>         password = ---------------
>>>         driver = user.wlink
>>>
>>> ###############################################################################
>>>  
>>>
>>>
>>>
>>>
>>> I hope you can help me and the information is enough. .
>>>
>>> *Best regards,*
>>> *Justin*
>>>
>>> -- 
>>> 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/97d75b62-06a6-4fda-8480-916a0b063520n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/97d75b62-06a6-4fda-8480-916a0b063520n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> 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/CAPq0zEBJD_2d1ZSDEawppAOf7yBaK3SmiSUt2khC59fa5g1%2BFQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBJD_2d1ZSDEawppAOf7yBaK3SmiSUt2khC59fa5g1%2BFQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>

-- 
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/558fa463-5639-4b25-b5c7-040d72221978n%40googlegroups.com.

Reply via email to