Weewx und Renkforce WH2315

1,196 views
Skip to first unread message

Günther Wrana

unread,
May 22, 2019, 6:15:38 AM5/22/19
to weewx-user
Hallo

Ich habe diese Wetterstation Renkforce WH2315

Wenn jemand weis das diese Wetterstation mit weewx auf Lununtu oder Raspberry pi kompatibel ist da soll er mir sagen was ich falsch gemacht habe.




Das Programm weewx habe ich auf einem Laptop mit Lubuntu 16.04 und einem raspberry pi 3 v1.2 installiert.

Ob das richtig installiert ist wies ich nicht aber es lässt sich starten und es startet.

Die Wetterstation wird auch nach Eingabe von lsusb im Terminal angezeigt.


modelleisenbahn@modelleisenbahn-LIFEBOOK-E-Series:~$ lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 10c4:8468 Cygnal Integrated Products, Inc. 
Bus 001 Device 002: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
modelleisenbahn@modelleisenbahn-LIFEBOOK-E-Series:~$ 


Wenn ich dann weewx starte oder es schon gestartet ist wird folgendes angezeigt.


modelleisenbahn@modelleisenbahn-LIFEBOOK-E-Series:~$ sudo /etc/init.d/weewx start
[sudo] password for modelleisenbahn: 
 * Starting weewx weather system weewx                                   [ OK ] 
modelleisenbahn@modelleisenbahn-LIFEBOOK-E-Series:~$ sudo tail -f /var/log/syslog
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2447]: engine: pid file is /var/run/weewx.pid
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: engine: Using configuration file /etc/weewx/weewx.conf
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: engine: Loading station type FineOffsetUSB (weewx.drivers.fousb)
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: fousb: driver version is 1.9
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: fousb: polling mode is PERIODIC
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: fousb: polling interval is 60
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: fousb: Cannot find USB device with Vendor=0x1941 ProdID=0x8021 Device=None
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: import of driver failed: Unable to find USB device (<class 'weewx.WeeWxIOError'>)
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]: engine: Unable to load driver: Unable to find USB device
May  5 11:24:55 modelleisenbahn-LIFEBOOK-E-Series weewx[2451]:     ****  Exiting...



Nun habe ich in der weewx.conf etwas eingefügt wie in einer anderen Zeile beschrieben.

weewx StdReport exits if USB disconnected

# Keeping retrying!

loop_on_init = 1


Danach wird im Terminal alle 60 Sekunden folgendes angezeigt.


Unable to load driver: Unable to find USB device


Zum Abschluss ist diese Wetterstation mit weewx auslesbar oder nicht wenn ja was habe ich bei der Installation oder beim einstellen falsch gemacht.


Grüße Günther







 

mwall

unread,
May 22, 2019, 7:05:30 AM5/22/19
to weewx-user
please try the wh23xx driver, not the fousb driver:


m

Günther Wrana

unread,
May 22, 2019, 2:43:09 PM5/22/19
to weewx-user
Danke für die Antwort.
Auf dem Lubuntu Laptop konnte ich den Treiber installieren.
Das ganze funktioniert auch.

Aber auf dem Raspberry konnte ich den Treiber nicht installieren und das mit dem

sudo wee_config --reconfigure

funktioniert auch nicht.

Ist da ein anderer Syntax?

Sonst passt alles ich kann meine Daten von der Renkforce jetzt auf Wunderground hochladen.

mwall

unread,
May 22, 2019, 8:49:34 PM5/22/19
to weewx-user


On Wednesday, May 22, 2019 at 2:43:09 PM UTC-4, Günther Wrana wrote:

Aber auf dem Raspberry konnte ich den Treiber nicht installieren und das mit dem

sudo wee_config --reconfigure

funktioniert auch nicht.

Ist da ein anderer Syntax?

difficult to diagnose without knowing how you installed weewx on the pi and what response you see when you type the wee_config command.

if you installed using setup.py then you will need to full path to wee_config

m

Kalli

unread,
May 23, 2019, 7:03:21 AM5/23/19
to weewx-user
Hallo
ich betreibe die Selbe Station

schau mal in deine weewx.conf   ob das so da drinne steht.

[WH23xx]
    # This section is for Fine Offset WH23xx stations
   
    # The model name such as Tycon, or TP2700
    model = Tycon TP2700
   
    polling_mode = PERIODIC
   
    polling_interval = 60
   
   
    # The driver to use
    driver = user.wh23xx

Kalli

unread,
May 23, 2019, 7:58:23 AM5/23/19
to weewx-user
Du kannst auch mal hier nach sehen und alles Abarbeiten.

Günther Wrana

unread,
May 23, 2019, 8:10:30 AM5/23/19
to weewx-user
Hallo danke für die Tipps ich werde das heute noch testen.

Günther Wrana

unread,
May 23, 2019, 1:08:36 PM5/23/19
to weewx-user
Ich schaffe es nicht einmal den Treiber zu installieren.

pi@raspberrypi:~/Downloads $ dir
weewx-3.9.1  weewx-3.9.1.tar.gz  weewx-wh23xx-master  weewx-wh23xx.zip
pi@raspberrypi:~/Downloads $ sudo wee_extension --install weewx-wh23xx.zip
sudo: wee_extension: Befehl nicht gefunden
pi@raspberrypi:~/Downloads $ 

Kalli

unread,
May 23, 2019, 1:24:10 PM5/23/19
to weewx-user
Hast du das mal so gemacht wie in dem Link beschreiben..

Kalli

unread,
May 23, 2019, 1:35:15 PM5/23/19
to weewx-user

Kalli

unread,
May 23, 2019, 1:37:11 PM5/23/19
to weewx-user
Hast du das mal so gemacht wie in dem Link beschreiben..

Am Donnerstag, 23. Mai 2019 19:08:36 UTC+2 schrieb Günther Wrana:

Günther Wrana

unread,
May 25, 2019, 2:05:45 AM5/25/19
to weewx-user
Hallo

nach dem ich den Syntax verstanden habe und folgende Zeilen im Terminal eingegeben habe hat es funktioniert.

pi@raspberrypi:~ $ sudo /home/weewx/bin/wee_extension --install weewx-wh23xx.zip
pi@raspberrypi:~ $ sudo /home/weewx/bin/wee_config --reconfigure

Noch eine Frage wie ändere ich richtig die Einstellungen in der weewx.conf

Ich mach das so ist das Korrekt oder sollte man das anders machen?

pi@raspberrypi:~ $ sudo nano weewx.conf

Danke noch mal
Nach geschlagenen  fünf Jahren funktioniert nun das Daten aufzeichnen meiner Wetterstation ohne das ich das Windows Programm starten muss.


Kalli

unread,
May 25, 2019, 2:44:28 AM5/25/19
to weewx-user
hallo
kannst du so machen.

aber ich habe mir den mc Installiert geht besser.
ich weis nur nicht mehr wo ich den her hatte.

mfg.

Am Mittwoch, 22. Mai 2019 12:15:38 UTC+2 schrieb Günther Wrana:

Andrew Milner

unread,
May 25, 2019, 3:00:25 AM5/25/19
to weewx-user
you can use nano - or any other TEXT editor (avoid GUI editors) to edit weewx.conf

gjr80

unread,
May 25, 2019, 3:03:22 AM5/25/19
to weewx-user
Andrew,

I think you might mean word processors or other 'formatted' editors. I would be lost without a GUI code editor.

gry

EdwinZ

unread,
Jun 12, 2020, 4:24:44 AM6/12/20
to weewx-user
Hi,

