Open dougbert-b opened 6 months ago
For some reason a part of the driver code is not receiving the gateway device IP address unless it is specified on the command line. I have been unable to reproduce this behaviour on any of my devices. Could I ask for some further information:
wee_device --firmware --debug=3
[GW1000]
stanza from weewx.conf
Actually, stand by on my last. I've now been able to reproduce the problem. Let me work through to find the cause.
OK, I think it is fixed. Can you confirm that you did not specify an IP address in your [GW1000]
stanza in weewx.conf
?
Can you please try v0.6.2:
gw1000.py
) to your WeeWX machine using the following command:
wget -P /var/tmp https://raw.githubusercontent.com/gjr80/weewx-gw1000/master/bin/user/gw1000.py
gw1000.py
from /var/tmp
to /usr/share/weewx/user
:
sudo cp /var/tmp/gw1000.py /usr/share/weewx/user/
then try your commands again.
Yes, the --firmware command works for me when IP address discovery is used. Thanks!
BTW, if I do "wee_device --live-data --firmware", the firmware data is printed, but no live data is printed. (It's not clear to me if this is actually a bug...)
Doug
On Fri, Feb 23, 2024 at 2:58 AM gjr80 @.***> wrote:
OK, I think it is fixed. Can you confirm that you did not specify an IP address in your [GW1000] stanza in weewx.conf?
Can you please try v0.6.2:
- download the v0.6.2 driver file (gw1000.py) to your WeeWX machine using the following command:
wget -P /var/tmp https://raw.githubusercontent.com/gjr80/weewx-gw1000/master/bin/user/gw1000.py
- copy the downloaded gw1000.py from /var/tmp to /usr/share/weewx/user :
sudo cp /var/tmp/gw1000.py /usr/share/weewx/user/
then try your commands again.
— Reply to this email directly, view it on GitHub https://github.com/gjr80/weewx-gw1000/issues/74#issuecomment-1960877384, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOY2W7IRHIWRZCRQAYHKN6LYVBDZ5AVCNFSM6AAAAABDWAICWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQHA3TOMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
BTW, if I do "wee_device --live-data --firmware", the firmware data is printed, but no live data is printed. (It's not clear to me if this is actually a bug...)
It's not a bug, wee_device
only accepts one 'verb' at a time; so you can use --live-data
or --firmware
but not both together (well you can but only one will be actioned and that will be the one that encountered first when the driver processes the command line arguments).
I could add code to ensure that only one verb
can be specified, but given this is the first time the issue has been raised and as I'm working on v0.7.0 (which will require WeeWX v5 and uses weectl device
in lieu of wee_device
) I will look at such changes for 0.7.0 rather than add them to another 0.6.x release.
With the latest GW1000 driver, most wee_device options can auto-detect the GW1000's IP address:
But the --firmware option will crash unless you explicitly provide the IP address.
This works:
This crashes:
There is another strange result if you give both the --live-data and --firmware options, in that order: