V5 weectl device - bug

70 views
Skip to first unread message

Graham Eddy

unread,
Sep 6, 2023, 8:52:30 AM9/6/23
to weewx-development
i have several stations, none of them using the default name. weectl device seems to ignore —config directive:

(venv) weewx@wx:~/ecowitt$ weectl device --help

Unable to find file 'weewx.conf'. Tried directories ['/home/weewx/weewx-data', '/etc/weewx', '/home/weewx']

(venv) weewx@wx:~/ecowitt$ weectl device --config=/home/weewx/ecowitt/weewx.conf --help

Unable to find file 'weewx.conf'. Tried directories ['/home/weewx/weewx-data', '/etc/weewx', '/home/weewx']


⊣GE⊢

Tom Keffer

unread,
Sep 6, 2023, 11:55:11 AM9/6/23
to Graham Eddy, weewx-development
Right you are.

This is because weectl device is actually implemented as a wrapper around the old wee_device.

Try

weectl device /home/weewx/ecowitt/weewx.conf --help

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/69D680AC-EE07-40C3-A412-A6F36643B4B9%40geddy.au.

Graham Eddy

unread,
Sep 6, 2023, 12:09:57 PM9/6/23
to Tom Keffer, weewx-development
works for vantage, error for ecowitt. maybe latter is expected (after 2am here and my concentration is wavering..)

(venv) weewx@wx:~$ weectl device /home/weewx/vantage/weewx.conf --help

Using configuration file /home/weewx/vantage/weewx.conf

Using driver weewx.drivers.vantage.

Using Vantage driver version 3.6.2 (weewx.drivers.vantage)

Usage: /home/weewx/venv/bin/weectl device --help

       /home/weewx/venv/bin/weectl device --info [config_file]

  [snip]

(venv) weewx@wx:~$ weectl device /home/weewx/ecowitt/weewx.conf --help

Using configuration file /home/weewx/ecowitt/weewx.conf

Using driver user.gw1000.

Unable to import driver user.gw1000: No module named 'user'.

(venv) weewx@wx:~$ cd ecowitt/bin

(venv) weewx@wx:~/ecowitt/bin$ weectl device /home/weewx/ecowitt/weewx.conf --help

Using configuration file /home/weewx/ecowitt/weewx.conf

Using driver user.gw1000.

Unable to import driver user.gw1000: No module named 'user’.

(venv) weewx@wx:~/ecowitt/bin$ python -m user.gw1000 --test-driver --config=/home/weewx/ecowitt/weewx.conf

Using configuration file /home/weewx/ecowitt/weewx.conf

/home/weewx/ecowitt/bin/user/gw1000.py:2780: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead

  self.thread.setDaemon(True)

/home/weewx/ecowitt/bin/user/gw1000.py:2781: DeprecationWarning: setName() is deprecated, set the name attribute instead

  self.thread.setName('GatewayCollectorThread')


Interrogating GW2000 at 192.168.37.58:45000


2023-09-07 02:07:10 AEST (1694016430): 'co2': '483', 'co2_24h_avg': '478', 'dateTime': '1694016430', 'daymaxwind': '1.8', 'dayRain': '0.0', 'extraHumid17': '44', 'extraTemp17': '22.5', 'inHumidity': '48', 'inTemp': '19.2', ‘lightning_distan

  [snip]


⊣GE⊢

Tom Keffer

unread,
Sep 7, 2023, 12:04:09 PM9/7/23
to Graham Eddy, weewx-development
Fixed in commit bd1d333.

-tk


Reply all
Reply to author
Forward
0 new messages