As I did not get Matthew's driver working, I looked further and found that 'userbogd' fixed a log_trackback import error (https://github.com/userbogd/weewx-wh23xx ), and then I found out that I ran into Python3 issues and fixed the code for Python3 support on top of Bogdan's fix (https://github.com/EdwinGH/weewx-wh23xx )

Hope it works for you as well.

Edwin

Kalli

unread,
Jun 12, 2020, 5:09:03 AM6/12/20
to weewx-user
Hello I have the same station, everything works fine for me.


Am Mittwoch, 22. Mai 2019 12:15:38 UTC+2 schrieb Günther Wrana:

Kalli

unread,
Jun 12, 2020, 5:19:31 AM6/12/20
to weewx-user
Hallo Günther

so sieht das in meiner config aus

[WH23xx]
    # This section is for Fine Offset WH23xx stations
   
    # The model name such as Tycon, or TP2700
    model = Tycon TP2700
   
    polling_mode = PERIODIC
   
    polling_interval = 60
   
   
    # The driver to use
    driver = user.wh23xx

Am Mittwoch, 22. Mai 2019 12:15:38 UTC+2 schrieb Günther Wrana:

Kalli

unread,
Jun 12, 2020, 5:22:27 AM6/12/20
to weewx-user
Hallo Günther

so sieht das in meiner config aus

[WH23xx]
    # This section is for Fine Offset WH23xx stations
   
    # The model name such as Tycon, or TP2700
    model = Tycon TP2700
   
    polling_mode = PERIODIC
   
    polling_interval = 60
   
   
    # The driver to use
    driver = user.wh23xx

Am Mittwoch, 22. Mai 2019 12:15:38 UTC+2 schrieb Günther Wrana:

Günther Wrana

unread,
Jun 12, 2020, 10:02:00 AM6/12/20
to weewx-user
Hello with the driver my station has been working since last year in May.
I would only be interested in whether the driver also works with the new version 4 or 4.1 with Phyton 3.
I don't dare to install the new version 4 if the driver doesn't work with Python 3.


Hallo mit dem Treiber funktioniert meine Station auch schon seit letztes Jahr im Mai.
Mich würde nur interessieren ob der Treiber auch mit der neuen Version 4 oder 4.1 mit Phyton 3 funktioniert.
Den ich traue mich nicht die neue Version 4 zu installieren wenn der Treiber nicht mit Python 3 funktioniert.

Kalli

unread,
Jun 12, 2020, 10:14:19 AM6/12/20
to weewx-user
Hallo

das habe ich leider auch noch nicht Getestet. sorry

EdwinZ

unread,
Jun 12, 2020, 10:26:55 AM6/12/20
to weewx-user
I'm using Weewx 4.1 with the upgraded driver for Python3, and it works for me.
I have not used older versions of weewx, nor Python2, so cannot comment on upgrading.

The fixes in the driver were quite straightforward (import, print and exception statement fixes), and on my GIT fork for download: https://github.com/EdwinGH/weewx-wh23xx/archive/master.zip 

Edwin

Günther Wrana

unread,
Jun 12, 2020, 10:41:12 AM6/12/20
to weewx-user
hi Guys

Then I will try it after a data backup, thank you for the information.


Hallo Leute

Dann werde ich es nach einer Datensicherung einmal versuchen, ich danke euch für die Informationen.

Roland Lang

unread,
Jun 13, 2020, 2:53:20 PM6/13/20
to weewx-user
Hi,
I have just updated my weewx installation from python2 to python3, but Edwin's fork of this driver is not working for me. The error is in the file /usr/share/weewx/user/wh23xx.py. Line 259 is missing the keyword "import" (already wrong in Bogdans fork).
The line is:
   from weeutil.log log_traceback
but it sould be
   from weeutil.log import log_traceback

After that change it's working now with python3

Roland

Edwin Zuidema

unread,
Jun 14, 2020, 4:58:01 AM6/14/20
to weewx...@googlegroups.com
Thanks Roland, I will fix this today on GitHub.

Edwin
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/zsTwFI7tSlw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bcf67571-b7cf-433c-baa1-046241334390o%40googlegroups.com.

Bogdan

unread,
Jun 14, 2020, 5:01:54 AM6/14/20
to weewx-user
Thank you, Roland! I included your fix into drivers code. Also added overlogging fix. So, now seems it is possible to use this driver further.

суббота, 13 июня 2020 г., 20:53:20 UTC+2 пользователь Roland Lang написал:

Holger DL7HMX

unread,
Jan 24, 2021, 4:19:16 PM1/24/21
to weewx-user
Hi all,

I've been following your discussion with interest and I've just set up my own station:
  • WH2315 (Renkforce from Conrad)
  • Raspberry Pi 3B
  • weewx 4.3.0
  • driver is wh23xx (I think it's the one that has Edwin's and Bogdan's fixes, as it says in the file's preamble "Updated to Python 3 support, tested with Renkforce 2315")
  • Python 2.7.16 (according to python -V)
My question: Everything seems to work fine according to the output of weewxd and the system log (see below). Just that windchill and heat index seem to be ignored by weewx (see weewxd output) and are not displayed on the website. In the driver file it says that wh23xx does handle windchill / heatindex though. Both winchill and heat index show up on the indoor module of the weather station.

Being a python illiterate myself, I hope anyone of you can help.

Thanks a lot!

Cheers,
Holger

Excerpt from /var/log/messages:

[…]
Jan 24 00:00:49 raspberrypi weewx[2884] INFO weewx.manager: Added record 2021-01-24 00:00:30 CET (1611442830) to database 'weewx.sdb'
Jan 24 00:00:49 raspberrypi weewx[2884] INFO weewx.manager: Added record 2021-01-24 00:00:30 CET (1611442830) to daily summary in 'weewx.sdb'
Jan 24 00:00:49 raspberrypi weewx[2884] INFO weewx.engine: Launch of report thread aborted: existing report thread still running
Jan 24 00:00:53 raspberrypi weewx[2884] INFO weewx.imagegenerator: Generated 12 images for report neowx in 17.12 seconds
Jan 24 00:00:53 raspberrypi weewx[2884] INFO weewx.reportengine: Copied 17 files to /var/www/html/weewx/neowx
Jan 24 00:01:20 raspberrypi weewx[2884] INFO weewx.manager: Added record 2021-01-24 00:01:00 CET (1611442860) to database 'weewx.sdb'
Jan 24 00:01:20 raspberrypi weewx[2884] INFO weewx.manager: Added record 2021-01-24 00:01:00 CET (1611442860) to daily summary in 'weewx.sdb'
Jan 24 00:01:22 raspberrypi weewx[2884] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.83 seconds
Jan 24 00:01:23 raspberrypi weewx[2884] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 1.13 seconds
[…]

And this is what weewxd does:

[…]
LOOP:   2021-01-24 15:45:17 CET (1611499517) altimeter: 29.565615792454597, appTemp: 29.635380944252738, barometer: 29.618809179080866, cloudbase: 4088.77292306068, dateTime: 1611499517, dewpoint: 22.763848540151056, humidex: 35.239999999999995, inDewpoint: 46.640638253351156, inHumidity: 41, inTemp: 71.6, luminosity: 6649.0, maxSolarRad: None, outHumidity: 60, outTemp: 35.239999999999995, pressure: 28.24543304375, radiation: 52.527100000000004, rain: None, usUnits: 1, UV: 0, uv_raw: 0, windDir: 225, windGust: 3.8028011482968176, windSpeed: 1.565859296357513
LOOP:   2021-01-24 15:45:32 CET (1611499532) altimeter: 29.565615792454597, appTemp: 29.216091261848526, barometer: 29.618809179080866, cloudbase: 4179.279711534722, dateTime: 1611499532, dewpoint: 22.365618670865274, humidex: 35.239999999999995, inDewpoint: 46.640638253351156, inHumidity: 41, inTemp: 71.6, luminosity: 6649.0, maxSolarRad: None, outHumidity: 59, outTemp: 35.239999999999995, pressure: 28.24543304375, radiation: 52.527100000000004, rain: 0.0, usUnits: 1, UV: 0, uv_raw: 0, windDir: 225, windGust: 3.8028011482968176, windSpeed: 2.2369418519393043
[…]

gjr80

unread,
Jan 24, 2021, 5:22:38 PM1/24/21
to weewx-user
On Monday, 25 January 2021 at 07:19:16 UTC+10 Holger DL7HMX wrote:
Hi all,

I've been following your discussion with interest and I've just set up my own station:
  • WH2315 (Renkforce from Conrad)
  • Raspberry Pi 3B
  • weewx 4.3.0
  • driver is wh23xx (I think it's the one that has Edwin's and Bogdan's fixes, as it says in the file's preamble "Updated to Python 3 support, tested with Renkforce 2315")
  • Python 2.7.16 (according to python -V)

Just one point of clarification, python -V will display the python version used when the python is invoked from the command line, that is not necessarily the version of python used by WeeWX. To find the version of python used by WeeWX you need to look at the WeeWX log during startup, it will list the python version being used by WeeWX.

Gary

Holger DL7HMX

unread,
Jan 25, 2021, 5:33:24 PM1/25/21
to weewx-user
Thank you, Gary. I wasn't aware of that. And indeed, the log during startup says that weewx uses python 3.7, although I wasn't aware of installing it. I just flashed the whole OS from an image "as is" and never updated python. At least that's what I thought.

So, what does that mean now? I'm confused...

Grateful for any clues.
Holger

The relevant bit from the log:

Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Initializing weewx version 4.3.0
Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Using Python 3.7.3 (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0]
Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Platform Linux-5.4.79-v7+-armv7l-with-debian-10.7
Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Locale is 'de_DE.UTF-8'
Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Jan 25 23:00:10 raspberrypi weewx[23489] INFO __main__: Debug is 1
Jan 25 23:00:10 raspberrypi weewx[23489] INFO weewx.engine: Loading station type WH23xx (user.wh23xx)
Jan 25 23:00:10 raspberrypi /weewxd: wh23xx: driver version is 0.14
Jan 25 23:00:10 raspberrypi /weewxd: wh23xx: usb info: pyusb_version=1.0.2
Jan 25 23:00:10 raspberrypi /weewxd: wh23xx: poll interval is 15
Jan 25 23:00:10 raspberrypi /weewxd: wh23xx: Found device on USB bus= device=
Jan 25 23:00:10 raspberrypi kernel: [179275.088804] usb 1-1.4: reset full-speed USB device number 5 using dwc_otg
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: StdConvert target unit is 0x1
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: Archive will use data binding wx_binding
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: Record generation will be attempted in 'software'
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: Using archive interval of 30 seconds (software record generation)
Jan 25 23:00:11 raspberrypi weewx[23489] WARNING weewx.engine: Archive delay (15) is unusually long
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: StationRegistry: Registration not requested.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: Wunderground: Posting not enabled.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: PWSweather: Posting not enabled.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: CWOP: Posting not enabled.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: WOW: Posting not enabled.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.restx: AWEKAS: Posting not enabled.
Jan 25 23:00:11 raspberrypi weewx[23489] INFO __main__: Starting up weewx version 4.3.0
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.manager: Starting backfill of daily summaries
Jan 25 23:00:11 raspberrypi weewx[23489] INFO weewx.engine: Starting main packet loop.
Jan 25 23:00:42 raspberrypi weewx[23489] INFO weewx.engine: Main loop exiting. Shutting engine down.

Holger DL7HMX

unread,
Jan 29, 2021, 12:00:12 PM1/29/21
to weewx-user
OK, I set "windchill" and "heatindex" in weewx.conf to "software" (default was "hardware"). Now I've got values in weewx's output.

Cheers,
Holger

Günther Wrana

unread,
Mar 31, 2024, 4:33:24 AM3/31/24
to weewx-user
Ladies and Gentlemen

Once again I need your help, how is it possible to use the weather station I use with weewx version 5.0.
I managed to install the new version of weewx and also the driver. It only shows an error message during reconfiguration.
With this command I installed the driver
weektl extension install weewx-wh23xx-master.zip


What have I done wrong again?

Thanks for the help and have a nice Easter holidays!

Bildschirmfoto von 2024-03-31 10-27-33.png

Sehr geehrte Damen und Herren

Wieder einmal brauche ich eure Hilfe, wie ist es möglich die von mir verwendete Wetterstation mit weewx Version 5.0 zu verwenden.
Ich habe es geschaft die neue Version von weewx zu installieren und auch den Treiber. Nur bei der Rekonfiguration zeigt es eine Fehlermeldung an.

Mit diesem Befehl habe ich den Treiber installiert.
weectl extension install weewx-wh23xx-master.zip

Was habe ich wieder einmal falsch gemacht.

Danke für die Hilfe und noch schöne Osterfeiertage!

Tom Keffer

unread,
Mar 31, 2024, 5:12:52 AM3/31/24
to weewx...@googlegroups.com
It appears that the wh23xx driver has not been ported to Python 2.

--
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/e9c1c148-9dfa-4c33-a698-8344376997f0n%40googlegroups.com.

Tom Keffer

unread,
Mar 31, 2024, 11:48:37 AM3/31/24
to weewx...@googlegroups.com
I did a quick port of the driver. It has not been tested!


If it works for you, I'll ask Matthew to incorporate the changes.

-tk

Günther Wrana

unread,
Apr 1, 2024, 11:48:35 AM4/1/24
to weewx-user
Hello, this is the message when I install the driver and try to select when reconfiguring

Thanks Günther

Hallo das ist die Meldung wenn ich den Treiber installiere und versuche bei der Rekonfiguration auszuwählen

Danke Günther



64GB@64GB:~/Downloads $ wget -O weewx-wh23xx.zip https://github.com/matthewwall/weewx-wh23xx/archive/master.zip
--2024-04-01 17:27:53--  https://github.com/matthewwall/weewx-wh23xx/archive/master.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/matthewwall/weewx-wh23xx/zip/refs/heads/master [following]
--2024-04-01 17:27:53--  https://codeload.github.com/matthewwall/weewx-wh23xx/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.121.9
Connecting to codeload.github.com (codeload.github.com)|140.82.121.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘weewx-wh23xx.zip’

weewx-wh23xx.zip        [ <=>                ]  23.64K  --.-KB/s    in 0.03s  

2024-04-01 17:27:54 (837 KB/s) - ‘weewx-wh23xx.zip’ saved [24210]

64GB@64GB:~/Downloads $ weectl extension install weewx-wh23xx-master.zip
Using configuration file /etc/weewx/weewx.conf
Install extension 'weewx-wh23xx-master.zip' (y/n)? y
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 74, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 66, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/extension_cmd.py", line 116, in install_extension
    ext.install_extension(namespace.source, no_confirm=namespace.yes)
  File "/usr/share/weewx/weecfg/extension.py", line 143, in install_extension
    raise InstallError(f"Unrecognized type for {extension_path}")
weecfg.extension.InstallError: Unrecognized type for weewx-wh23xx-master.zip
64GB@64GB:~/Downloads $ weectl station reconfigure
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf

Give a description of the station. This will be used for the title of reports.
description [2243 Matzen,Österreich Niederösterreich ]:

Specify altitude, with units 'foot' or 'meter'.  For example:
  35, foot
  12, meter
altitude [199, meter]:

Specify latitude in decimal degrees, negative for south.
latitude [48.401826]:
Specify longitude in decimal degrees, negative for west.
longitude [16.686539]:

Choose a unit system for the reports. Later, you can modify
your choice, or choose a combination of units. Unit systems
include:
  us         (ºF, inHg, in, mph)
  metricwx   (ºC, mbar, mm, m/s)
  metric     (ºC, mbar, cm, km/h)
unit system [metricwx]:

Choose a driver. Installed drivers include:
  0) ?               (user.wh23xx)             invalid syntax (wh23xx.py, line 427)
  1) AcuRite         (weewx.drivers.acurite)  
  2) CC3000          (weewx.drivers.cc3000)    
  3) FineOffsetUSB   (weewx.drivers.fousb)    
  4) Simulator       (weewx.drivers.simulator)
  5) TE923           (weewx.drivers.te923)    
  6) Ultimeter       (weewx.drivers.ultimeter)
  7) Vantage         (weewx.drivers.vantage)  
  8) WMR100          (weewx.drivers.wmr100)    
  9) WMR300          (weewx.drivers.wmr300)    
 10) WMR9x8          (weewx.drivers.wmr9x8)    
 11) WS1             (weewx.drivers.ws1)      
 12) WS23xx          (weewx.drivers.ws23xx)    
 13) WS28xx          (weewx.drivers.ws28xx)    
