HP1000 Driver

328 views
Skip to first unread message

ried...@gmail.com

unread,
Apr 16, 2021, 3:51:49 AM4/16/21
to weewx-user
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 
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é

ried...@gmail.com

unread,
Apr 16, 2021, 3:59:35 AM4/16/21
to weewx-user
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

Glenn McKechnie

unread,
Apr 16, 2021, 7:43:28 AM4/16/21
to weewx...@googlegroups.com
'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
> --
> 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/db5413b3-5389-4847-b1c9-85fd198c5eban%40googlegroups.com.
>


--


Cheers
Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

ried...@gmail.com

unread,
Apr 16, 2021, 6:11:44 PM4/16/21
to weewx-user
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

vince

unread,
Apr 16, 2021, 6:42:32 PM4/16/21
to weewx-user
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.

gjr80

unread,
Apr 16, 2021, 6:50:18 PM4/16/21
to weewx-user
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

vince

unread,
Apr 16, 2021, 10:10:46 PM4/16/21
to weewx-user
DOH - thanks Gary !

ried...@gmail.com

unread,
Apr 17, 2021, 5:22:41 PM4/17/21
to weewx-user
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

Susan Mackay

unread,
Apr 18, 2021, 10:42:29 PM4/18/21
to weewx-user
What happens after you wait the 60 seconds?
The Timeout message means that the communication with the console is having problems and either the console is not receiving the request or the driver is not receiving the response.
Susan

ried...@gmail.com

unread,
Apr 19, 2021, 1:56:40 PM4/19/21
to weewx-user
Hello 
Thank you once again for your help. 
The driver works perfectly. I noticed a small blemish.
 In the log it is displayed as HP100 and not as HP1000. I fixed that in the driver. 
I have now solved the problem. 
My cable router had an update and probably deleted the setting from the IP. 
thus all ports for the weather station were blocked. 

 Thanks again for your quick help. 

 greetings André

Susan Mackay

unread,
Apr 19, 2021, 10:35:04 PM4/19/21
to weewx-user
Re the 'HP100' - I thought I had fixed that. I'll check again.
Good to hear that it is all working for you.
Susan

Reply all
Reply to author
Forward
0 new messages