Weewx und Renkforce WH2315

483 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 AMMar 31
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 AMMar 31
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 AMMar 31
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 AMApr 1
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 PMApr 1
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 PMApr 4
to weewx...@googlegroups.com
Günther?

Günther Wrana

unread,
Apr 6, 2024, 1:16:47 AMApr 6
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 AMApr 6
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 AMApr 6
to weewx...@googlegroups.com
I was just going to point that out!

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




Reply all
Reply to author
Forward
0 new messages