driver [4]:

Tom Keffer

unread,
Apr 1, 2024, 12:20:04 PM4/1/24
to weewx...@googlegroups.com
Two things: 

1. You are still using the original version of the driver. You want my patched version at  https://github.com/tkeffer/weewx-wh23xx
2. What version of weewx are you using? Early beta versions of v5.0 could not recognize a zip file, but current releases do.

    weectl --version


Tom Keffer

unread,
Apr 4, 2024, 12:27:45 PM4/4/24
to weewx...@googlegroups.com
Günther?

Günther Wrana

unread,
Apr 6, 2024, 1:16:47 AM4/6/24
to weewx-user
Hello, sorry for the long pause in answering.
These are the settings and messages on my Raspi.

See you then Günther

Hallo Entschuldigung für die lange Pause zur Antwort.
Das sind die Einstellungen und Meldungen auf meinem Raspi.

Bis dann Günther

hp@hp:~$ ssh 64...@192.168.1.3
64...@192.168.1.3's password:
Linux 64GB 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Apr  6 06:50:06 2024 from 192.168.1.50
64GB@64GB:~ $ weectl --version
weectl 5.0.2
64GB@64GB:~ $ cd /home/64GB/Downloads
64GB@64GB:~/Downloads $ dir
weewx-wh23xx.zip
64GB@64GB:~/Downloads $ rm weewx-wh23xx.zip
64GB@64GB:~/Downloads $ dir
64GB@64GB:~/Downloads $ wget -O weewx-wh23xx.zip https://github.com/tkeffer/weewx-wh23xx
--2024-04-06 07:00:44--  https://github.com/tkeffer/weewx-wh23xx
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.

HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘weewx-wh23xx.zip’

weewx-wh23xx.zip        [ <=>                ] 243.83K  --.-KB/s    in 0.1s    

2024-04-06 07:00:45 (2.07 MB/s) - ‘weewx-wh23xx.zip’ saved [249677]

64GB@64GB:~/Downloads $ dir
weewx-wh23xx.zip
64GB@64GB:~/Downloads $ weectl extension install weewx-wh23xx.zip
Using configuration file /etc/weewx/weewx.conf
Install extension 'weewx-wh23xx.zip' (y/n)? y
Extracting from zip archive weewx-wh23xx.zip

Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 74, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 66, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/extension_cmd.py", line 116, in install_extension
    ext.install_extension(namespace.source, no_confirm=namespace.yes)
  File "/usr/share/weewx/weecfg/extension.py", line 138, in install_extension
    extension_name = self._install_from_file(extension_path, filetype)
  File "/usr/share/weewx/weecfg/extension.py", line 158, in _install_from_file
    member_names = weecfg.extract_zip(filepath, dir_name, self.printer)
  File "/usr/share/weewx/weecfg/__init__.py", line 698, in extract_zip
    with zipfile.ZipFile(filename) as zip_archive:
  File "/usr/lib/python3.9/zipfile.py", line 1257, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.9/zipfile.py", line 1324, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

Günther Wrana

