weewx-wh23xx - Weewx breaks starting/running after upgrade from 3.9.2 to 4.0

909 views
Skip to first unread message

Jever Hägen

unread,
May 1, 2020, 11:45:01 AM5/1/20
to weewx-user
Hi out there.

The machine is a wandboard-quad running pure Debian9 connected over USB with a froggit WH4000 station.
It saves all weather data into a mariadb on a central server, transfers all the webdata to a website via sFTP and gives data to several services, also saves the logdata with rsyslog to the central server..

After upgrading weewx didn't start up again.
I figured out, that the import of 'log_traceback' in the driver written by Mathew Wall is the reason.
I was very pleased to have that code available, thx to Mathew.

As I'm not handy with python, I ask her for getting help with getting the looging content being reduced again.

May  1 12:42:07 wandboard-quad systemd[1]: Reloading.
May  1 12:42:07 wandboard-quad systemd[1]: Starting LSB: weewx weather system...
May  1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Initializing weewx version 4.0.0
May  1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Using Python 2.7.13 (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
May  1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Platform Linux-4.9.0-12-armmp-armv7l-with-debian-9.12
May  1 12:42:08 wandboard-quad weewx[12910] INFO __main__: Locale is 'de_DE.UTF-8'
May  1 12:42:08 wandboard-quad weewx[12910] INFO __main__: PID file is /var/run/weewx.pid
May  1 12:42:08 wandboard-quad weewx[12899]: Starting weewx weather system: weewx.
May  1 12:42:08 wandboard-quad systemd[1]: Started LSB: weewx weather system.
May  1 12:42:08 wandboard-quad weewx[12914] INFO __main__: Using configuration file /etc/weewx/weewx.conf
May  1 12:42:08 wandboard-quad weewx[12914] INFO weewx.engine: Loading station type WH23xx (user.wh23xx)
May  1 12:42:08 wandboard-quad weewx[12914] CRITICAL __main__: Caught unrecoverable exception:
May  1 12:42:08 wandboard-quad weewx[12914] CRITICAL __main__:     ****  cannot import name log_traceback
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****  Traceback (most recent call last):
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 69, in __init__
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****      self.setupStation(config_dict)
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****      __import__(driver)
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****    File "/usr/share/weewx/user/wh23xx.py", line 255, in <module>
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****      from weeutil.weeutil import timestamp_to_string, log_traceback
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****  ImportError: cannot import name log_traceback
May  1 12:42:09 wandboard-quad weewx[12914] CRITICAL __main__:     ****  Exiting.
May  1 12:42:09 wandboard-quad systemd[1]: Reloading.


So I changed the code as you can see below and it works again.
But now the syslog is flooded with useless content


--- wh23xx.py   2017-01-29 18:22:30.000000000 +0100
+++ /usr/share/weewx/user/wh23xx.py     2020-05-01 14:50:38.367750070 +0200
@@ -252,7 +252,8 @@
 import usb

 import weewx.drivers
-from weeutil.weeutil import timestamp_to_string, log_traceback
+from weeutil.weeutil import timestamp_to_string
+from weeutil.logger import log_traceback
 from weewx.wxformulas import calculate_rain

 DRIVER_NAME = 'WH23xx'
@@ -425,7 +426,7 @@
                         yield packet
                 except IndexError, e:
                     logerr("decode failed: %s (%s)" % (e, _fmt(raw)))
-                    log_traceback(loglevel=syslog.LOG_DEBUG)
+                    log_traceback(loglevel=syslog.LOG_INFO)
             time.sleep(self._poll_interval)

     def _get_current(self):



Content of the logfile:

May  1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: write: 02 02 04 04 (len=4)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: buf: 01 3b 04 4a 01 02 7c 02 02 28 03 01 b2 04 02 28 05 02 28 06 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 (len=61)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: record_size: 74
May  1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: buf: 01 12 09 33 14 00 00 43 95 15 00 01 78 4a 16 02 1c 17 02 79 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 (len=61)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: read_record: rbuf: 01 02 7c 02 02 28 03 01 b2 04 02 28 05 02 28 06 2c 07 2d 08 26 74 09 26 91 0a 00 2d 0b 00 0e 0c 00 18 0e 00 00 00 00 10 00 00 00 03 11 00 00 00 8a 12 00 00 00 03 13 00 00 09 33 14 00 00 43 95 15 00 01 78 4a 16 02 1c 17 02 (len=74) chksum_pkt=79 chksum=0x79
May  1 17:38:43 wandboard-quad weewxd: wh23xx: raw data: [1, 2, 124, 2, 2, 40, 3, 1, 178, 4, 2, 40, 5, 2, 40, 6, 44, 7, 45, 8, 38, 116, 9, 38, 145, 10, 0, 45, 11, 0, 14, 12, 0, 24, 14, 0, 0, 0, 0, 16, 0, 0, 0, 3, 17, 0, 0, 0, 138, 18, 0, 0, 0, 3, 19, 0, 0, 9, 51, 20, 0, 0, 67, 149, 21, 0, 1, 120, 74, 22, 2, 28, 23, 2]
May  1 17:38:43 wandboard-quad weewxd: wh23xx: in_temp: {'value': 23.6} (0x01 0x01)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: out_temp: {'value': 15.200000000000003} (0x02 0x02)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: dewpoint: {'value': 3.3999999999999986} (0x03 0x03)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: windchill: {'value': 15.200000000000003} (0x04 0x04)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: heatindex: {'value': 15.200000000000003} (0x05 0x05)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: in_humidity: {'value': 44} (0x06 0x06)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: out_humidity: {'value': 45} (0x07 0x07)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: abs_baro: {'value': 984.4} (0x08 0x08)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rel_baro: {'value': 987.3} (0x09 0x09)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: wind_dir: {'value': 45} (0x0a 0x0a)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: wind_speed: {'value': 1.4} (0x0b 0x0b)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: gust_speed: {'value': 2.4} (0x0c 0x0c)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_day: {'value': 0.3} (0x10 0x10)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_week: {'value': 13.8} (0x11 0x11)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_month: {'value': 0.3} (0x12 0x12)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_year: {'value': 235.5} (0x13 0x13)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: rain_totals: {'value': 1730.1} (0x14 0x14)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: light: {'value': 9633.0} (0x15 0x15)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: uv: {'value': 540} (0x16 0x16)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: uvi: {'value': 2} (0x17 0x17)
May  1 17:38:43 wandboard-quad weewxd: wh23xx: decoded data: {'wind_speed': {'value': 1.4}, 'gust_speed': {'value': 2.4}, 'rain_totals': {'value': 1730.1}, 'in_temp': {'value': 23.6}, 'dewpoint': {'value': 3.3999999999999986}, 'rain_month': {'value': 0.3}, 'out_humidity': {'value': 45}, 'light': {'value': 9633.0}, 'rain_rate': {'value': 0.0}, 'heatindex': {'value': 15.200000000000003}, 'in_humidity': {'value': 44}, 'rain_day': {'value': 0.3}, 'out_temp': {'value': 15.200000000000003}, 'rel_baro': {'value': 987.3}, 'uv': {'value': 540}, 'uvi': {'value': 2}, 'rain_year': {'value': 235.5}, 'rain_week': {'value': 13.8}, 'abs_baro': {'value': 984.4}, 'wind_dir': {'value': 45}, 'windchill': {'value': 15.200000000000003}}
May  1 17:38:43 wandboard-quad weewxd: wh23xx: packet: {'uv_raw': 540, 'pressure': 984.4, 'outHumidity': 45, 'luminosity': 9633.0, 'UV': 2, 'radiation': 76.1007, 'rain': 0.0, 'dateTime': 1588347523, 'windDir': 45, 'outTemp': 15.200000000000003, 'windSpeed': 1.4, 'inHumidity': 44, 'inTemp': 23.6, 'windGust': 2.4, 'usUnits': 17}
Message has been deleted

Tom Keffer

unread,
May 1, 2020, 5:54:16 PM5/1/20
to weewx-user
It looks like the wh23xx driver has not been ported to Python 3 and weewx V4 (it's not actually part of weewx).

On Fri, May 1, 2020 at 9:57 AM Богдан Пилюгин <user...@gmail.com> wrote:
I had the same problem today, when weewx updated to 4. The station is WH2310. I made a little analyze of problem and found that import of log_traceback in the ws23xx driver no more valid, because of changings in weewx.
Try to replace
the string in the file wh23xx.py: 
from weeutil.weeutil import timestamp_to_string, log_traceback

to:
from weeutil.weeutil import timestamp_to_string
from weeutil.log log_traceback

This is solved my problem. 
I made pull request to the sources of this driver, hope that it will be accepted.

--
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/2e71df79-aa5c-40be-9d91-0231c192d70e%40googlegroups.com.

Bogdan

unread,
May 2, 2020, 4:01:26 AM5/2/20
to weewx-user
As far as related to the log files flood, i replaced by the stub the debug messages output routine in the driver. As a temporary solution. 
def logdbg(msg):
   
# logmsg(syslog.LOG_DEBUG, msg)
   
pass
In addition to this, i used weewx solution for moving all hardloaded directories to the RAM https://github.com/weewx/weewx/wiki/Minimize-writes-on-SD-cards

Jever Hägen

unread,
May 2, 2020, 8:30:03 AM5/2/20
to weewx-user
Hi Tom,

yes I know, but wouldn't it be possible for you or some of the guys out there to integrate the driver into weewx v4?

Am Freitag, 1. Mai 2020 23:54:16 UTC+2 schrieb Tom Keffer:
It looks like the wh23xx driver has not been ported to Python 3 and weewx V4 (it's not actually part of weewx).

On Fri, May 1, 2020 at 9:57 AM Богдан Пилюгин <user...@gmail.com> wrote:
I had the same problem today, when weewx updated to 4. The station is WH2310. I made a little analyze of problem and found that import of log_traceback in the ws23xx driver no more valid, because of changings in weewx.
Try to replace
the string in the file wh23xx.py: 
from weeutil.weeutil import timestamp_to_string, log_traceback

to:
from weeutil.weeutil import timestamp_to_string
from weeutil.log log_traceback

This is solved my problem. 
I made pull request to the sources of this driver, hope that it will be accepted.

--
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...@googlegroups.com.

Tom Keffer

unread,
May 2, 2020, 10:01:39 AM5/2/20
to weewx-user
The weewx usage map shows 26 installations (out of 1471 registered stations), or less than 2%. That's not enough usage to justify the work. Get your friends to use it!

Still, I'll see what I can do...

-tk

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/e19dd0d2-f97f-4a3a-a7a9-d14b020b1dab%40googlegroups.com.

Jever Hägen

unread,
May 2, 2020, 10:29:13 AM5/2/20
to weewx-user
Thanks for thinking about of doing that work.

yes, there are not very much wh23xx stations registered beside mine.
But overall they are on rank 9 ;-)
1 Vantage 537
2 FineOffsetUSB 274
3 AcuRite 147
4 Interceptor 87
5 TE923 67
6 WMR100 40
7 SDR 33
8 WMR200 29
9 WH23xx 26
10 WS23xx 24
11 WS28xx 24
12 netatmo 17
13 Ultimeter 15
14 WeatherFlowUDP 14
15 WMR300 14
16 FileParse 11
17 Simulator 11

Am Samstag, 2. Mai 2020 16:01:39 UTC+2 schrieb Tom Keffer:
The weewx usage map shows 26 installations (out of 1471 registered stations), or less than 2%. That's not enough usage to justify the work. Get your friends to use it!

Still, I'll see what I can do...

-tk

On Sat, May 2, 2020 at 5:30 AM Jever Hägen <jurgen...@gmail.com> wrote:
Hi Tom,

yes I know, but wouldn't it be possible for you or some of the guys out there to integrate the driver into weewx v4?

Am Freitag, 1. Mai 2020 23:54:16 UTC+2 schrieb Tom Keffer:
It looks like the wh23xx driver has not been ported to Python 3 and weewx V4 (it's not actually part of weewx).

On Fri, May 1, 2020 at 9:57 AM Богдан Пилюгин <user...@gmail.com> wrote:
I had the same problem today, when weewx updated to 4. The station is WH2310. I made a little analyze of problem and found that import of log_traceback in the ws23xx driver no more valid, because of changings in weewx.
Try to replace
the string in the file wh23xx.py: 
from weeutil.weeutil import timestamp_to_string, log_traceback

to:
from weeutil.weeutil import timestamp_to_string
from weeutil.log log_traceback

This is solved my problem. 
I made pull request to the sources of this driver, hope that it will be accepted.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2e71df79-aa5c-40be-9d91-0231c192d70e%40googlegroups.com.

--
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...@googlegroups.com.

Tom Keffer

unread,
May 2, 2020, 11:30:49 AM5/2/20
to weewx-user
Believe me, I'm mighty tempted to trim the list of supported weather stations!

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/7a79fd32-daf7-4965-9af4-cb5b9160d2b4%40googlegroups.com.

Pete Geenhuizen

unread,
May 2, 2020, 11:42:36 AM5/2/20
to weewx...@googlegroups.com

OK so now I'm a little confused, is/will V4 support WH23xx?  I'm using it now and if it won't work under V4 then I should forgo my planned upgrade to V4 right?

To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDxnKzss%2BsgcJeoFasbaLkOjB8mi5VqEA4%3DFp0ubbP%3DWw%40mail.gmail.com.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-- 
Unencumbered by the thought process.  
 -- Click and Clack the Tappet brothers 

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Tom Keffer

unread,
May 2, 2020, 11:47:47 AM5/2/20
to weewx-user
wh23xx is not a supported weather station under WeeWX V3 or V4. No plans to change that. 

However, I will see what I can do about getting the wh23xx 3rd party extension updated.

-tk

Pete Geenhuizen

unread,
May 2, 2020, 12:17:06 PM5/2/20
to weewx...@googlegroups.com, Tom Keffer
Oops my bad i got confused by the similar driver name, I'm using the wx23xx driver which is working just fine under V3 so will it work in V4?


On 5/2/20 11:47 AM, Tom Keffer wrote:
wh23xx is not a supported weather station under WeeWX V3 or V4. No plans to change that. 

However, I will see what I can do about getting the wh23xx 3rd party extension updated.

-tk

On Sat, May 2, 2020 at 8:42 AM Pete Geenhuizen <pe...@geenhuizen.net> wrote:
--
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.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Tom Keffer

unread,
May 2, 2020, 1:37:13 PM5/2/20
to weewx-user
It should. I'm not sure how thoroughly it as been tested under Python 3.

mwall

unread,
May 2, 2020, 2:27:49 PM5/2/20
to weewx-user
On Saturday, May 2, 2020 at 10:01:39 AM UTC-4, Tom Keffer wrote:
The weewx usage map shows 26 installations (out of 1471 registered stations), or less than 2%. That's not enough usage to justify the work. Get your friends to use it!

Still, I'll see what I can do...


tom,

i'll take care of it - its one of my drivers.  but its over 50F for the first time in weeks, so it will have to wait until after sunset US eastern time :)

Pete Geenhuizen

unread,
May 2, 2020, 2:45:38 PM5/2/20
to weewx...@googlegroups.com, Tom Keffer

OK I guess I'll have to give it a shot and hope like hell that it works.

Thanks



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

mwall

unread,
May 2, 2020, 11:21:54 PM5/2/20
to weewx-user
sorry to reply to myself, but a little update: the certs expired on the vpn on which my wh23xx is running, so i won't be able to test with the hardware until i get on site.  luckily that *should* be tuesday, not months from now.

Jever Hägen

unread,
May 4, 2020, 1:03:49 AM5/4/20
to weewx-user
Hello Mathew,

that are very good news. Thanks in advance.

Günther Wrana

unread,
May 13, 2020, 1:16:17 AM5/13/20
to weewx-user
Hello I also use the driver and just wanted to ask before I update the version whether the driver also works with version 4?
Because I read here that there is a problem.

Thanks Günther

Hallo ich benutze den Treiber auch und wollte nur nachfragen bevor ich die Version update ob der Treiber bei der Version 4 auch funktioniert?
Weil ich hier gelesen habe das es Problem gibt.

Danke Günther

Bogdan

unread,
May 13, 2020, 2:51:04 AM5/13/20
to weewx-user


среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
Generally the driver is working on weewx 4. It is only made two small changing in it. 

First, it is fixed import of 'log_traceback':
from weeutil.weeutil import timestamp_to_string
from weeutil.log import log_traceback

Second, is for prevent spam to syslog, simply stubed debug log procedure:
def logdbg(msg):
   
# logmsg(syslog.LOG_DEBUG, msg)
   
pass

With that two changing the driver for me is works normally.
Seems it is possible to treat it as a temporarily solution. 

Bogdan

unread,
May 13, 2020, 2:54:36 AM5/13/20
to weewx-user


среда, 13 мая 2020 г., 7:16:17 UTC+2 пользователь Günther Wrana написал:
Hello I also use the driver and just wanted to ask before I update the version whether the driver also works with version 4?
wh23xx.zip

Bogdan

unread,
May 13, 2020, 3:02:24 AM5/13/20
to weewx-user


среда, 13 мая 2020 г., 8:54:36 UTC+2 пользователь Bogdan написал:
The original driver will not work.  

Tom Keffer

unread,
May 13, 2020, 7:55:18 AM5/13/20
to weewx-user
Thanks.

Just to be clear: these changes will allow the wh23xx driver to work with WeeWX V4, under Python 2. It is still not ported to Python 3.

We will have to wait and hear from Matthew for that.

-tk

--
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.

Jever Hägen

unread,
Jun 6, 2020, 6:22:35 AM6/6/20
to weewx...@googlegroups.com

Hello,

 

Please apologize my asking if you are on the way updating wh23xx, your last note about that was a month ago?

If you need information or testing on wh23xx don't hesitate to ask.

 

 

Greetings and best wishes

Jürgen

--
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.

Günther Wrana

unread,
May 6, 2021, 3:55:51 AM5/6/21
to weewx-user
Hi Guys!
 
I just wanted to ask if there are already drivers that work under Python3 for small groups of users of this weather station?
My weather station under Python 2 with weewx 3.9.2 works and everything is fine. I would only be interested in whether there is someone who tries to get this data from the weather station under weewx 4.5.1.
Or I have to come to terms with the fact that version 3.9.2 will remain. 

 I thank you and wish you a nice day.
Günther


Hallo Leute!

Ich wollte nur einmal nachfragen ob es schon Treiber die unter Python3 funktionieren für kleine Gruppe der User dieser Wetterstation gibt?
Meine Wetterstation unter Python 2 mit weewx  3.9.2 funktioniert und alles ist gut. 
Nur würde mich interessieren ob es jemanden gibt der es versucht diese Daten auch unter weewx 4.5.1 aus Wetterstation zu holen.
Oder ich mich damit abfinden muss das es bei der Version 3.9.2 bleiben wird.

Ich danke euch und wünsch euch noch einen schönen Tag.
Günther 

EdwinZ

unread,
Nov 4, 2021, 1:20:56 PM11/4/21
to weewx-user
Not sure if this helps you, but I ported the Python 2 wh23xx module to Python 3: https://github.com/EdwinGH/weewx-wh23xx
I'm using it on RPi Model 3 with Renkforce WH2315 weather station.

Edwin

Günther Wrana

unread,
Dec 1, 2021, 2:14:53 AM12/1/21
to weewx-user
Hi there, So you've updated weewx to version 4 and you're running the program? Then I should try that with myself, too. Until now I didn't dare to do it because I didn't know if the whole thing would still work. Well then, thank you. Greetings Günther Here is my website where the whole thing is visible. www.guentherwrana.ddns.net/weewx


Hallo,

du hast also weewx auf die Version 4 upgedatet und das Programm läuft bei dir? Dann sollte ich das ganz woll auch bei mir versuchen. Den bis jetzt habe ich mir das nicht getraut weil ich nicht wusste ob dann das ganze noch funktioiert.

Na dann danke schön.
Grüße Günther

Hier meine Webseite wo das ganze sichtbar ist. www.guentherwrana.ddns.net/weewx

EdwinZ

unread,
Dec 5, 2021, 11:30:41 AM12/5/21
to weewx-user
Hi Guenther, indeed I'm running the latest WeeWX (4.5.1) with Python 3 (3.7) and my wh23xx replacement on my system. Note that I made some minor documentation updates in my README file, as I had to re-install my Raspberry Pi (corrupt SD card) which is connected to the weather station.

Günther Wrana

unread,
Dec 7, 2021, 6:00:35 AM12/7/21
to weewx-user
Hello Edwin, since I have installed weewx on my Raspberry according to this system up to now WeeWX: Installation using setup.py but now I would do this installation WeeWX: Installation on Debian-based systems. Can I then simply copy my previous database to this path / var / lib / weewx / after installation or is that a problem? Thank you Günther


Hallo Edwin, da ich bis jetzt weewx auf meinem Raspberry nach diesem System installiert habe WeeWX: Installation using setup.py ich nun aber diese Installation durchführen würde WeeWX: Installation on Debian-based systems.
Kann ich dann meine bisherige Datenbank einfach nach der Installation auf diesen Pfad /var/lib/weewx/ kopieren oder ist das ein Problem?
Danke Günther 

Günther Wrana

unread,
Dec 7, 2021, 6:11:00 AM12/7/21
to weewx-user
Or do I just have to update my Raspberry for weewx?
Thank you Günther

Oder muss ich auf meinem Raspberry einfach nur ein Update für weewx durchführen?

Danke Günther

Rainer Lang

unread,
Dec 7, 2021, 7:50:56 AM12/7/21
to weewx...@googlegroups.com
If the installation is correctly done, just copying your weewx.sdb to the new folder (/var/lib/weewx) will do.
The corresponding entries have to be in weewx.conf in the [DatabaseTypes] section:
[DatabaseTypes]

    # Defaults for SQLite databases
    [[SQLite]]
        driver = weedb.sqlite
        # Directory in which the database files are located
        SQLITE_ROOT = /var/lib/weewx

Wenn die Installation nach Debian/Raspi Stil erfolgreich war, kann man getrost die weewx.sdb ins
/var/lib/weewx Verzeichnis kopieren - muss eben in weewx.conf in der [DatabaseTypes] Sektion
als SQLITE_ROOT so definiert sein

Message has been deleted
Message has been deleted

Günther Wrana

unread,
Mar 27, 2022, 9:02:10 AM3/27/22
to weewx-user
Hi there, now weewx 4.7.0 also works with my Renkforce Wh2315 on my Raspberry. Thank you very much

Hallo,

nun funktioniert auch weewx 4.7.0 mit meiner Renkforce Wh2315 auf meinem Raspberry.

Danke sehr

Günther Wrana

unread,
Nov 2, 2022, 5:29:20 PM11/2/22
to weewx-user
Hi there, 

Why doesn't my driver work in version 4.9.1-1? I have listed the syslog can you help me?
Thank you

Nov  2 21:55:50 wetterpi systemd[1]: weewx.service: Succeeded.
Nov  2 21:55:50 wetterpi systemd[1]: Stopped LSB: weewx weather system.
Nov  2 21:55:58 wetterpi systemd[1]: weewx.service: Found left-over process 29729 (python3) in control group while starting unit. Ignoring.
Nov  2 21:55:58 wetterpi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Nov  2 21:55:58 wetterpi systemd[1]: Starting LSB: weewx weather system...
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Initializing weewx version 4.9.1
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Using Python 3.7.3 (default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Located at /usr/bin/python3
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Platform Linux-5.10.103-v7+-armv7l-with-debian-10.11
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Locale is 'de_AT.UTF-8'
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: Debug is 0
Nov  2 21:55:58 wetterpi weewx[3005] INFO __main__: PID file is /var/run/weewx.pid
Nov  2 21:55:58 wetterpi weewx[3009] INFO weewx.engine: Loading station type WH23xx (user.wh23xx)
Nov  2 21:55:58 wetterpi /weewxd: wh23xx: driver version is 0.14
Nov  2 21:55:58 wetterpi /weewxd: wh23xx: usb info: pyusb_version=1.0.2
Nov  2 21:55:58 wetterpi /weewxd: wh23xx: poll interval is 15
Nov  2 21:55:59 wetterpi weewx[2995]: Starting weewx weather system: weewx.
Nov  2 21:55:59 wetterpi systemd[1]: Started LSB: weewx weather system.
Nov  2 21:55:59 wetterpi /weewxd: wh23xx: Found device on USB bus= device=
Nov  2 21:55:59 wetterpi kernel: [19111964.592922] usb 1-1.5: reset full-speed USB device number 12 using dwc_otg
Nov  2 21:55:59 wetterpi kernel: [19111964.728144] hid-generic 0003:10C4:8468.0028: hiddev96,hidraw0: USB HID v1.01 Device [SLAB HIDtoSPI Slave] on usb-3f980000.usb-1.5/input0
Nov  2 21:55:59 wetterpi /weewxd: wh23xx: Unable to claim USB interface 0: [Errno 16] Resource busy
Nov  2 21:55:59 wetterpi weewx[3009] ERROR weewx.engine: Import of driver failed: [Errno 16] Resource busy (<class 'weewx.WeeWxIOError'>)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 591, in open
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      self.devh.claimInterface(self.iface)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/legacy.py", line 230, in claimInterface
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      util.claim_interface(self.dev, interface)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/util.py", line 205, in claim_interface
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      device._ctx.managed_claim_interface(device, interface)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 102, in wrapper
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      return f(self, *args, **kwargs)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/core.py", line 167, in managed_claim_interface
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      self.backend.claim_interface(self.handle, i)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 811, in claim_interface
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      _check(self.lib.libusb_claim_interface(dev_handle.handle, intf))
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in _check
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      raise USBError(_strerror(ret), ret, _libusb_errno[ret])
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  usb.core.USBError: [Errno 16] Resource busy
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 266, in loader
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      return WH23xxDriver(**config_dict[DRIVER_NAME])
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 411, in __init__
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      self._station.open()
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 596, in open
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError(e)
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: [Errno 16] Resource busy
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL __main__: Unable to load driver: [Errno 16] Resource busy
Nov  2 21:55:59 wetterpi weewx[3009] CRITICAL __main__:     ****  Exiting...
Nov  2 21:56:13 wetterpi /weewxd: wh23xx: get_current: failed attempt 1 of 5: [Errno 5] Input/Output Error
Nov  2 21:56:13 wetterpi kernel: [19111979.073722] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  2 21:56:23 wetterpi /weewxd: wh23xx: get_current: failed attempt 2 of 5: [Errno 5] Input/Output Error
Nov  2 21:56:23 wetterpi kernel: [19111989.084816] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  2 21:56:33 wetterpi /weewxd: wh23xx: get_current: failed attempt 3 of 5: [Errno 5] Input/Output Error
Nov  2 21:56:33 wetterpi kernel: [19111999.095912] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  2 21:56:43 wetterpi kernel: [19112009.107022] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  2 21:56:43 wetterpi /weewxd: wh23xx: get_current: failed attempt 4 of 5: [Errno 5] Input/Output Error
Nov  2 21:56:46 wetterpi systemd[1]: Started Session 5851 of user pi.
Nov  2 21:56:53 wetterpi /weewxd: wh23xx: get_current: failed attempt 5 of 5: [Errno 5] Input/Output Error
Nov  2 21:56:53 wetterpi kernel: [19112019.118117] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  2 21:57:03 wetterpi /weewxd: wh23xx: read failed: max retries (5) exceeded
Nov  2 21:57:03 wetterpi weewx[29729] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov  2 21:57:03 wetterpi weewx[29729] INFO weewx.engine: Shutting down StdReport thread
Nov  2 21:57:03 wetterpi /weewxd: wh23xx: release interface failed: [Errno None] Other error
Nov  2 21:57:03 wetterpi weewx[29729] CRITICAL __main__: Caught WeeWxIOError: read failed: max retries (5) exceeded
Nov  2 21:57:03 wetterpi weewx[29729] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov  2 21:58:03 wetterpi weewx[29729] INFO __main__: retrying...
Nov  2 21:58:03 wetterpi weewx[29729] INFO weewx.engine: Loading station type WH23xx (user.wh23xx)
Nov  2 21:58:03 wetterpi /weewxd: wh23xx: driver version is 0.14
Nov  2 21:58:03 wetterpi /weewxd: wh23xx: usb info: pyusb_version=1.0.2
Nov  2 21:58:03 wetterpi /weewxd: wh23xx: poll interval is 15
Nov  2 21:58:03 wetterpi /weewxd: wh23xx: Found device on USB bus= device=
Nov  2 21:58:03 wetterpi kernel: [19112089.333124] usb 1-1.5: reset full-speed USB device number 12 using dwc_otg
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: StdConvert target unit is 0x1
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: Archive will use data binding wx_binding
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: StationRegistry: Station will be registered.
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Data for station IMATZENR2 will be posted
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: PWSweather: Posting not enabled.
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: CWOP: Posting not enabled.
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: WOW: Posting not enabled.
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.restx: AWEKAS: Data will be uploaded for user Gilli
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Nov  2 21:58:04 wetterpi weewx[29729] INFO __main__: Starting up weewx version 4.7.0
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.manager: Starting backfill of daily summaries
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.manager: Daily summaries up to date
Nov  2 21:58:04 wetterpi weewx[29729] INFO weewx.engine: Starting main packet loop.
Nov  2 22:00:19 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-02 22:00:00 CET (1667422800) to database 'weewx.sdb'
Nov  2 22:00:19 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-02 22:00:00 CET (1667422800) to daily summary in 'weewx.sdb'
Nov  2 22:00:21 wetterpi weewx[29729] INFO weewx.restx: StationRegistry: Published record 2022-11-02 22:00:00 CET (1667422800)
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'TypeError'>'
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Reason: 'ObservationBinder' object is not callable
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1667331923_6578603_46130.py", line 271, in respond
Nov  2 22:00:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  TypeError: 'ObservationBinder' object is not callable
Nov  2 22:00:24 wetterpi weewx[29729] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 3.05 seconds
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  'wind' or 'vecdir'
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      obj.start()
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_ts = gen_ts
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in gen_images
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.image_dict[timespan][plotname])
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in gen_plot
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      **option_dict)
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  2 22:00:28 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  2 22:00:28 wetterpi weewx[29729] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Nov  2 22:00:29 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Published record 2022-11-02 22:00:00 CET (1667422800)
Nov  2 22:00:43 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-02 22:00:00 CET (1667422800): Failed upload after 3 tries
Nov  2 22:01:40 wetterpi systemd[1]: session-5848.scope: Succeeded.
Nov  2 22:03:03 wetterpi systemd[1]: Started Session 5852 of user pi.

Warum funktioiert mein Treiber in der Version 4.9.1-1 nicht?
Ich habe die syslog angeführt könnt ihr mir helfen?

Danke schön

Tom Keffer

unread,
Nov 2, 2022, 5:47:09 PM11/2/22
to weewx...@googlegroups.com
It appears you have two problems.

1. I cannot be sure (because you did not use debug=1), but it looks like you have two instances of weewxd running.

2. The exception 

weewx.UnknownType: 'wind' or 'vecdir'

can happen if you run the new V4.9.1 Seasons skin using WeeWX V4.7, which appears to be what you're doing. See the log entry

Nov  2 21:58:04 wetterpi weewx[29729] INFO __main__: Starting up weewx version 4.7.0

In turn, this may be caused by problem #1.

-tk

Günther Wrana

unread,
Nov 3, 2022, 1:13:05 PM11/3/22
to weewx-user
Hello i have now activate debug=1 in weewx.conf and in the weewx.conf.dist
But I have no idea what should be different now.
So what should I do to uninstall the whole program?

pi@wetterpi:/etc/weewx$ sudo nano weewx.conf
pi@wetterpi:/etc/weewx$ sudo nano weewx.conf.dist
pi@wetterpi:/etc/weewx$ sudo /etc/init.d/weewx stop
[ ok ] Stopping weewx (via systemctl): weewx.service.
pi@wetterpi:/etc/weewx$ sudo tail -f /var/log/syslog
Nov  3 18:00:35 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  3 18:00:35 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  3 18:00:35 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  3 18:00:35 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  3 18:00:35 wetterpi weewx[29729] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  3 18:00:41 wetterpi systemd[1]: Stopping LSB: weewx weather system...
Nov  3 18:00:41 wetterpi weewx[6620]: Stopping weewx weather system: weewx not running....
Nov  3 18:00:41 wetterpi systemd[1]: weewx.service: Succeeded.
Nov  3 18:00:41 wetterpi systemd[1]: Stopped LSB: weewx weather system.
Nov  3 18:00:54 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-03 18:00:00 CET (1667494800): Failed upload after 3 tries
^C
pi@wetterpi:/etc/weewx$ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@wetterpi:/etc/weewx$ sudo tail -f /var/log/syslog
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 266, in loader
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****      return WH23xxDriver(**config_dict[DRIVER_NAME])
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 411, in __init__
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****      self._station.open()
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/user/wh23xx.py", line 596, in open
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError(e)
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: [Errno 16] Resource busy
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL __main__: Unable to load driver: [Errno 16] Resource busy
Nov  3 18:01:18 wetterpi weewx[6675] CRITICAL __main__:     ****  Exiting...
Nov  3 18:01:29 wetterpi /weewxd: wh23xx: get_current: failed attempt 1 of 5: [Errno 5] Input/Output Error
Nov  3 18:01:29 wetterpi kernel: [19184295.464327] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  3 18:01:39 wetterpi /weewxd: wh23xx: get_current: failed attempt 2 of 5: [Errno 5] Input/Output Error
Nov  3 18:01:39 wetterpi kernel: [19184305.473969] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  3 18:01:49 wetterpi /weewxd: wh23xx: get_current: failed attempt 3 of 5: [Errno 5] Input/Output Error
Nov  3 18:01:49 wetterpi kernel: [19184315.485083] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  3 18:01:59 wetterpi /weewxd: wh23xx: get_current: failed attempt 4 of 5: [Errno 5] Input/Output Error
Nov  3 18:01:59 wetterpi kernel: [19184325.496175] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  3 18:02:09 wetterpi /weewxd: wh23xx: get_current: failed attempt 5 of 5: [Errno 5] Input/Output Error
Nov  3 18:02:09 wetterpi kernel: [19184335.507264] usb 1-1.5: usbfs: process 29729 (python3) did not claim interface 0 before use
Nov  3 18:02:19 wetterpi /weewxd: wh23xx: read failed: max retries (5) exceeded
Nov  3 18:02:19 wetterpi weewx[29729] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov  3 18:02:19 wetterpi weewx[29729] INFO weewx.engine: Shutting down StdReport thread
Nov  3 18:02:19 wetterpi /weewxd: wh23xx: release interface failed: [Errno None] Other error
Nov  3 18:02:19 wetterpi weewx[29729] CRITICAL __main__: Caught WeeWxIOError: read failed: max retries (5) exceeded
Nov  3 18:02:19 wetterpi weewx[29729] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
Nov  3 18:03:20 wetterpi weewx[29729] INFO __main__: retrying...
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Loading station type WH23xx (user.wh23xx)
Nov  3 18:03:20 wetterpi /weewxd: wh23xx: driver version is 0.14
Nov  3 18:03:20 wetterpi /weewxd: wh23xx: usb info: pyusb_version=1.0.2
Nov  3 18:03:20 wetterpi /weewxd: wh23xx: poll interval is 15
Nov  3 18:03:20 wetterpi /weewxd: wh23xx: Found device on USB bus= device=
Nov  3 18:03:20 wetterpi kernel: [19184405.723437] usb 1-1.5: reset full-speed USB device number 12 using dwc_otg
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: StdConvert target unit is 0x1
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Archive will use data binding wx_binding
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Record generation will be attempted in 'hardware'
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: StationRegistry: Station will be registered.
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Data for station IMATZENR2 will be posted
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: PWSweather: Posting not enabled.
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: CWOP: Posting not enabled.
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: WOW: Posting not enabled.
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.restx: AWEKAS: Data will be uploaded for user Gilli
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Nov  3 18:03:20 wetterpi weewx[29729] INFO __main__: Starting up weewx version 4.7.0
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.manager: Starting backfill of daily summaries
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.manager: Daily summaries up to date
Nov  3 18:03:20 wetterpi weewx[29729] INFO weewx.engine: Starting main packet loop.
Nov  3 18:03:48 wetterpi rngd[357]: stats: bits received from HRNG source: 159960064
Nov  3 18:03:48 wetterpi rngd[357]: stats: bits sent to kernel pool: 159766144
Nov  3 18:03:48 wetterpi rngd[357]: stats: entropy added to kernel pool: 159766144
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2 successes: 7991
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2 failures: 7
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2(2001-10-10) Poker: 0
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2(2001-10-10) Runs: 5
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2(2001-10-10) Long run: 2
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Nov  3 18:03:48 wetterpi rngd[357]: stats: HRNG source speed: (min=272.330; avg=911.485; max=1039.173)Kibits/s
Nov  3 18:03:48 wetterpi rngd[357]: stats: FIPS tests speed: (min=5.367; avg=7.271; max=14.266)Mibits/s
Nov  3 18:03:48 wetterpi rngd[357]: stats: Lowest ready-buffers level: 2
Nov  3 18:03:48 wetterpi rngd[357]: stats: Entropy starvations: 0
Nov  3 18:03:48 wetterpi rngd[357]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
Nov  3 18:05:21 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-03 18:05:00 CET (1667495100) to database 'weewx.sdb'
Nov  3 18:05:21 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-03 18:05:00 CET (1667495100) to daily summary in 'weewx.sdb'
Nov  3 18:05:22 wetterpi weewx[29729] INFO weewx.restx: StationRegistry: Published record 2022-11-03 18:05:00 CET (1667495100)
Nov  3 18:05:22 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Published record 2022-11-03 18:05:00 CET (1667495100)
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'TypeError'>'
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Reason: 'ObservationBinder' object is not callable
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1667331923_6578603_46130.py", line 271, in respond
Nov  3 18:05:23 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  TypeError: 'ObservationBinder' object is not callable
Nov  3 18:05:25 wetterpi weewx[29729] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 3.01 seconds
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  'wind' or 'vecdir'
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      obj.start()
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_ts = gen_ts
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in gen_images
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.image_dict[timespan][plotname])
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in gen_plot
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      **option_dict)
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  3 18:05:26 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  3 18:05:26 wetterpi weewx[29729] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Nov  3 18:05:32 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-03 18:05:00 CET (1667495100): Failed upload after 3 tries
Nov  3 18:07:48 wetterpi systemd[1]: Starting Cleanup of Temporary Directories...
Nov  3 18:07:48 wetterpi systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Nov  3 18:07:48 wetterpi systemd[1]: Started Cleanup of Temporary Directories.
Nov  3 18:10:23 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-03 18:10:00 CET (1667495400) to database 'weewx.sdb'
Nov  3 18:10:23 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-03 18:10:00 CET (1667495400) to daily summary in 'weewx.sdb'
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'TypeError'>'
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Reason: 'ObservationBinder' object is not callable
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1667331923_6578603_46130.py", line 271, in respond
Nov  3 18:10:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  TypeError: 'ObservationBinder' object is not callable
Nov  3 18:10:27 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Published record 2022-11-03 18:10:00 CET (1667495400)
Nov  3 18:10:28 wetterpi weewx[29729] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 3.02 seconds
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  'wind' or 'vecdir'
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      obj.start()
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_ts = gen_ts
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in gen_images
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.image_dict[timespan][plotname])
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in gen_plot
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      **option_dict)
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  3 18:10:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  3 18:10:29 wetterpi weewx[29729] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  3 18:10:35 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-03 18:10:00 CET (1667495400): Failed upload after 3 tries

