The old PYTHONPATH needs to look in two places now - one where user stuff goes, one where weewx core goes.
Try the following (tests ok here): PYTHONPATH=/etc/weewx/bin:/usr/share/weewx python3 -m user.gw1000 --test-driver --ip-address=192.168.1.104 On Friday, June 13, 2025 at 12:22:23 PM UTC-7 Nick wrote: > On 13/06/2025 16:38, vince wrote: > > Here's how to test it manually....make sure you have the ip address correct > in weewx.conf > > # for a venv installation (tested) > PYTHONPATH=~/weewx/src python3 ~/weewx-data/bin/user/gw1000.py > --test-driver --ip-address=192.168.2.87 > > # for a dpkg installation (found in an old google search) > PYTHONPATH=/etc/weewx/bin python3 -m user.gw1000 --test-driver > --ip-address=192.168.2.87 > > Vince, > > Vince, > > That was not a success ... :-( > > <code> > pi@RpiPP:~ $ PYTHONPATH=/etc/weewx/bin python -m user.gw1000 > --test-driver --ip-address=192.168.1.104 > Traceback (most recent call last): > File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main > return _run_code(code, main_globals, None, > File "/usr/lib/python3.9/runpy.py", line 87, in _run_code > exec(code, run_globals) > File "/etc/weewx/bin/user/gw1000.py", line 380, in <module> > import weecfg > ModuleNotFoundError: No module named 'weecfg' > </code> > > There is a conf file in /etc/weewx > > Running with auto for IP & Port I see > > <code> > Jun 13 20:13:52 RpiPP weewxd[8000]: INFO user.gw1000: 'unknown model' > was found at 192.168.1.104:45000 > Jun 13 20:13:52 RpiPP weewxd[8000]: INFO user.gw1000: Using > discovered address 192.168.1.104:45000 > </code> > > So 45000 & the IP are correct, the IP of the RPI is 192.168.1.68 as per > the WSView-Plus application. > > I am stumped > > Regards & thanks > > Nick > > -- 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]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/e61dfa2e-4fc6-47f0-87d2-b21a54873a32n%40googlegroups.com.