unread,
Apr 6, 2024, 1:53:06 AM4/6/24
to weewx-user
Hello, I think I have solved the problem.
The driver from the following link wget -O weewx-wh23xx.zip https://github.com/EdwinGH/weewx-wh23xx/archive/master.zip
works, at least there is no error message when reconfiguring the weather cities.

Thanks for the help and I'll definitely need something from YOU again soon.
 Another nice day from Austria


Hallo ich glaube ich habe das Problem gelöst.
Der Treiber von folgendem Link wget -O weewx-wh23xx.zip https://github.com/EdwinGH/weewx-wh23xx/archive/master.zip
funktioniert zumindest kommt keine Fehlermeldung bei der Rekonfiguration der Wetterstadtionen.

Danke für die Hilfe und ich brauche sicher bald wieder etwas von EUCH.
Noch einen schönen Tag aus Österreich



64GB@64GB:~/Downloads $ rm weewx-wh23xx.zip
64GB@64GB:~/Downloads $ wget -O weewx-wh23xx.zip https://github.com/EdwinGH/weewx-wh23xx/archive/master.zip
--2024-04-06 07:40:19--  https://github.com/EdwinGH/weewx-wh23xx/archive/master.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.

HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/EdwinGH/weewx-wh23xx/zip/refs/heads/master [following]
--2024-04-06 07:40:20--  https://codeload.github.com/EdwinGH/weewx-wh23xx/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.

HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘weewx-wh23xx.zip’

weewx-wh23xx.zip        [ <=>                ]  24.88K  --.-KB/s    in 0.03s  

2024-04-06 07:40:20 (739 KB/s) - ‘weewx-wh23xx.zip’ saved [25472]


64GB@64GB:~/Downloads $ dir
weewx-wh23xx.zip
64GB@64GB:~/Downloads $ weectl extension install weewx-wh23xx.zip
Using configuration file /etc/weewx/weewx.conf

Install extension 'weewx-wh23xx.zip' (y/n)? y
Extracting from zip archive weewx-wh23xx.zip
Saving installer file to /etc/weewx/bin/user/installer/wh23xx
Finished installing extension wh23xx from weewx-wh23xx.zip

64GB@64GB:~/Downloads $ weectl station reconfigure
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf

Give a description of the station. This will be used for the title of reports.
description [2243 Matzen,Österreich Niederösterreich ]:

Specify altitude, with units 'foot' or 'meter'.  For example:
  35, foot
  12, meter
altitude [199, meter]:

Specify latitude in decimal degrees, negative for south.
latitude [48.401826]:
Specify longitude in decimal degrees, negative for west.
longitude [16.686539]:

Choose a unit system for the reports. Later, you can modify
your choice, or choose a combination of units. Unit systems
include:
  us         (ºF, inHg, in, mph)
  metricwx   (ºC, mbar, mm, m/s)
  metric     (ºC, mbar, cm, km/h)
unit system [metricwx]:

Choose a driver. Installed drivers include:
  0) WH23xx          (user.wh23xx)            
  1) AcuRite         (weewx.drivers.acurite)  
  2) CC3000          (weewx.drivers.cc3000)    
  3) FineOffsetUSB   (weewx.drivers.fousb)    
  4) Simulator       (weewx.drivers.simulator)
  5) TE923           (weewx.drivers.te923)    
  6) Ultimeter       (weewx.drivers.ultimeter)
  7) Vantage         (weewx.drivers.vantage)  
  8) WMR100          (weewx.drivers.wmr100)    
  9) WMR300          (weewx.drivers.wmr300)    
 10) WMR9x8          (weewx.drivers.wmr9x8)    
 11) WS1             (weewx.drivers.ws1)      
 12) WS23xx          (weewx.drivers.ws23xx)    
 13) WS28xx          (weewx.drivers.ws28xx)    
driver [4]: 0

You can register the station on weewx.com, where it will be included in a
map. If you choose to register, you will also need a unique URL to identify
the station (such as a website, or a WeatherUnderground link).
register this station (y/n)? [y] y