Danke für die Hilfe!

Thank you for all.

Tom Keffer

unread,
Nov 3, 2022, 4:58:32 PM11/3/22
to weewx...@googlegroups.com
We are still not seeing any debug messages, so I suspect that you may still have more than one instance of weewxd running. Kill them all with:

sudo killall weewxd

Then try starting weewxd again. Post  the log.

Günther Wrana

unread,
Nov 4, 2022, 2:30:34 PM11/4/22
to weewx-user
I don't think anything has changed with the killall command.

pi@wetterpi:/$ sudo killall weewxd
weewxd: Kein Prozess gefunden
pi@wetterpi:/$ sudo killall weewxd
weewxd: Kein Prozess gefunden
pi@wetterpi:/$ sudo /etc/init.d/weewx start

[ ok ] Starting weewx (via systemctl): weewx.service.
pi@wetterpi:/$ sudo tail -f /var/log/syslog
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in gen_images
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.image_dict[timespan][plotname])
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in gen_plot
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      **option_dict)
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  4 19:20:25 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  4 19:20:25 wetterpi weewx[29729] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  4 19:20:31 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-04 19:20:00 CET (1667586000): Failed upload after 3 tries
Nov  4 19:25:22 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-04 19:25:00 CET (1667586300) to database 'weewx.sdb'
Nov  4 19:25:22 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-04 19:25:00 CET (1667586300) to daily summary in 'weewx.sdb'
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'TypeError'>'
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Reason: 'ObservationBinder' object is not callable
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1667331923_6578603_46130.py", line 271, in respond
Nov  4 19:25:25 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  TypeError: 'ObservationBinder' object is not callable
Nov  4 19:25:26 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Published record 2022-11-04 19:25:00 CET (1667586300)
Nov  4 19:25:27 wetterpi weewx[29729] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 3.05 seconds
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  'wind' or 'vecdir'
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      obj.start()
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_ts = gen_ts
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.gen_images(self.gen_ts)
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in gen_images
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      self.image_dict[timespan][plotname])
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in gen_plot
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      **option_dict)
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****      raise weewx.UnknownType(msg)
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  weewx.UnknownType: 'wind' or 'vecdir'
Nov  4 19:25:29 wetterpi weewx[29729] ERROR weewx.reportengine:         ****  Generator terminated
Nov  4 19:25:29 wetterpi weewx[29729] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  4 19:25:34 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-04 19:25:00 CET (1667586300): Failed upload after 3 tries

