Open partoneoftwo opened 7 years ago
you need to use the usb branch of weewx. you probably should uninstall the deb package of weewx, otherwise it could be confusing (they can co-exist, but unless you need it, avoid the possible confusion).
the weewx-hp3000 driver is written to use the usb branch of weewx. this is a branch in which i am trying to consolidate the usb code in weewx (this will make it easier to support new usb devices, and should also make it easier to run usb hardware on windows)
so you'll have to install weewx from the source tree
git clone https://github.com/weewx/weewx cd weewx git checkout usb ./setup.py install
sorry about that.
ahhh now it makes sense.
thanks a lot for your ultra fast reply :)
wow, i really botched that up. i've been running it on macosx using the usb branch of weewx since march. it has been rock solid. but it looks like i lost the non-usb-branch implementation during a move in july/august. (in february i was having problems getting the mac to run reliably on the non-usb branch due to kernel issues, and i was working on a windows port of weewx)
please let me know if you have any issues. i will be near the macos computer again in 2 weeks, so i can do usb-branch fixes and/or make hp3000 driver work with the non-usb branch again.
Hello,
i am trying to use weewx with the HP3000 weather station. I am a absolute raspberry beginner, i just have my raspberry for 24h now...So yesterday evening i needed the whole evening to install weewx, finally it worked but then i had the driver problem. I found this topic here and i tried to install the new driver, it worked then but then I got the same problem like partoneoftwo. Then I tried:
git clone https://github.com/weewx/weewx cd weewx git checkout usb ./setup.py install
but this did not work. Maybe it was because of why installed weewx in serveral ways? I also installed it as debian. So you wrote that the deb installation should be uninstalled, but since I do not know how to uninstall things I just formated the micro sd of the raspberry and made a new installation of the complete raspberry. So now I tried it again, but it won't work.
When I now try to install your new driver it says: "root@raspberrypi:~# wee_extension --install weewx-hp3000.zip -bash: wee_extension: Kommando nicht gefunden."
which means command not found.
I did not thougt that it is so complicated. Maybe it is really easy but for me as a totally beginner are all these commands really complicated :(
So when do I have to type in these commands? git clone https://github.com/weewx/weewx <= do I have to go to a special folder before i type in this command? cd weewx git checkout usb ./setup.py install
Do I have to do anything before that? When do I have to install the driver? Afterwards? So yesterday evening it worked with the driver installation, but then the weewx configuration did not work because of the "ImportError: No module named weeusb". But now with the complete new raspberry the installation of the driver is not working... :(
Can you help me? Piotre
ok in the meanwhile i found out that the command to install the new driver has to be the following:
/home/weewx/bin/wee_extension --install weewx-hp3000.zip so the "/home/weewx/bin/" part was missing...now the installation of the driver worked!
Then the same with the reconfiguration, there was also the path missing:
root@raspberrypi:~# /home/weewx/bin/wee_extension --install weewx-hp3000.zip Request to install 'weewx-hp3000.zip' Extracting from zip archive weewx-hp3000.zip Saving installer file to /home/weewx/bin/user/installer/hp3000 Finished installing extension 'weewx-hp3000.zip' root@raspberrypi:~# /home/weewx/bin/wee_config --reconfigure --driver=user.hp3000 Using configuration file /home/weewx/weewx.conf Enter a brief description of the station, such as its location. For example: Santa's Workshop, North Pole description [zuhause]: zuHAUSE Specify altitude, with units 'foot' or 'meter'. For example: 35, foot 12, meter altitude [195, meter]: 194, meter Specify latitude in decimal degrees, negative for south. latitude [56.111]: 56.222 Specify longitude in decimal degrees, negative for west. longitude [6.111]: 6.222 Indicate the preferred units for display: 'metric' or 'us' units [metricwx]: metric Installed drivers include: 0) HP3000 (user.hp3000) 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) WH23xx (weewx.drivers.wh23xx) 9) WMR100 (weewx.drivers.wmr100) 10) WMR200 (weewx.drivers.wmr200) 11) WMR300 (weewx.drivers.wmr300) 12) WMR9x8 (weewx.drivers.wmr9x8) 13) WS1 (weewx.drivers.ws1) 14) WS23xx (weewx.drivers.ws23xx) 15) WS28xx (weewx.drivers.ws28xx) choose a driver [0]: 0 Saved backup to /home/weewx/weewx.conf.20180722143430 Saved configuration to /home/weewx/weewx.conf root@raspberrypi:~#
so now i have to see how I can read out the data :)
Thanks a lot for taking the time to make a driver for the HP3000 type of weather station. I just received mine from China, and I am hoping to make it work! However, right now, your driver throws an error!
OS: Ubuntu 1604 & Debian 8.9
Weewx version: weewx_3.7.1-1 Weewx package installed: weewx_3.7.1-1_all.deb Weewx-hp3000 version: Downloaded master on 18.09.2017
Error: After following your installation instructions to the point; and after configuring, the "SELECT DRIVER" "menu" in wee_config shows error "No module named weeusb"
After saving settings, when having performed "SELECT DRIVER", the error "ImportError: No module named weeusb"
I have looked online, and cannot find reference to "weeusb" anywhere. Is this a typo? How can I get your driver to work?