Now give a unique URL for the station. A Weather Underground
URL such as https://www.wunderground.com/dashboard/pws/KORPORT12 will do.
Unique URL [http://guentherwrana.ddns.net]:
Saving configuration file /etc/weewx/weewx.conf
Saved old configuration file as /etc/weewx/weewx.conf.20240406074122
64GB@64GB:~/Downloads $ weectl --version
weectl 5.0.2
64GB@64GB:~/Downloads $


Tom Keffer schrieb am Donnerstag, 4. April 2024 um 18:27:45 UTC+2:

Tom Keffer

unread,
Apr 6, 2024, 8:46:09 AM4/6/24
to weewx...@googlegroups.com
I was just going to point that out!

With V5, it's actually easiest to install directly from the URL:




Günther Wrana

unread,
Aug 24, 2024, 11:14:29 AM8/24/24
to weewx-user
Hello and again it's me, Günther Wrana from Austria, who can't install the driver for the Renkforce Wh2315.
Does it no longer work the driver or what have I once again not installed correctly.

As you can see below, I installed weewx on my Raspberry and chose the simulation driver.
I then tried to choose a new driver with the weectl station reconfigure command. 

Even before I tried to install the driver for my Renkforce Wh2315.
Not even that worked, so what's wrong and what's the problem?

Thanks for the help Günther


Hallo und wieder bin es ich Günther Wrana aus Österreich der den Treiber für die Renkforce Wh2315 nicht installieren kann.
Funktioniert es nun nicht mehr der Treiber oder was habe ich nun wieder einmal nicht richtig installiert.

Wie Ihr unten sehen könnt habe ich weewx auf meinem Raspberry installiert und den Simulation Treiber gewählt.
Ich habe danach mit dem Befehl weectl station reconfigure versucht einen neuen Treiber zu wählen.

Noch bevor ich den Treiber für meine Renkforce Wh2315 zu installieren versuch habe.
Nicht einmal das hat funktioniert also was ist falsch und wo liegt das Problem?

Danke für die Hilfe Günther
 

32GB@32GB:~/Downloads $ sudo systemctl start weewx
32GB@32GB:~/Downloads $ sudo systemctl status weewx
● weewx.service - WeeWX
     Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-08-24 16:58:57 CEST; 2s ago
       Docs: https://weewx.com/docs
   Main PID: 4631 (python3)
      Tasks: 1 (limit: 755)
        CPU: 784ms
     CGroup: /system.slice/weewx.service
             └─4631 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.restx: CWOP: Posting not enabled.
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.restx: WOW: Posting not enabled.
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.restx: AWEKAS: Posting not enabled.
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Aug 24 16:58:58 32GB weewxd[4631]: INFO __main__: Starting up weewx version 5.1.0
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.engine: Clock error is -0.26 seconds (positive is fast)
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.manager: Starting backfill of daily summaries
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.manager: Daily summaries up to date
Aug 24 16:58:58 32GB weewxd[4631]: INFO weewx.engine: Starting main packet loop.


32GB@32GB:~/Downloads $ weectl station reconfigure
Error parsing config file: [Errno 13] Permission denied: '/etc/weewx/weewx.conf'

Traceback (most recent call last):
  File "/usr/share/weewx/weeutil/startup.py", line 86, in start_app
    config_path, config_dict = weecfg.read_config(config_option, [config_arg])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weecfg/__init__.py", line 150, in read_config
    config_dict = configobj.ConfigObj(config_path,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/configobj/__init__.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python3/dist-packages/configobj/__init__.py", line 1236, in _load
    with open(infile, 'rb') as h:
         ^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/etc/weewx/weewx.conf'
32GB@32GB:~/Downloads $

Kalli

unread,
Aug 24, 2024, 11:57:10 AM8/24/24
to weewx...@googlegroups.com
Hello, I have copied the driver data into the intended directories, try that.
Unfortunately I don't remember what they were, but I'll take a look.

Hallo ich habe die Treiber daten in die dafür vorgesehenen Verzeichnisse kopiert , versuche das mal.
Ich weis leider nicht mehr welsche das waren, aber ich schaue mal nach.

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/zsTwFI7tSlw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/74ca9e36-1154-4575-a57e-555f667c9c08n%40googlegroups.com.

Günther Wrana

unread,
Aug 25, 2024, 4:27:51 AM8/25/24
to weewx-user
Hi, I can't even reconfigure the program with this weectl station reconfigure command.
So I don't need to try to install other drivers yet.
The driver I would need cannot be installed.
But thanks for the information.


Hallo ich kann das Programm mit diesem Befehl weectl station reconfigure nicht einmal neu konfigurieren.
Also brauche ich auch noch nicht versuchen andere Treiber zu installieren.
Den Treiber den ich brauchen würde lässt sich nicht installieren.
Aber danke für die Informationen.

EdwinZ

unread,
Aug 25, 2024, 8:10:33 AM8/25/24
to weewx-user
Hi Guenther, to be this looks more like an access control problem (" Permission denied: '/etc/weewx/weewx.conf"). As since recently WeeWX moved from root to the weewx user, I guess this may be your problem.

For me all the files in /etc/weewx are owned by the weewx user and group.

Hope this helps!
Edwin

Günther Wrana

unread,
Sep 12, 2024, 4:49:15 AM9/12/24
to weewx-user
Hallo wenn ich das ganze System aber neu erstellt habe.
Ich mich dabe an die Vorgaben von folgender Aneitung https://weewx.com/docs/5.1/quickstarts/debian/ gehalten habe.
Dann erstehe ich nicht wo das Problem liegt.
Muss ich bei der erstellung eines neuen Raspberry System etawas beachten?
Oder bevor ich weewx installiere?

Danke für alles!


Hello if I have recreated the whole system though.
I have adhered to the specifications of the following https://weewx.com/docs/5.1/quickstarts/debian/.
Then I don't see where the problem lies.
Do I have to pay attention to anything when creating a new Raspberry system?
Or before I install weewx?

Thanks for all!

michael.k...@gmx.at

unread,
Sep 12, 2024, 6:05:47 AM9/12/24
to weewx-user
Hallo Günther, hast du schon probiert, ein sudo vor diesen Befehl zu setzen?

32GB@32GB:~/Downloads $ weectl station reconfigure

also:

32GB@32GB:~/Downloads $ sudo weectl station reconfigure

Von mit Paketinstaller mittels sudo installierten Files in /etc würde ich annehmen, dass diese nicht dem User gehören, mit dem du weectl ohne sudo ausführst. Daher fehlt dann auch höchstwahrscheinlich die Berechtigung, auf diesem Weg /etc/weewx/weewx.conf zu verändern.

Günther Wrana

unread,
Sep 12, 2024, 6:42:49 AM9/12/24
to weewx-user
Bildschirmfoto vom 2024-09-12 12-35-40.png
Hallo es funktioniert auch mit sudo am Anfang nicht.
Es hat nur bei der Installation funktioniert das ich eine Station auswählen kann.
Da meine Wetterstation nicht in der Liste ist habe ich die Simulation gewählt.
Ich dachte es liegt am Treiber und an der Version von weewx.
Also habe ich den Raspberry neu installiert und nur weewx installiert und nur versucht den Treiber zu ändern.
Das kommt dabei raus.
Ich glaube ich bin zu D... für das ganze.

Danke noch einmal für alles!
Gütße Günther


Hi, it doesn't work with sudo at the beginning either.
It only worked during the installation that I can select a station. 
Since my weather station is not in the list, I chose the simulation. 
I thought it was due to the driver and the version of weewx. 
So I reinstalled the Raspberry and only installed weewx and only tried to change the driver. 
This is what comes out of it.
I think I'm too stupid for the whole thing. 

Thanks again for everything! 
Gütße Günther

michael.k...@gmx.at

unread,
Sep 12, 2024, 8:32:04 AM9/12/24
to weewx-user
Jetzt sind wir schon weiter, das sudo hat funktioniert. Jetzt wäre noch wichtig zu wissen, welche locale da gesetzt werden soll und ob diese auf deinem system verfügbar ist.

Günther Wrana

unread,
Sep 14, 2024, 1:50:24 AM9/14/24
to weewx-user
Hallo Michael, ich habe keine Anhung was du von mir wissen willst.
So wie ich das sehe funktioniert es nicht, ich kann keinen anderen Treiber für Wetterstationen auswählen.
Den diesen Treiber von dieser Webseite brauch ich für meine Wetterstation.
Hello Michael, I have no idea what you want to know from me.
As I see it, it doesn't work, I can't choose another driver for weather stations.
I need this driver from this website for my weather station.

Graham Eddy

unread,
Sep 14, 2024, 2:05:57 AM9/14/24
to WeeWX User
the error message is
return_setlocale(category, locale)
locale. Error: unsupported locale setting
so try changing your locale. my weewx instances are running with locale en_AU.UTF-8

if you are unfamiliar with locale, do

$ man -k locale

cheers
⊣GE⊢

Kalli

unread,
Sep 14, 2024, 9:08:32 AM9/14/24
to weewx-user
Hallo Günter
wenn du den Treiber schon Gedownloded hast dann nur Installieren.

3. install the driver

`sudo wee_extension --install weewx-wh23xx.zip`

4. configure the driver (now select wh23xx, it should appear in the list of drivers)

`sudo wee_config --reconfigure`

michael.k...@gmx.at

unread,
Sep 14, 2024, 1:19:31 PM9/14/24
to weewx-user
Hallo Günther,

die Ausgabe des Befehls mit sudo zeigt eine neue Fehlermeldung: locale.Error: unsupported locale setting

Jetzt wäre interessant, mit welcher locale deine weewx-Instanz startet, und ob diese locale auf deinem System verfügbar ist.
Mit welcher locale weewx startet sieht man unmittelbar nach dem start des deamon im log, in etwa so::
2024-09-14 19:14:46 weewxd[114394] INFO __main__: Locale: 'de_AT.UTF-8'

Welche locales auf deinem system verfügbar sind, ermittelst du, wenn du auf der Maschine, auf der weewx läuft, in die console locale eingibst, bei mir sieht das so aus:
zbox@zbox:~$ locale -a
C
C.utf8
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_IT.utf8
de_LI.utf8
de_LU.utf8
en_US.utf8
POSIX

Günther Wrana

unread,
Sep 14, 2024, 11:21:39 PM9/14/24
to weewx-user
Bildschirmfoto vom 2024-09-15 05-07-59.png
Hallo Ihr netten Helfer bei meinem Problem!!!

Schön langsam lichtet sich der Nebel.
Weil ich weewx mit der Ländereinstellung (locale) 'en_GB.UFT-8' gestartet habe oder weil ich es mit dieser Ländereinstellung (locale) installiert habe, funktioniert das ganze nicht?
Reicht es wenn ich beim Raspberry die Ländereinstellungen nach installiere?

Ich danke EUCH allen für die Geduld mit mir.
Günther


Hello you nice helpers with my problem!!

The fog is slowly lifting.
Because I weewx with the locale setting. 'en_GB.UFT-8' or because I installed it with this locale, the whole thing doesn't work?
Is it enough if I install the regional settings on the Raspberry?
 
I thank YOU all for your patience with me.
Günther

Bildschirmfoto vom 2024-09-15 05-16-12.png

Günther Wrana

unread,
Sep 15, 2024, 1:03:13 AM9/15/24
to weewx-user
Bildschirmfoto vom 2024-09-15 06-52-48.png
Hallo ich habe es nun geschaft den Treiber zu installieren und ihn auch zu konfigurieren in den Einstellungen von weewx.
Nun kommt aber nach 5 start Versuchen folgende Fehlermeldung.
Wo liegt nun das Problem?

Ich danke EUCH allen vielmals für die Hilfe und noch einen schönen Tag!

Günther

Hello, I have now managed to install the driver and also configure it in the settings of weewx.
But now after 5 start attempts the following error message appears.
So what's the problem?

I thank YOU all very much for the help and have a nice day!

Günther

Kalli

unread,
Sep 15, 2024, 1:50:49 AM9/15/24
to weewx...@googlegroups.com
Hallo Günther

Wenn ich das richtig verstehe findet er kein USB Port.

Und noch was ich habe noch nie mit den Lokalen eingestellt.
Ich habe den RPI installiert und dann weewx drauf gemacht , das hat immer geklappt.

Wenn du noch ein Altes System hast mach das doch wieder drauf.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/zsTwFI7tSlw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6bcf0bee-8201-415d-a089-adb08f2ad3b2n%40googlegroups.com.
<Bildschirmfoto vom 2024-09-15 06-52-48.png>

michael.k...@gmx.at

unread,
Sep 15, 2024, 2:51:10 AM9/15/24
to weewx-user
Hallo Günther,

das Problem ist jetzt, dass der User, unter dem weewx läuft, keine Berechtigung hat, auf den USB-Port zuzugreifen. Das hat mit diversen Änderungen mit der Version 5 zu tun.

Ich nehme mal an es ist das Gerät mit der Vendor:DeviceId 10c4:8468

In ~/weewx-data/util/udev/rules.d/ sollte sich eine Datei namens weewx.rules befinden. Darin enthalten sind einige Beispiele für Geräte angeführt, und wie sie zu konfigurieren sind, damit der Zugriff auch ohne root-rechte klappt.

Ich würde nun versuchen, folgendes in die Datei hinzuzufügen:

# wh28xx
SUBSYSTEM=="usb",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="8468",MODE="0666"


Anschließend, wie in der Datei beschrieben, die Datei nach /etc/udev/rules.d/60-weewx.rules kopieren und dein Gerät (raspberryPi) neu starten.

Wenn das nicht klappt, dann stattdessen:

#  wh28xx connected via usb-serial
SUBSYSTEM=="tty",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="8468",MODE="0666",SYMLINK+="wh28xx"

Günther Wrana

unread,
Sep 21, 2024, 2:55:52 PM9/21/24
to weewx-user
Hallo Michael,
wo befindet sich dieser Pfad In ~/weewx-data/util/udev/rules.d/ 
Ich kann ihn nicht finden.

Danke sehr

Hello Michael,
where is this path in ~/weewx-data/util/udev/rules.d/ I can't find him.

Thank you

Günther Wrana

unread,
Sep 21, 2024, 3:06:53 PM9/21/24
to weewx-user
Bildschirmfoto vom 2024-09-21 21-01-40.png
Ich habe diese Datei weewx.rules in diesem Pfad /etc/weewx/udev gefunden.
Dort soll ich folgendens eintragen?
# wh28xx
SUBSYSTEM=="usb",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="8468",MODE="0666"
Die Datei sieht so aus.
Bildschirmfoto vom 2024-09-21 21-05-09.png
Ist das die Richtige?

Danke wieder einmal für die Hilfe.
Grüße Günther

michael.k...@gmx.at

unread,
Sep 22, 2024, 12:34:29 PM9/22/24
to weewx-user
Probiers einfach mal aus. Ich hab weewx mit der pip-Variante installiert, da liegt das wahrscheinlicha lles ein bissl woanders. 

Günther Wrana

unread,
Oct 6, 2024, 5:54:52 AM10/6/24
to weewx-user
Es funktioniert auch nicht wenn ich das in die Datei rules eintrage.

Bildschirmfoto vom 2024-10-06 11-47-02.png

Wenn ich dann Neustarte kommt wieder diese Meldung.


Bildschirmfoto vom 2024-10-06 11-47-22.png

Vor allem kann ich weewx nicht anhalten auch wenn ich hunderte male sudo systemctl stop weewx schreibe.

Ich weiß nicht wo nun das ganze Problem liegt.
Danke sehr

michael.k...@gmx.at

unread,
Oct 7, 2024, 3:13:18 AM10/7/24
to weewx-user
Abgesehen davon, dass korrekter Weise alle "wh28xx"-Einträge oben "wh23xx" heißen sollen (sorry, mein Fehler) , habe ich keine Idee mehr, außer, dass du mal versuchst, das Service mal manuell mit sudo zu starten. 

EdwinZ

unread,
Oct 7, 2024, 3:54:03 AM10/7/24
to weewx-user
Hi Guenther, did you also copy the weewx.rules file from /etc/weewx/udev/ to  /etc/udev/rules.d/ ?
And then reboot the system?

I played around a bit yesterday with USB and access rights, and if your udev rules work well, the following Python code should show the manufacturer and product; when the rules do not work, it complains about a langid it can't find (not sure why this error is thrown):

import usb.core
import usb.util
for xdev in usb.core.find(find_all=True):
  print("Raw idVendor = %s, idProduct = %s" % (xdev.idVendor, xdev.idProduct))
  vidhex_str = "{:04X}".format(xdev.idVendor)
  pidhex_str = "{:04X}".format(xdev.idProduct)
  try:
    langids_str = usb.util.get_langids(xdev)
    print("Lang raw %s" % langids_str)
  except Exception as e:
    langids_str = e
    print("Lang exception %s" % langids_str)
  try:
    mfr_str = usb.util.get_string(xdev, xdev.iManufacturer)
    print("Mft raw %s" % mfr_str)
  except Exception as e:
    mfr_str = e
    print("Mft exception %s" % mfr_str)
  try:
    prod_str = usb.util.get_string(xdev, xdev.iProduct)
    print("Prod raw %s" % prod_str)
  except Exception as e:
    prod_str = e
    print("Prod exception %s" % prod_str)
  out_str = "VID: 0x{}, PID: 0x{}, Mfr: '{}', Prod: '{}'".format(vidhex_str, pidhex_str, mfr_str, prod_str)
  print(out_str)

What you can do is just run python, and paste the above in your shell window and press enter until it executes. If you run python as root (sudo python) it always shows the USB devices info. 
I did not find another way to check if the udev rules permissions are working. One thing I did find out is that the udev rules file is case sensitive, also on hex values like 10c4 (10C4 did not work...)

Happy testing!
Edwin

PS Yesterday I also updated my WH23xx code to have more debugging and USB info; it will not help you with the above, but I did not like the code to show empty strings with the USB device ("bus= device="), so fixed that to show Silicon Labs and HIDtoSPI Slave

Günther Wrana

unread,
Oct 12, 2024, 4:29:43 AM10/12/24
to weewx-user
Hallo ich danke allen die mir wieder einmal geholfen haben.

Ich habe die Endungen im Treiber von Wh28xx auf Wh23xx geändert.

Dann so wie EdwinZ geschrieben hat die weewx.rules in den Pfad /etc/udev/rules.d/ kopiert und neu gestartet.

Ab dann hat schon alles ohne Fehler funktioniert. Ich danke vielmals für die Hilfe.

Auf www.guentherwrana.ddns.net könnt ihr meine Werte sehen.

VIELEN VIELEN Dank nochals aus Niederösterreich und schöne Grüße Günther



Hello, I thank everyone who helped me once again.

I changed the endings in the driver from Wh28xx to Wh23xx.

Then, as EdwinZ wrote, copied the rules.d to the path /etc/udev/rules.d/ and restarted. From then on, everything worked without errors.

Thank you very much for your help.

On www.guentherwrana.ddns.net you can see my values.

THANK YOU again from Lower Austria and best regards Günther

michael.k...@gmx.at

unread,
Oct 12, 2024, 7:47:14 AM10/12/24
to weewx-user
Schön zu hören :) Grüße aus Salzburg.

Günther Wrana

unread,
Mar 19, 2025, 4:45:57 PM3/19/25
to weewx-user
Hello weewx experts, once again weewx isn't working properly on my Raspberry Pi.
The following error message appears after restarting weewx.


Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: read_record: write: 02 02 04 04 (len=4)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: read_record: buf: 01 3b 04 4a 01 02 67 02 01 bc 03 01 4f 04 01 a7 05 01 bc 06 27 07 2d 08 27 47 09 27 28 0a 00 87 0b 00 18 0c 00 1f 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 96 13 00 00 (len=61)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: read_record: record_size: 74
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: read_record: buf: 01 12 00 ae 14 00 00 68 91 15 00 00 00 00 16 00 00 17 00 2d 27 07 2d 08 27 47 09 27 28 0a 00 87 0b 00 18 0c 00 1f 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 96 13 00 00 (len=61)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: read_record: rbuf: 01 02 67 02 01 bc 03 01 4f 04 01 a7 05 01 bc 06 27 07 2d 08 27 47 09 27 28 0a 00 87 0b 00 18 0c 00 1f 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 96 13 00 00 00 ae 14 00 00 68 91 15 00 00 00 00 16 00 00 17 00 (len=74) chksum_pkt=2d chksum=0x2d
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: raw data: [1, 2, 103, 2, 1, 188, 3, 1, 79, 4, 1, 167, 5, 1, 188, 6, 39, 7, 45, 8, 39, 71, 9, 39, 40, 10, 0, 135, 11, 0, 24, 12, 0, 31, 14, 0, 0, 0, 0, 16, 0, 0, 0, 0, 17, 0, 0, 0, 0, 18, 0, 0, 0, 150, 19, 0, 0, 0, 174, 20, 0, 0, 104, 145, 21, 0, 0, 0, 0, 22, 0, 0, 23, 0]
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: in_temp: {'value': 21.5} (0x01 0x01)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: out_temp: {'value': 4.399999999999999} (0x02 0x02)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: dewpoint: {'value': -6.5} (0x03 0x03)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: windchill: {'value': 2.299999999999997} (0x04 0x04)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: heatindex: {'value': 4.399999999999999} (0x05 0x05)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: in_humidity: {'value': 39} (0x06 0x06)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: out_humidity: {'value': 45} (0x07 0x07)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: abs_baro: {'value': 1005.5} (0x08 0x08)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rel_baro: {'value': 1002.4} (0x09 0x09)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: wind_dir: {'value': 135} (0x0a 0x0a)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: wind_speed: {'value': 2.4} (0x0b 0x0b)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: gust_speed: {'value': 3.1} (0x0c 0x0c)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_day: {'value': 0.0} (0x10 0x10)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_week: {'value': 0.0} (0x11 0x11)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_month: {'value': 15.0} (0x12 0x12)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_year: {'value': 17.4} (0x13 0x13)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: rain_totals: {'value': 2676.9} (0x14 0x14)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: light: {'value': 0.0} (0x15 0x15)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: uv: {'value': 0} (0x16 0x16)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: uvi: {'value': 0} (0x17 0x17)
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: decoded data: {'in_temp': {'value': 21.5}, 'out_temp': {'value': 4.399999999999999}, 'dewpoint': {'value': -6.5}, 'windchill': {'value': 2.299999999999997}, 'heatindex': {'value': 4.399999999999999}, 'in_humidity': {'value': 39}, 'out_humidity': {'value': 45}, 'abs_baro': {'value': 1005.5}, 'rel_baro': {'value': 1002.4}, 'wind_dir': {'value': 135}, 'wind_speed': {'value': 2.4}, 'gust_speed': {'value': 3.1}, 'rain_rate': {'value': 0.0}, 'rain_day': {'value': 0.0}, 'rain_week': {'value': 0.0}, 'rain_month': {'value': 15.0}, 'rain_year': {'value': 17.4}, 'rain_totals': {'value': 2676.9}, 'light': {'value': 0.0}, 'uv': {'value': 0}, 'uvi': {'value': 0}}
Mär 19 21:25:26 32GB weewxd.py[113134]: wh23xx: packet: {'dateTime': 1742415926, 'usUnits': 17, 'windDir': 135, 'windSpeed': 2.4, 'windGust': 3.1, 'inHumidity': 39, 'outHumidity': 45, 'inTemp': 21.5, 'outTemp': 4.399999999999999, 'pressure': 1005.5, 'luminosity': 0.0, 'uv_raw': 0, 'UV': 0, 'rain': 0.0, 'radiation': 0.0}
Mär 19 21:25:26 32GB weewxd[113134]: INFO weewx.engine: Main loop exiting. Shutting engine down.
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__: Caught unrecoverable exception:
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  database disk image is malformed
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 210, in run
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      callback(event)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 662, in check_loop
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      raise BreakLoop
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  weewx.engine.BreakLoop
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  During handling of the above exception, another exception occurred:
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 678, in post_loop
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self._catchup(self.engine.console.genArchiveRecords)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 725, in _catchup
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      for record in generator(lastgood_ts):
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****                    ^^^^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/drivers/__init__.py", line 31, in genArchiveRecords
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      raise NotImplementedError("Method 'genArchiveRecords' not implemented")
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  NotImplementedError: Method 'genArchiveRecords' not implemented
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  During handling of the above exception, another exception occurred:
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd.py", line 127, in main
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      engine.run()
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 217, in run
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      callback(event)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 680, in post_loop
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self._software_catchup()
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 743, in _software_catchup
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      callback(event)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 703, in new_archive_record
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      dbmanager.addRecord(event.record,
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 401, in addRecord
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self._updateHiLo(accumulator, cursor)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 1219, in _updateHiLo
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      self._set_day_summary(_stats_dict, accumulator.timespan.stop, cursor)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/manager.py", line 1640, in _set_day_summary
Mär 19 21:25:26 32GB weewxd[113134]: Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 210, in run
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      cursor.execute(_sql_replace_str, _write_tuple)
Mär 19 21:25:26 32GB weewxd[113134]:     self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]:     callback(event)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weedb/sqlite.py", line 38, in guarded_fn
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 662, in check_loop
Mär 19 21:25:26 32GB weewxd[113134]:     raise BreakLoop
Mär 19 21:25:26 32GB weewxd[113134]: weewx.engine.BreakLoop
Mär 19 21:25:26 32GB weewxd[113134]: During handling of the above exception, another exception occurred:
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      return fn(*args, **kwargs)
Mär 19 21:25:26 32GB weewxd[113134]: Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 678, in post_loop
Mär 19 21:25:26 32GB weewxd[113134]:     self._catchup(self.engine.console.genArchiveRecords)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 725, in _catchup
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****             ^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]:     for record in generator(lastgood_ts):
Mär 19 21:25:26 32GB weewxd[113134]:                   ^^^^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/drivers/__init__.py", line 31, in genArchiveRecords
Mär 19 21:25:26 32GB weewxd[113134]:     raise NotImplementedError("Method 'genArchiveRecords' not implemented")
Mär 19 21:25:26 32GB weewxd[113134]: NotImplementedError: Method 'genArchiveRecords' not implemented
Mär 19 21:25:26 32GB weewxd[113134]: During handling of the above exception, another exception occurred:
Mär 19 21:25:26 32GB weewxd[113134]: Traceback (most recent call last):
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewxd.py", line 226, in <module>
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****    File "/usr/share/weewx/weedb/sqlite.py", line 233, in execute
Mär 19 21:25:26 32GB weewxd[113134]:     main()
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewxd.py", line 127, in main
Mär 19 21:25:26 32GB weewxd[113134]:     engine.run()
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 217, in run
Mär 19 21:25:26 32GB weewxd[113134]:     self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]:     callback(event)
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****      return sqlite3.Cursor.execute(self, *args, **kwargs)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 680, in post_loop
Mär 19 21:25:26 32GB weewxd[113134]:     self._software_catchup()
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 743, in _software_catchup
Mär 19 21:25:26 32GB weewxd[113134]:     self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]:     callback(event)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/engine.py", line 703, in new_archive_record
Mär 19 21:25:26 32GB weewxd[113134]:     dbmanager.addRecord(event.record,
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/manager.py", line 401, in addRecord
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  sqlite3.DatabaseError: database disk image is malformed
Mär 19 21:25:26 32GB weewxd[113134]:     self._updateHiLo(accumulator, cursor)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/manager.py", line 1219, in _updateHiLo
Mär 19 21:25:26 32GB weewxd[113134]: CRITICAL __main__:     ****  Exiting.
Mär 19 21:25:26 32GB weewxd[113134]:     self._set_day_summary(_stats_dict, accumulator.timespan.stop, cursor)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weewx/manager.py", line 1640, in _set_day_summary
Mär 19 21:25:26 32GB weewxd[113134]:     cursor.execute(_sql_replace_str, _write_tuple)
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weedb/sqlite.py", line 38, in guarded_fn
Mär 19 21:25:26 32GB weewxd[113134]:     return fn(*args, **kwargs)
Mär 19 21:25:26 32GB weewxd[113134]:            ^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]:   File "/usr/share/weewx/weedb/sqlite.py", line 233, in execute
Mär 19 21:25:26 32GB weewxd[113134]:     return sqlite3.Cursor.execute(self, *args, **kwargs)
Mär 19 21:25:26 32GB weewxd[113134]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 19 21:25:26 32GB weewxd[113134]: sqlite3.DatabaseError: database disk image is malformed
Mär 19 21:25:26 32GB systemd[1]: weewx.service: Main process exited, code=exited, status=1/FAILURE
Mär 19 21:25:26 32GB systemd[1]: weewx.service: Failed with result 'exit-code'.
Mär 19 21:25:26 32GB systemd[1]: weewx.service: Consumed 1.588s CPU time.


