Hi,

I have just tried to set up my RPI up for 5 time, and still no luck.

Issues:
Is not reading from my Klimalogg PRO 30.3039.IT V11
No folder: /var/www/html/weewx

Here is what I my device info and what I am doing, step my step:

# RPI SW Info
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";

# PRI HW Info
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : b03111
Serial : 100000008da7b4f3
Model : Raspberry Pi 4 Model B Rev 1.1


# Update RPI
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade 
sudo apt-get autoremove 
sudo apt-get autoclean 

# https://weewx.com/apt/
curl -s http://weewx.com/keys.html | sudo apt-key add -
curl -s http://weewx.com/apt/weewx-python3.list | sudo tee 
/etc/apt/sources.list.d/weewx.list
sudo apt-get update
sudo apt-get install weewx

# https://github.com/matthewwall/weewx-klimalogg
sudo /etc/init.d/weewx stop
sudo mv /var/lib/weewx/weewx.sdb /var/lib/weewx/weewx.sdb-old
wget -O weewx-kl.zip 
https://github.com/matthewwall/weewx-klimalogg/archive/master.zip
sudo wee_extension --install weewx-kl.zip
sudo wee_config --reconfigure --driver=user.kl --no-prompt

# Checked this changes:
#Installing this extension will make the following changes to weewx.conf:

#Change wx_binding to kl_binding.  Klimalogg works best with its own schema,
#not the wview schema that is the default for weewx.  This requires changing
#the data binding from wx_binding to kl_binding in two places, the StdReport
#and StdArchive sections
# OK:)

#Remove the [Simulator] driver section if it exists.

#Remove the [[StandardReport]] section of [StdReport] if it exists.  The
#KlimaLogg is not a 'standard' weather station, so the graphs and reports
#in skin Standard will not work properly.
# OK:)

# Parring with Klimalogg PRO - USB
sudo /etc/init.d/weewx start

# 1. error
#
# ValueError: The device has no langid (permission issue, no string 
descriptors supported or device error)
# See Error below.

# Fixed:
# https://groups.google.com/g/weewx-user/c/8htXqu8AiVo/m/uMAhU3SBBAAJ
# admina@tfa:~ $ lsusb
# Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
# Bus 001 Device 003: ID 6666:5555 Prototype product Vendor ID Weather 
Direct Light Wireless Device
# Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
# Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# admina@tfa:~ $ ls -l /dev/bus/usb/001/003
# crw-rw-r-- 1 root root 189, 2 Nov  8 20:30 /dev/bus/usb/001/003

# admina@tfa:~ $ sudo lsof | fgrep '/dev/bus/usb'
# lsof: WARNING: can't stat() fuse.gvfsd-fuse file system 
/run/user/1000/gvfs
#      Output information may be incomplete.
# lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
#      Output information may be incomplete.
# python3   2226                            root    8u      CHR             
 189,2       0t0        145 /dev/bus/usb/001/003
# python3   2226 2228 libusb_ev             root    8u      CHR             
 189,2       0t0        145 /dev/bus/usb/001/003
# python3   2226 2229 python3               root    8u      CHR             
 189,2       0t0        145 /dev/bus/usb/001/003

# Following this guide:
# https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user
# admina@tfa:~ $ sudo tail -f /var/log/syslog | tee /var/tmp/mylog
# tail: cannot open '/var/log/syslog' for reading: No such file or directory
# tail: no files remaining

Error:
admina@tfa:~ $ wee_device 
Using configuration file /etc/weewx/weewx.conf
Using KlimaLogg driver version 1.4.2 (user.kl)
Traceback (most recent call last):
File "/usr/share/weewx/wee_device", line 76, in <module>
main()
File "/usr/share/weewx/wee_device", line 72, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 67, in configure
self.do_options(options, parser, config_dict, not options.noprompt)
File "/usr/share/weewx/user/kl.py", line 1547, in do_options
self.station = KlimaLoggDriver(**config_dict[DRIVER_NAME])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/user/kl.py", line 1794, in __init__
self.startUp()
File "/usr/share/weewx/user/kl.py", line 1975, in startUp
self._service.setup(self.frequency, self.comm_interval,
File "/usr/share/weewx/user/kl.py", line 4048, in setup
self.hid.open(vendor_id, product_id, serial)
File "/usr/share/weewx/user/kl.py", line 3019, in open
self.devh = self._open_device(device)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/weewx/user/kl.py", line 3072, in _open_device
loginf('manufacturer: %s' % handle.getString(dev.iManufacturer, 30))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/usb/legacy.py", line 285, in getString
return util.get_string(self.dev, index, langid).encode('ascii')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/usb/util.py", line 313, in get_string
raise ValueError("The device has no langid"
ValueError: The device has no langid (permission issue, no string 
descriptors supported or device error)
admina@tfa:~ $ 

What to do? Can't google next step and I am not the best linux user yet.

Br. Nenad

-- 
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/046b7b1d-1f38-49e0-b873-4c84aa605556n%40googlegroups.com.

Reply via email to