I have already completely uninstalled weewx and then reinstalled it. Without success

Do I have to remove everything completely then the driver still works?

Tom Keffer

unread,
Nov 4, 2022, 3:46:56 PM11/4/22
to weewx...@googlegroups.com
You're starting up weewxd, then doing tail -f /var/log/syslog. By the time you do the "tail", you've missed the critical information about how weewxd is starting up.

Please follow the directions in Posting to weewx-user. That way, we can see the startup sequence.

vince

unread,
Nov 4, 2022, 4:15:41 PM11/4/22
to weewx-user
You can also use the -n switch to go back in the file longer.

For example to go back 500 lines:
    sudo tail -n 500 -f /var/log/syslog

Günther Wrana

unread,
Nov 5, 2022, 1:48:02 PM11/5/22
to weewx-user
Hi I have now inserted both files below.
Now you can also see what is done after the restart of weewx.

I hope you say something to me it doesn't tell anything.

I would like to thank you once again for your help.
Greetings Günther


Das ist für jenige wie mich die in Englisch eine vier hatten.

Hallo ich habe nun beide Dateien unten eingefügt.
Nun sieht man auch was getan wird nach dem Neustart von weewx.

Ich hoffe euch sagt das etwas mir sagt es nichts.

Ich bedanke mich schon jetzt wieder einmal für die Hilfe.