What or how can I get it working again?
Or do I have to reinstall the whole thing?
Thanks again for your support and have a nice evening.
Best regards, Günther


Hallo weewx Experten, wieder einmal funktioniert weewx auf meinem Raspberry Pi nicht richtig.

Folgende Fehlermeldung erscheind nach dem Neustart von weewx.

Bildschirmfoto vom 2025-03-19 21-41-08.png
Bildschirmfoto vom 2025-03-19 21-41-27.png
Bildschirmfoto vom 2025-03-19 21-42-04.png
Was oder wie kann ich das ganze wieder funktionfähig machen?
Oder muss ich das ganze wieder einmal neu installieren.

Ich danke wieder einmal für die Unterstützung und wünsche noch einen schönen Abend.

Grüße Günther

I hope you understand my problem and thanks for all.

Günther

michael.k...@gmx.at

unread,
Mar 20, 2025, 12:35:54 AM3/20/25
to weewx-user
Deine weewx.sdb (oder wie auch immer dein Datenbankfile heißt) ist kaputt. Ersetze es durch die aktuellste Sicherung und gehe der Ursache (SD-Karte kaputt?) auf den Grund.

Günther Wrana

unread,
Mar 20, 2025, 4:42:08 PM3/20/25
to weewx-user
Thank you very much, I imported an old database and now it's working again.

