Noob here, using MISOL WS-2310-1 station with a console (from Aliexpress),
the console works well and I can plug it to my computer to the upload data
to wunderground. However, I can't get it working with weewx
OS: Raspbian GNU/Linux 9 (stretch)
Python 2.7.13
*$* lsusb
Bus 001 Device 008: ID 10c4:8468 Cygnal Integrated Products, Inc.
*$* dmesg
[35580.273646] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=
8468
[35580.273660] usb 1-1.2: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[35580.273670] usb 1-1.2: Product: HIDtoSPI Slave
[35580.273678] usb 1-1.2: Manufacturer: SLAB
[35580.278854] hid-generic 0003:10C4:8468.0007: hiddev96,hidraw2: USB HID v1
.01 Device [SLAB HIDtoSPI Slave] on usb-3f980000.usb-1.2/input0
[35651.157879] *Under-voltage detected! (0x00050005)*
[35655.317883] Voltage normalised (0x00000000)
*$* sudo tail -f /var/log/syslog
Apr 26 06:38:42 raspberrypi kernel: [35580.273670] usb 1-1.2: Product:
HIDtoSPI Slave
Apr 26 06:38:42 raspberrypi kernel: [35580.273678] usb 1-1.2: Manufacturer:
SLAB
Apr 26 06:38:42 raspberrypi kernel: [35580.278854] hid-generic 0003:10C4:
8468.0007: hiddev96,hidraw2: USB HID v1.01 Device [SLAB HIDtoSPI Slave] on
usb-3f980000.usb-1.2/input0
Apr 26 06:38:42 raspberrypi mtp-probe: checking bus 1, device 11:
"/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2"
Apr 26 06:38:42 raspberrypi mtp-probe: bus: 1, device: 11 was not an MTP
device
Apr 26 06:39:01 raspberrypi CRON[3503]: (root) CMD ( [ -x /usr/lib/php/
sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/
sessionclean; fi)
Apr 26 06:39:41 raspberrypi systemd[1]: Starting Clean php session files...
Apr 26 06:39:42 raspberrypi systemd[1]: Started Clean php session files.
Apr 26 06:39:53 raspberrypi kernel: [35651.157879] Under-voltage detected! (
0x00050005)
Apr 26 06:39:57 raspberrypi kernel: [35655.317883] Voltage normalised (
0x00000000)
*$* sudo PYTHONPATH=. python weewx/drivers/ws23xx.py --port
/dev/usb/hiddev0 --readings
Traceback (most recent call last):
File "weewx/drivers/ws23xx.py", line 2118, in <module>
with WS23xx(port) as s:
File "weewx/drivers/ws23xx.py", line 648, in __init__
self.serial_port = LinuxSerialPort(port)
File "weewx/drivers/ws23xx.py", line 908, in __init__
self.orig_settings = tty.tcgetattr(self.serial_port)
termios.error: (22, 'Invalid argument')
*$* sudo weewxd /etc/weewx/weewx.conf
*$* sudo tail -f /var/log/syslog
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Initializing weewx version
3.9.1
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Using Python 2.7.13
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Platform
Linux-4.14.79-v7+-armv7l-with-debian-9.4
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Locale is 'en_IN'
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Using configuration file
/etc/weewx/weewx.conf
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Loading station type
WS23xx (weewx.drivers.ws23xx)
Apr 26 06:45:35 raspberrypi weewx[3629]: ws23xx: driver version is 0.27
Apr 26 06:45:35 raspberrypi weewx[3629]: ws23xx: serial port is
/dev/usb/hiddev0
Apr 26 06:45:35 raspberrypi weewx[3629]: ws23xx: polling interval is None
Apr 26 06:45:35 raspberrypi weewx[3629]: import of driver failed: (22,
'Invalid argument') (<class 'termios.error'>)
Apr 26 06:45:35 raspberrypi weewx[3629]: engine: Unable to load driver:
(22, 'Invalid argument')
Apr 26 06:45:35 raspberrypi weewx[3629]: **** Exiting...
Apr 26 06:45:53 raspberrypi kernel: [36010.997127] Under-voltage detected!
(0x00050005)
Apr 26 06:45:57 raspberrypi kernel: [36015.157095] Voltage normalised
(0x00000000)
the port that I'm using is
/dev/usb/hiddev0
I don't see anything like (even for usb keyboard, etc)
/dev/ttyusbx
I don't know if the port is an issue here? any suggest would be great!
--
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].
For more options, visit https://groups.google.com/d/optout.