Grüße Günther
syslog
mylog

vince

unread,
Nov 5, 2022, 2:29:38 PM11/5/22
to weewx-user
This looks like one error - do you mean 'meter' perhaps ?   Do you have a typo in weewx.conf ?

Nov  5 18:30:09 wetterpi weewx[15807] DEBUG weewx.units: Unable to convert from Meter to foot
Nov  5 18:30:09 wetterpi weewx[15807] INFO weewx.engine: Main loop exiting. Shutting engine down.
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__: Caught unrecoverable exception:
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****  'Meter'
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****  Traceback (most recent call last):
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 154, in main
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      engine.run()
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 210, in run
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      callback(event)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/wxservices.py", line 113, in new_loop_packet
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      self.do_calculations(event.packet, self.loop_calc_dict)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/wxservices.py", line 138, in do_calculations
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      val = weewx.xtypes.get_scalar(obs_type, data_dict, self.db_manager)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/xtypes.py", line 77, in get_scalar
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      return xtype.get_scalar(obs_type, record, db_manager, **option_dict)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/wxxtypes.py", line 407, in get_scalar
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      return self.altimeter(record)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/wxxtypes.py", line 455, in altimeter
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      altitude = weewx.units.convertStd(self.altitude_vt, record['usUnits'])
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/units.py", line 1444, in convertStd
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      return StdUnitConverters[target_std_unit_system].convert(val_t)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/units.py", line 881, in convert
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      new_val_t = convert(val_t, new_unit_type)
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/units.py", line 1409, in convert
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****      conversion_func = conversionDict[val_t[1]][target_unit]
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****  KeyError: 'Meter'
Nov  5 18:30:09 wetterpi weewx[15807] CRITICAL __main__:     ****  Exiting.
Nov  5 18:30:24 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-05 18:30:00 CET (1667669400) to database 'weewx.sdb'
Nov  5 18:30:24 wetterpi weewx[29729] INFO weewx.manager: Added record 2022-11-05 18:30:00 CET (1667669400) to daily summary in 'weewx.sdb'


