Hello Thanks again for your help. I now have weewx running with Python 3 and the HP driver. When I start weewx, not much happens. Except that often INFO root: HP1000: Timed out too many times occurs. If I delete the weewx.sdb file and restart weewx, the data is downloaded from the weather station. Unfortunately, this then breaks off and the message appears
Apr 17 23:18:27 weewx weewx [803] INFO root: HP1000: Retrieving startup records Apr 17 23:18:53 weewx weewx [803] INFO root: HP1000: timed out Apr 17 23:18:53 weewx weewx [803] INFO weewx.engine: Main loop exiting. Shutting engine down. Apr 17 23:18:53 weewx weewx [803] CRITICAL __main__: Caught WeeWxIOError: Apr 17 23:18:53 weewx weewx [803] CRITICAL __main__: **** Waiting 60 seconds then retrying ... greetings Andre vince schrieb am Samstag, 17. April 2021 um 04:10:46 UTC+2: > DOH - thanks Gary ! > On Friday, April 16, 2021 at 3:50:18 PM UTC-7 gjr80 wrote: > >> Right cause wrong location :) it’s actually the forecasting extension >> causing the latest problem. If you search the forums you will find a number >> of threads with details of an updated forecasting extension that will run >> under python 3. >> >> Gary >> >> On Saturday, 17 April 2021 at 08:42:32 UTC+10 vince wrote: >> >>> That is the classic "code is written for python2 only" error you get >>> when you try to run it under python3. You should either run your weewx >>> under python2 or contact the driver's author and see if they have plans to >>> update to python3-compliant code. >>> >>> On Friday, April 16, 2021 at 3:11:44 PM UTC-7 [email protected] wrote: >>> >>>> Hello >>>> Many thanks for the help. With the Master Link I was able to install >>>> the driver. >>>> Unfortunately, I now get a different error message. >>>> >>>> >>>> root@raspberrypi:~# sudo /etc/init.d/weewx status -l >>>> ● weewx.service - LSB: weewx weather system >>>> Loaded: loaded (/etc/init.d/weewx; generated) >>>> Active: active (exited) since Sat 2021-04-17 00:02:04 CEST; 4min 21s >>>> ago >>>> Docs: man:systemd-sysv-generator(8) >>>> Process: 430 ExecStart=/etc/init.d/weewx start (code=exited, >>>> status=0/SUCCESS) >>>> >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** self.loadServices(config_dict) >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** File "/usr/share/weewx/weewx/engine.py", line 161, >>>> in >>>> loadServices >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** obj = weeutil.weeutil.get_object(svc)(self, >>>> config_dict) >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** File "/usr/share/weewx/weeutil/weeutil.py", line >>>> 1119, in get_object >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** mod = __import__(module) >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** File "/usr/share/weewx/user/forecast.py", line 567 >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** except OSError, e: >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** ^ >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** SyntaxError: invalid syntax >>>> Apr 17 00:02:04 raspberrypi python3[520]: weewx[520] CRITICAL >>>> __main__: **** Exiting. >>>> >>>> Andre >>>> Glenn McKechnie schrieb am Freitag, 16. April 2021 um 13:43:28 UTC+2: >>>> >>>>> 'file' is your friend. >>>>> >>>>> You're fetching the actual html page... >>>>> wget -P /var/tmp >>>>> https://github.com/AussieSusan/HP1000/blob/master/HP1000.tar.gz >>>>> >>>>> file /var/tmp/HP1000.tar.gz >>>>> /var/tmp/HP1000.tar.gz: HTML document, UTF-8 Unicode text, with very >>>>> long lines >>>>> >>>>> rm /var/tmp/HP1000.tar.gz >>>>> >>>>> Try the download link (button) that is on that page, ie:- >>>>> wget -P /var/tmp >>>>> https://github.com/AussieSusan/HP1000/raw/master/HP1000.tar.gz >>>>> >>>>> file /var/tmp/HP1000.tar.gz >>>>> /var/tmp/HP1000.tar.gz: gzip compressed data, last modified: Fri Sep >>>>> 25 06:32:52 2020, from Unix, original size 71680 >>>>> >>>>> >>>>> On 16/04/2021, [email protected] <[email protected]> wrote: >>>>> > pi@raspberrypi:~ $ sudo tar -xzf HP1000.tar.gz >>>>> > >>>>> > gzip: stdin: not in gzip format >>>>> > tar: Child returned status 1 >>>>> > tar: Error is not recoverable: exiting now >>>>> > >>>>> > [email protected] schrieb am Freitag, 16. April 2021 um 09:51:49 >>>>> UTC+2: >>>>> > >>>>> >> Hello I tried the Weewx 4.5.1-1 update. Since then, the HP1000 >>>>> driver has >>>>> >> >>>>> >> stopped working. I uninstalled and reinstalled Weewx. Unfortunately >>>>> I >>>>> >> can't >>>>> >> add the HP1000 driver anymore. I have a Raspi4 with 8gb Ram. I >>>>> tried to >>>>> >> download and install the driver with these commands. wget >>>>> >> https://github.com/AussieSusan/HP1000/blob/master/HP1000.tar.gz >>>>> >> wee_extension --install HP1000.tar.gz >>>>> >> wget -P / var / tmp >>>>> >> https://github.com/AussieSusan/HP1000/blob/master/HP1000.tar.gz >>>>> >> sudo wee_extension --install /var/tmp/HP1000.tar.gz >>>>> >> >>>>> >> I think that the file cannot be extracted. >>>>> >> I then use this error message. >>>>> >> pi @ raspberrypi: ~ $ sudo wee_extension --install = / var / tmp / >>>>> >> HP1000.tar.gz Request to install '/var/tmp/HP1000.tar.gz' >>>>> Extracting from >>>>> >> >>>>> >> tar archive /var/tmp/HP1000.tar.gz Traceback (most recent call >>>>> last): File >>>>> >> >>>>> >> "/ usr / share / weewx / wee_extension", line 88, in <module> >>>>> Main() File >>>>> >> >>>>> >> "/ usr / share / weewx / wee_extension", line 80, in main >>>>> >> ext.install_extension (options.install) File >>>>> >> "/usr/share/weewx/weecfg/extension.py", line 118, in >>>>> install_extension >>>>> >> self.tmpdir, self.logger) File >>>>> "/usr/share/weewx/weecfg/__init__.py", line >>>>> >> >>>>> >> 1808, in extract_tar tar_archive = tarfile.open (filename, mode = >>>>> 'r') >>>>> >> File >>>>> >> "/usr/lib/python3.7/tarfile.py", line 1580, in open raise ReadError >>>>> ("file >>>>> >> >>>>> >> could not be opened successfully") tarfile.ReadError: file could >>>>> not be >>>>> >> opened successfully pi @ raspberrypi: ~ $ >>>>> >> >>>>> >> I hope someone can help me. I think the HP1000 driver is better >>>>> than the >>>>> >> Interceptor driver. >>>>> >> >>>>> >> Greetings André >>>>> >> >>>>> > >>>>> > -- >>>>> > You received this message because you are subscribed to the Google >>>>> Groups >>>>> > "weewx-user" group. >>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>> send an >>>>> > email to [email protected]. >>>>> > To view this discussion on the web visit >>>>> > >>>>> https://groups.google.com/d/msgid/weewx-user/db5413b3-5389-4847-b1c9-85fd198c5eban%40googlegroups.com. >>>>> >>>>> >>>>> > >>>>> >>>>> >>>>> -- >>>>> >>>>> >>>>> Cheers >>>>> Glenn >>>>> >>>>> rorpi - read only raspberry pi & various weewx addons >>>>> https://github.com/glennmckechnie >>>>> >>>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0d551900-4f6d-4ae1-bea4-7026b97e9d99n%40googlegroups.com.
