Hi there, As this is pretty much the only WS3000 thread on this list, I dare to reply to the same thread. So I bought MISOL WS-HP3001-8MZ 5 channel wireless station + 2 extra sensors = 7 in total.
First of all, Thanks Olivier for all your work regarding the WS3000 driver & instructions!!! While buying the station I was unsure if it would be possible to connect to RasPi - but looks now very promising due to this thread. I hope also others will find this thread and allow them to configure RasPi for WS3000 data collection :) (keywords for anyone looking for info: linux ubuntu raspberry raspbian debian ws3000 ws3001 hp3000 hp3001 misol weather station) That's why I wrote this here in some kind of fuzzy tutorial format: So as said, 'looks promising', but not 100% there.. I have linux background, but this is the first time I'm using weewx, so something to learn there, for sure. I have 1st gen RasPi with Raspbian: rhk@ripapi ~ $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.11 (wheezy) Release: 7.11 Codename: wheezy rhk@ripapi ~ $ dmesg shows the connected weather monitor: [ 1907.168919] usb 1-1.3: new full-speed USB device number 4 using dwc_otg [ 1907.273512] usb 1-1.3: New USB device found, idVendor=0483, idProduct=5750 [ 1907.273553] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1907.273574] usb 1-1.3: Product: By viewtool [ 1907.273591] usb 1-1.3: Manufacturer: MyUSB_HID [ 1907.273608] usb 1-1.3: SerialNumber: 8B6997A71132 [ 1907.291671] hid-generic 0003:0483:5750.0001: hiddev0,hidraw0: USB HID v1.10 Device [MyUSB_HID By viewtool] on usb-20980000.usb-1.3/input0 - Downloaded weewx_3.8.2-1_all.deb from weewx website. - Install with sudo dpkg -i weewx_3.8.2-1_all.deb - As that didn't work, installed required dependencies: sudo apt-get install apache python-configobj python-cheetah python-serial python-usb - reinstall with sudo dpkg -i weewx_3.8.2-1_all.deb - initially configured it to use 'simulator' driver The weewx web interface seemed to work OK and I got some simulated values there, at http://192.168.1.6/html/weewx (note, change localhost to your RasPi IP, first check with ifconfig) - Then off to configure the WS3000 driver: - I downloaded the ws3000DataService.py ws3000Extensions.py ws3000.py files from this thread and placed them to /usr/share/weewx/user (NOTE! Installation dir with .deb seems different from what is described above in Olivier's instructions). - run this, as instructed above: rhk@ripapi ~ $ echo "configobj > pyephem > pyserial > pyusb > willow > pillow > cheetah > Image > Django==1.11" > requirements.txt rhk@ripapi ~ $ pip install -r requirements.txt Requirement already satisfied (use --upgrade to upgrade): configobj in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) Downloading/unpacking pyephem (from -r requirements.txt (line 2)) Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement pyephem (from -r requirements.txt (line 2)) No distributions at all found for pyephem (from -r requirements.txt (line 2)) Storing complete log in /home/rhk/.pip/pip.log rhk@ripapi ~ $ So removed pyephem from the list (-> possible issue here, how does the missing ephem impact??) and successful rerun. Then rhk@ripapi ~ $ sudo pip install pyephem [sudo] password for rhk: Downloading/unpacking pyephem Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement pyephem No distributions at all found for pyephem Storing complete log in /root/.pip/pip.log rhk@ripapi ~ $ (I can see it listed in the mentioned url, but doesn't install :( Then I tried to list drivers but ws3000 line was somehow corrupted reporting about missing core or something. So in the ws3000.py file I removed these lines: import usb.core import usb.util as (not with very competent with Python..) I saw that import usb was already there. That seemed to help weewx to identify the drivers: rhk@ripapi /usr/share/weewx $ ./wee_config --list-drivers Module name Driver name Version Status user.ws3000 WS3000 0.1 weewx.drivers.acurite AcuRite 0.24 weewx.drivers.cc3000 CC3000 0.19 weewx.drivers.fousb FineOffsetUSB 1.9 weewx.drivers.simulator Simulator 3.0 weewx.drivers.te923 TE923 0.24 weewx.drivers.ultimeter Ultimeter 0.18 weewx.drivers.vantage Vantage 3.0.11 weewx.drivers.wmr100 WMR100 3.3.3 weewx.drivers.wmr200 WMR200 3.3.5 weewx.drivers.wmr300 WMR300 0.19rc6 weewx.drivers.wmr9x8 WMR9x8 3.2.2 weewx.drivers.ws1 WS1 0.25 weewx.drivers.ws23xx WS23xx 0.27 weewx.drivers.ws28xx WS28xx 0.35 Then reconfiguring weewx to use WS3000: rhk@ripapi /usr/share/weewx $ ./wee_config --reconfigure restarting weewx: sudo service restart weewx Then editing the template in /etc/weewx/skins/Standard/index.html.tmpl to try to add a channel or two to see the values. Then edited the /etc/weewx/weewx.conf file to debug=1, shorter intervals, remap some channels to check I have proper input and not simulated: However, now restarting weewx: sudo service restart weewx and checking log: tail -n 300 -f /var/log/syslog: Oct 25 08:10:57 ripapi weewx[6513]: engine: Initializing weewx version 3.8.2 Oct 25 08:10:57 ripapi weewx[6513]: engine: Using Python 2.7.3 (default, Nov 24 2017, 21:13:24) #012[GCC 4.6.3] Oct 25 08:10:57 ripapi weewx[6513]: engine: Platform Linux-4.1.19+-armv6l-with-debian-7.11 Oct 25 08:10:57 ripapi weewx[6513]: engine: Locale is 'fi_FI.UTF-8' Oct 25 08:10:57 ripapi weewx[6513]: engine: pid file is /var/run/weewx.pid Oct 25 08:10:57 ripapi weewx[6517]: engine: Using configuration file /etc/weewx/weewx.conf Oct 25 08:10:57 ripapi weewx[6517]: engine: Debug is 1 Oct 25 08:10:57 ripapi weewx[6517]: engine: Initializing engine Oct 25 08:10:57 ripapi weewx[6517]: engine: Loading station type WS3000 (user.ws3000) Oct 25 08:10:57 ripapi weewx[6517]: ws3000: driver version is 0.1 Oct 25 08:10:57 ripapi weewx[6517]: ws3000: sensor map is {'extraHumid6': 'h_6', 'extraHumid7': 'h_7', 'extraHumid4': 'h_4', 'extraHumid5': 'h_5', 'extraHumid2': 'h_2', 'extraHumid3': 'h_3', 'extraTemp8': 't_8', 'extraHumid1': 'h_1', 'extraTemp6': 't_6', 'extraTemp7': 't_7', 'extraTemp4': 't_4', 'extraTemp5': 't_5', 'extraTemp2': 't_2', 'extraTemp3': 't_3', 'extraHumid8': 'h_8', 'extraTemp1': 't_1'} Oct 25 08:10:57 ripapi weewx[6517]: import of driver failed: 'module' object has no attribute 'core' (<type 'exceptions.AttributeError'>) Oct 25 08:10:57 ripapi weewx[6517]: engine: Unable to load driver: 'module' object has no attribute 'core' Oct 25 08:10:57 ripapi weewx[6517]: **** Exiting... and values on website are not updated any more. I haven't edited the DB structure, should I? Not 100% sure this is the order of how events unrolled, but I doubt that somewhere there is some error similar to usb.core that didn't work out in the ws3000.py file.. (and for some reason the website worked Summary of possible issues: - ephem missing - import usb.core and usb.util errors, 'fixed' with import usb - core error in syslog -> Any pointers what to do next? -- 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]. For more options, visit https://groups.google.com/d/optout.