Günther Wrana

unread,
Nov 6, 2022, 5:13:18 AM11/6/22
to weewx-user
Hello thanks for the help!

Because in the weew.conf at altitude = 199, meter the M was capitalized everything did not work.

Only the driver I need for my weather station does not work with version 4.9.1.
Renkforce WH2315 
It works with the simulator driver.

Am I seeing this correctly or is there also a typo here?

I sent mylog and the conf.
Greetings Günther


Hallo danke für die Hilfe!

Weil in der weew.conf bei altitude = 199, meter das M groß geschrieben wurde hat alles nicht funktioniert.

Nur der Treiber den ich für meine Wetterstation benötige funktioniert mit der Version 4.9.1 nicht.
Renkforce WH2315

Mit dem Simulator Treiber funktioniert es.

Sehe ich das richtig oder liegt hier auch noch ein schreibfehler vor?

mylog und die conf habe ich mit geschickt.

Grüße Günther

mylog
weewx.conf

Günther Wrana

unread,
Nov 7, 2022, 11:31:01 AM11/7/22
to weewx-user
How is it possible when I stop weewx.
That then this is possible?

Nov  7 17:14:33 wetterpi systemd[1]: Stopping LSB: weewx weather system...
Nov  7 17:14:33 wetterpi weewx[24826]: Stopping weewx weather system: weewx not running....
Nov  7 17:14:33 wetterpi systemd[1]: weewx.service: Succeeded.
Nov  7 17:14:33 wetterpi systemd[1]: Stopped LSB: weewx weather system.

