I've got a dedicated VM setup to start some testing. I can use Simulator no
problems.
Trying to use my driver though results in the error below.
(pipenv) root@weewx4:~/git/weewx# ./bin/weewxd /home/weewx/weewx.conf
Traceback (most recent call last):
File "./bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/root/git/weewx/bin/weewx/engine.py", line 887, in main
engine = engine_class(config_dict)
File "/root/git/weewx/bin/weewx/engine.py", line 73, in __init__
self.setupStation(config_dict)
File "/root/git/weewx/bin/weewx/engine.py", line 97, in setupStation
__import__(driver)
ModuleNotFoundError: No module named 'user.meteostick_socket'
Here's the directory listing
(pipenv) root@weewx4:~/git/weewx# ls -al /home/weewx/bin/user/
total 108
drwxr-xr-x 2 root root 4096 Feb 25 00:31 .
drwxr-xr-x 10 root root 4096 Feb 25 00:11 ..
-rw-r--r-- 1 root root 541 Feb 24 18:30 extensions.py
-rw-r--r-- 1 root root 306 Feb 24 18:30 __init__.py
-rw-r--r-- 1 root root 71762 Jan 31 20:21 meteostick_socket.py
-rw-r--r-- 1 root root 16923 Aug 26 16:40 mqtt.py
Here's the relevant bits from weewx.conf:
[Station]
<<snip>>
station_type = Meteostick
[Meteostick]
<<snip>>
driver = user.meteostick_socket
When I try driver = weewx.user.meteostick_socket within weewx.conf, I get
the same error.
(pipenv) root@weewx4:~/git/weewx# ./bin/weewxd /home/weewx/weewx.conf
Traceback (most recent call last):
File "./bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/root/git/weewx/bin/weewx/engine.py", line 887, in main
engine = engine_class(config_dict)
File "/root/git/weewx/bin/weewx/engine.py", line 73, in __init__
self.setupStation(config_dict)
File "/root/git/weewx/bin/weewx/engine.py", line 97, in setupStation
__import__(driver)
ModuleNotFoundError: No module named 'weewx.user'
Thoughts?
On Wednesday, February 20, 2019 at 9:10:49 PM UTC-5, Tom Keffer wrote:
>
> It's alive, and it works reliably with the Vantage driver! But it's
> untested for any other drivers.
>
> I would greatly appreciate it if others took it for a spin with other
> drivers!
>
> To install, it's probably best to just run out of a git repository, with
> the python3 branch, but using your existing weewx.conf file. Don't try to
> install it, because it will overwrite your existing, presumably stable,
> Python 2 installation.
>
> Here's a super easy way to set things up using a virtual environment.
>
> # Install pipenv
> *sudo pip install pipenv*
>
> # Get a copy of the WeeWX repository (if you don't already have one)
> *cd ~*
> *mkdir git*
> *cd git*
> *git clone https://github.com/weewx/weewx.git
> <https://github.com/weewx/weewx.git>*
> *cd weewx*
>
> # Check out the python3 branch:
> *git checkout python3*
>
> # Build a virtual environment, suitable for Python 3:
> *cd util/pipenv*
> *pipenv install*
> *pipenv run ../../bin/weewxd /home/weewx/weewx.conf*
>
>
>
>