Hi,
I use WS23xx driver on a pi  but you need to be careful about your serial 
to usb converter.  This is stated in the driver file

With a USB-serial converter one can connect the station to a computer with
only USB ports, but not every converter will work properly.  Perhaps the two
most common converters are based on the Prolific and FTDI chipsets.  Many
people report better luck with the FTDI-based converters.  Some converters
that use the Prolific chipset (PL2303) will work, but not all of them.

Known to work: ATEN UC-232A

I use the ATEN converter and it does work without any issues. 
Also here is what I see in my dmesg

[    3.784359] usbserial: USB Serial support registered for generic
[    3.804690] usbserial: USB Serial support registered for FTDI USB Serial 
Device
[    3.805247] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[    3.837746] usb 1-1.2: FTDI USB Serial Device converter now attached to 
ttyUSB0
[    3.838010] ftdi_sio 1-1.2:1.1: FTDI USB Serial Device converter detected
[    3.841931] usb 1-1.2: FTDI USB Serial Device converter now attached to 
ttyUSB1

I would look at getting a different converter or a different pi since this 
looks like a hardware issue.
Thanks Jerry


On Friday, December 6, 2019 at 7:24:07 AM UTC-7, Olivier Garnier wrote:
>
> Hi,
>
>
> I used to use WS2300 with wview (RIP).
> Now i try to configure weewx with ws2300 on Raspberry and it does not work 
> ...
> i installed it with apt-get.
>
> dmesg :
> [    1.623394] usb 1-1.4: New USB device found, idVendor=0403, idProduct=
> 6001, bcdDevice= 4.00
> [    1.623410] usb 1-1.4: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=0
> [    1.623423] usb 1-1.4: Product: USB <-> Serial
> [    1.623434] usb 1-1.4: Manufacturer: FTDI
>
> #modprobe ftdi_sio
> #ls /dev/ttyUSB*
> /dev/ttyUSB0
>
>
> weewx.conf :
> ...
>
> [Station]
>
>     # Description of the station location
>     location = ""
>
>     # Latitude and longitude in decimal degrees
>     latitude = 50.000
>     longitude = 1.000
>
>     # Altitude of the station, with unit it is in. This is downloaded from
>     # from the station if the hardware supports it.
>     altitude = 100, meter
>
>     # Set to type of station hardware. There must be a corresponding 
> stanza
>     # in this file with a 'driver' parameter indicating the driver to be 
> used.
>     station_type = WS23xx
>
>     # If you have a website, you may specify an URL
>     #station_url = http://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 = 0
>
>
> ##############################################################################
>
> [WS23xx]
>     # This section is for the La Crosse WS-2300 series of weather 
> stations.
>
>     # Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
>     port = /dev/ttyUSB0
>
>     # The station model, e.g., 'LaCrosse WS2317' or 'TFA Primus'
>     model = LaCrosse WS-2300
>
>     # The driver to use:
>     driver = weewx.drivers.ws23xx
>
>
> ##############################################################################
> ...
>
>
>
> and when i ask wee_device --current
> Using configuration file /etc/weewx/weewx.conf
> Using WS23xx driver version 0.27 (weewx.drivers.ws23xx)
> Querying the station for current weather data...
> Traceback (most recent call last):
>   File "/usr/bin/wee_device", line 66, in <module>
>     main()
>   File "/usr/bin/wee_device", line 62, in main
>     device.configure(config_dict)
>   File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
>     self.do_options(options, parser, config_dict, prompt)
>   File "/usr/share/weewx/weewx/drivers/ws23xx.py", line 313, in do_options
>     self.show_current()
>   File "/usr/share/weewx/weewx/drivers/ws23xx.py", line 339, in 
> show_current
>     for packet in self.station.genLoopPackets():
>   File "/usr/share/weewx/weewx/drivers/ws23xx.py", line 502, in 
> genLoopPackets
>     raise weewx.RetriesExceeded(msg)
> weewx.RetriesExceeded: Max retries (5) exceeded for LOOP data
>
> Does anyone has an idéa ?
>
>
>

-- 
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/8d6ac1a7-bc71-4b07-b0df-31f569a8dad8%40googlegroups.com.

Reply via email to