Nov  7 17:15:14 wetterpi weewx[18497] INFO weewx.manager: Added record 2022-11-07 17:15:00 CET (1667837700) to database 'weewx.sdb'
Nov  7 17:15:14 wetterpi weewx[18497] INFO weewx.manager: Added record 2022-11-07 17:15:00 CET (1667837700) to daily summary in 'weewx.sdb'
Nov  7 17:15:16 wetterpi weewx[18497] DEBUG weewx.reportengine: Running reports for latest time in the database.
Nov  7 17:15:16 wetterpi weewx[18497] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Nov  7 17:15:16 wetterpi weewx[18497] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Nov  7 17:15:16 wetterpi weewx[18497] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
Nov  7 17:15:16 wetterpi weewx[18497] DEBUG weewx.manager: Daily summary version is 4.0
Nov  7 17:15:20 wetterpi weewx[18497] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 3.45 seconds
Nov  7 17:15:20 wetterpi weewx[18497] DEBUG weewx.manager: Daily summary version is 4.0
Nov  7 17:15:22 wetterpi weewx[18497] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 2.36 seconds
Nov  7 17:15:22 wetterpi weewx[18497] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  7 17:15:22 wetterpi weewx[18497] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Nov  7 17:15:22 wetterpi weewx[18497] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Nov  7 17:15:22 wetterpi weewx[18497] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Nov  7 17:15:22 wetterpi weewx[18497] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Nov  7 17:15:22 wetterpi weewx[18497] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Nov  7 17:15:23 wetterpi weewx[29729] ERROR weewx.manager: Unable to add record 2022-11-07 17:15:00 CET (1667837700) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov  7 17:15:25 wetterpi weewx[29729] INFO weewx.restx: Wunderground-PWS: Published record 2022-11-07 17:15:00 CET (1667837700)
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with exception '<class 'TypeError'>'
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: **** Reason: 'ObservationBinder' object is not callable
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****    File "cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1667331923_6578603_46130.py", line 271, in respond
Nov  7 17:15:26 wetterpi weewx[29729] ERROR weewx.cheetahgenerator: ****  TypeError: 'ObservationBinder' object is not callable
Nov  7 17:15:27 wetterpi weewx[29729] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 3.21 seconds
Nov  7 17:15:30 wetterpi weewx[29729] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 2.72 seconds
Nov  7 17:15:30 wetterpi weewx[29729] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Nov  7 17:15:35 wetterpi weewx[29729] ERROR weewx.restx: AWEKAS: Failed to publish record 2022-11-07 17:15:00 CET (1667837700): Failed upload after 3 tries

