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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBJD_2d1ZSDEawppAOf7yBaK3SmiSUt2khC59fa5g1%2BFQ%40mail.gmail.com.

Reply via email to