Hi - sorry to re-awaken this old thread ... but I wanted to follow this procedure and enable OpenHab to be directly enabled by my (Maplin) weather station.
I get a couple of errors, however.
1) running the toopenhab.py command I get:
python -m toopenhab ~/weather/data
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/pywws/toopenhab.py", line 79, in <module>
from . import DataStore
ValueError: Attempted relative import in non-package
2) the log file for pywws contains the following
15:35:07:pywws.DataLogger:Computer and weather station clocks disagree by 0:07:00 (H:M:S).
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/pywws/Hourly.py", line 111, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pywws/Hourly.py", line 108, in main
return Hourly(args[0])
File "/usr/local/lib/python2.7/dist-packages/pywws/Hourly.py", line 79, in Hourly
hourly_data, daily_data, monthly_data).do_tasks():
TypeError: __init__() takes exactly 6 arguments (8 given)
I upgraded to the latest version of pywws which overcame some usb IO errors
Am running on a raspberryPi (original image from
http://www.weather.dragontail.co.uk/index.php?page=rasp_image , but upgraded via APT-GET etc)
Any pointers much appreciated