Where can I find out how to activate the driver in Phyton3?
Or do I have to install weewx 4.7.0 again?

vince

unread,
Nov 7, 2022, 12:02:35 PM11/7/22
to weewx-user
You seem to have multiple weewx instances running.   One is process 18497, one is process 29729.

Run "ps axu | grep wee" and I suspect you will see more than one weewx running.


Günther Wrana

unread,
Nov 9, 2022, 11:39:20 AM11/9/22
to weewx-user
Hi and how can I fix this error.

root     18497  2.4  3.4  53384 32924 ?        S    Nov06 115:40 python3 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
root     29729  1.7  3.9  92136 37184 ?        Sl   Nov01 200:45 python3 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

Thank you for help!

vince

unread,
Nov 9, 2022, 12:44:59 PM11/9/22
to weewx-user

sudo kill -9 18497
sudo kill -9 29720
then check again and they should be gone
then start weewx up again
then check again and only one should be running and hopefully healthy

(the -9 there says kill it with a bigger hammer)


Alternately, if you simply reboot the pi all the processes will be stopped, but you should almost never need to reboot a pi.

vince

unread,
Nov 9, 2022, 12:46:34 PM11/9/22
to weewx-user
oops - that should of course be "29729" in my reply below.  You want to stop the process by its id.