What can I do to remove the following error messages?


Danke schön ich habe eine alte Datenbank eingespielt und nun läuft es wieder.

Was kann ich tun um die folgenden Fehlermeldungen zu entfernen?

Bildschirmfoto vom 2025-03-20 21-37-53.png

Grüße Günther

Best regards, Günther

michael.k...@gmx.at

unread,
Mar 21, 2025, 4:03:16 AM3/21/25
to weewx-user
The wh23xx error message seems to be from the wh23xx driver. I'd understand it in a way that there seem to be inconsistencies/errors in the stations hardware memory.

Günther Wrana

unread,
May 20, 2025, 3:04:04 PM5/20/25
to weewx-user
Hello weewx helpers.

 Is it possible to make this database still functional?
Thanks for your help and have a nice day. 
Günther 

Hallo ihr weewx Helfer.

Ist es möglich mit diese Datenbank noch funktionsfähig zu machen?
Ich danke für die Hilfe und noch einen schönen Tag.

Günther


Mai 20 20:55:21 32gb weewxd[1847]: ERROR weewx.manager: Unable to add record 2025-05-20 20:55:00 CEST (1747767300) to database 'weewx.sdb': attempt to write a readonly database
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: read_record: write: 02 02 04 04 (len=4)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: read_record: buf: 01 3b 04 4a 01 02 7c 02 02 2d 03 01 ec 04 02 2d 05 02 2d 06 30 07 41 08 26 bd 09 26 9e 0a 00 2d 0b 00 0a 0c 00 0e 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 78 13 00 00 (len=61)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: read_record: record_size: 74
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: read_record: buf: 01 18 01 86 14 00 00 69 69 15 00 00 00 00 16 00 00 17 00 6c 04 4a 01 02 7c 02 09 26 9e 0a 00 2d 0b 00 0a 0c 00 0e 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 78 13 00 00 (len=61)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: read_record: rbuf: 01 02 7c 02 02 2d 03 01 ec 04 02 2d 05 02 2d 06 30 07 41 08 26 bd 09 26 9e 0a 00 2d 0b 00 0a 0c 00 0e 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 78 13 00 00 01 86 14 00 00 69 69 15 00 00 00 00 16 00 00 17 00 (len=74) chksum_pkt=6c chksum=0x6c
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: raw data: [1, 2, 124, 2, 2, 45, 3, 1, 236, 4, 2, 45, 5, 2, 45, 6, 48, 7, 65, 8, 38, 189, 9, 38, 158, 10, 0, 45, 11, 0, 10, 12, 0, 14, 14, 0, 0, 0, 0, 16, 0, 0, 0, 0, 17, 0, 0, 0, 0, 18, 0, 0, 0, 120, 19, 0, 0, 1, 134, 20, 0, 0, 105, 105, 21, 0, 0, 0, 0, 22, 0, 0, 23, 0]
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: in_temp: {'value': 23.6} (0x01 0x01)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: out_temp: {'value': 15.700000000000003} (0x02 0x02)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: dewpoint: {'value': 9.200000000000003} (0x03 0x03)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: windchill: {'value': 15.700000000000003} (0x04 0x04)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: heatindex: {'value': 15.700000000000003} (0x05 0x05)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: in_humidity: {'value': 48} (0x06 0x06)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: out_humidity: {'value': 65} (0x07 0x07)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: abs_baro: {'value': 991.7} (0x08 0x08)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rel_baro: {'value': 988.6} (0x09 0x09)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: wind_dir: {'value': 45} (0x0a 0x0a)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: wind_speed: {'value': 1.0} (0x0b 0x0b)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: gust_speed: {'value': 1.4} (0x0c 0x0c)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_day: {'value': 0.0} (0x10 0x10)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_week: {'value': 0.0} (0x11 0x11)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_month: {'value': 12.0} (0x12 0x12)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_year: {'value': 39.0} (0x13 0x13)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: rain_totals: {'value': 2698.5} (0x14 0x14)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: light: {'value': 0.0} (0x15 0x15)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: uv: {'value': 0} (0x16 0x16)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: uvi: {'value': 0} (0x17 0x17)
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: decoded data: {'in_temp': {'value': 23.6}, 'out_temp': {'value': 15.700000000000003}, 'dewpoint': {'value': 9.200000000000003}, 'windchill': {'value': 15.700000000000003}, 'heatindex': {'value': 15.700000000000003}, 'in_humidity': {'value': 48}, 'out_humidity': {'value': 65}, 'abs_baro': {'value': 991.7}, 'rel_baro': {'value': 988.6}, 'wind_dir': {'value': 45}, 'wind_speed': {'value': 1.0}, 'gust_speed': {'value': 1.4}, 'rain_rate': {'value': 0.0}, 'rain_day': {'value': 0.0}, 'rain_week': {'value': 0.0}, 'rain_month': {'value': 12.0}, 'rain_year': {'value': 39.0}, 'rain_totals': {'value': 2698.5}, 'light': {'value': 0.0}, 'uv': {'value': 0}, 'uvi': {'value': 0}}
Mai 20 20:55:21 32gb weewxd.py[1847]: wh23xx: packet: {'dateTime': 1747767321, 'usUnits': 17, 'windDir': 45, 'windSpeed': 1.0, 'windGust': 1.4, 'inHumidity': 48, 'outHumidity': 65, 'inTemp': 23.6, 'outTemp': 15.700000000000003, 'pressure': 991.7, 'luminosity': 0.0, 'uv_raw': 0, 'UV': 0, 'rain': 0.0, 'radiation': 0.0}
Mai 20 20:55:26 32gb weewxd[1847]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 4.56 seconds
Mai 20 20:55:27 32gb weewxd[1847]: INFO weewx.imagegenerator: Generated 13 images for report SeasonsReport in 1.29 seconds
Mai 20 20:55:27 32gb weewxd[1847]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Mai 20 20:55:33 32gb weewxd[1847]: ERROR weewx.restx: StationRegistry: Failed to publish record 2025-05-20 20:55:00 CEST (1747767300): HTTP Error 429: TOO MANY REQUESTS
Mai 20 20:55:36 32gb weewxd.py[1847]: wh23xx: read_record: write: 02 02 04 04 (len=4)
Mai 20 20:55:36 32gb weewxd.py[1847]: wh23xx: read_record: buf: 01 35 02 2d 03 01 ec 04 02 2d 05 02 2d 06 30 07 41 08 26 bd 09 26 9e 0a 00 2d 0b 00 0a 0c 00 0e 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 78 13 00 00 00 00 78 13 00 00 (len=61)
Mai 20 20:55:36 32gb weewxd.py[1847]: wh23xx: get_current: failed attempt 1 of 5: read_record: missing READ_RECORD: 0x02 != 0x04
Mai 20 20:55:46 32gb weewxd.py[1847]: wh23xx: read_record: write: 02 02 04 04 (len=4)
Mai 20 20:55:46 32gb weewxd.py[1847]: wh23xx: read_record: buf: 01 12 01 86 14 00 00 69 69 15 00 00 00 00 16 00 00 17 00 6c 09 26 9e 0a 00 2d 0b 00 0a 0c 00 0e 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 78 13 00 00 00 00 78 13 00 00 (len=61)
Mai 20 20:55:46 32gb weewxd.py[1847]: wh23xx: get_current: failed attempt 2 of 5: read_record: missing READ_RECORD: 0x01 != 0x04

michael.k...@gmx.at

unread,
May 20, 2025, 3:36:09 PM5/20/25
to weewx-user
The database is readonly, you probably net to set the owner/permissions for the database file an may be the containing folder.

Hast du die Datenbank manuell bearbeitet/kopiert? Du musst jetzt Eigentümer/Rechte für das Datenbankfile und und möglicherweise den Ordner, in dem es liegt, richtig setzen. Der user, unter dem das weewx Service läuft, hat im moment nicht die notwendigen Rechte. Kaputt ist, so wie sich das im Moment darstellt, erst mal noch nix.

Günther Wrana

unread,
May 23, 2025, 5:25:39 AM5/23/25
to weewx-user
Danke für die Hilfe es funktioniert wieder.
Eine Frage noch da mein Raspberry ständig die Speicherkarte beleidigt.
Ich dann die Karte erneuern muss oder nur das Backup draufspielen muss.
Wollte ich fragen welche Erfahrungen Ihr hier mit weewx und Raspberry oder einem anderen Gerät zur installation von weewx habt.
Genau so wollte ich fragen welche Wetterstation würdet Ihr mir empfehlen wenn ich mir eine neue kaufen sollte.

Danke sehr und noch einen schönen Tag.


Thanks for the help, it's working again.
One more question, since my Raspberry keeps insulting the memory card.
Do I need to replace the card or just copy the backup to it?
I wanted to ask what your experience is with weewx and Raspberry or another device for installing weewx.
I also wanted to ask which weather station you would recommend if I were to buy a new one.

Thank you very much and have a nice day.

michael.k...@gmx.at

unread,
May 23, 2025, 3:31:23 PM5/23/25
to weewx-user
Die Karte wirst du wohl ersetzten müssen.

Ich habe auch ständig Probleme mit RaspberryPis gehabt und deren Speichermedien: SD-Karten, USB-Sticks, SSDs über USB, alle sind mir eingegangen, teilweise nach weniger als einem Jahr, wobei die externen SSDs noch am längsten hielten und nicht physikalisch zerstört waren, im Gegensatz zu den SD-Karten und USB Sticks. Ich habe mich dann von den RasPis losgesagt und mir eine ZOTAC ZBOX CI337 NANO mit n100 Prozessor gekauft, dazu eine Datacenter grade SSD. 1 Jahr ohne Probleme, aber wer weiß, in 10 Jahren frag mich noch mal :) Wie auch immer, das Ding ist bei nicht mal doppelten Energieverbrauch locker 10x Leistungsfähiger als ein RPi4 und man kann noch alles mögliche andere gleichzeitig drauf laufen lassen und als HTPC taugt das Gerät auch gar nicht so schlecht..
Bei der Stationshardware bin ich bei Ecowitt gelandet, an einen GW3000 kann man Modular so vieles an Sensoren hängen, da bleiben wenig Wünsche offen.

You will probably have to replace the memory card.

I also had constant problems with RaspberryPis and their storage media: SD cards, USB sticks, SSDs via USB, all of them died, sometimes after less than a year, whereby the external SSDs lasted the longest and were not physically destroyed, in contrast to the SD cards and USB sticks. I then got rid of the RasPis and bought a ZOTAC ZBOX CI337 NANO with n100 processor, plus a datacenter grade SSD. 1 year without problems, but who knows. Ask me again in 10 years :) Anyway, the thing is easily 10x more powerful than an RPi4 with not even twice the energy consumption and you can run all kinds of other things on it at the same time and as an HTPC the device is not bad at all.
For the station hardware I ended up with Ecowitt, you can attach so many sensors to a GW3000 modular, there are few wishes left unfulfilled.

Reply all
Reply to author
Forward
0 new messages