Günther Wrana

unread,
Nov 9, 2022, 3:09:21 PM11/9/22
to weewx-user
Hello,

i have deinstalled weewx and all configurations.
Then i have weewx installed and the weewx.sdb imported.
After the have I reboot the pi.
Now it is still running.
I think this was not the right way but it was my way.

Thank you for all, the next problem comes certainly!

Günther

Günther Wrana

unread,
Jul 15, 2023, 8:47:01 AM7/15/23
to weewx-user
Hello

I can not install the driver for my Renkforce Wh2315 like this information.

https://github.com/EdwinGH/weewx-wh23xx


The whole thing worked until a few days ago. Now I can't manage to reinstall weewx on the Rasperry and then install the required driver.
I'm also sending you the syslog and shell text I wrote about installing, uninstalling and reinstalling weewx.

I hope you can help my!

Thanks Günther Wrana
Das ganze hat bis vor ein paar Tagen funktioniert. Nun schaffe ich es nicht auf dem Rasperry weewx neu zu installieren und danach den benötigten Treiber zu installieren.
Ich schicke euch auch die syslog und den shell Text den ich zu installation, deinstallation und erneuter installation von weewx geschrieben habe.
shelldriverinstallwh2315
syslog

Günther Wrana

unread,
Jul 19, 2023, 2:04:33 PM7/19/23
to weewx-user
Sorry for the entry every thing is O.K
Reply all
Reply to author
Forward
0 new messages