it's difficult to follow what you are/were doing - it would be helpful if you a) provided us with a copy of your weewx.conf (you can xxxx your passwords if there are any)
b) set your station to GW1000
c) set debug = 0
d) provided the complete syslog from weewx startup until either the 1st report cycle is completed (as a rule after 5 minutes)
or weewx exits because of an unrecoverable error - snippets are not helpful

e) you should check if the IP address of your GW1000 is bound to its MAC address f) you should check if some option in your router to allow intranetwork communication is set/untagged etc.

On 17.10.2023 15:20, Dale Chatham wrote:
Yet another data point:

python -m user.gw1000 --test-service --debug=5 --ip-address=192.168.50.41 --port=45000
Using configuration file /etc/weewx/weewx.conf
debug level is '5'

IP address obtained from command line options
Port number obtained from command line options
Battery state filtering is 'False' (using the default)
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/share/weewx/user/gw1000.py", line 8229, in <module>
    main()
  File "/usr/share/weewx/user/gw1000.py", line 8225, in main
    direct_gw.process_options()
  File "/usr/share/weewx/user/gw1000.py", line 6745, in process_options
    self.test_service()
  File "/usr/share/weewx/user/gw1000.py", line 8047, in test_service
    engine = weewx.engine.StdEngine(config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
    self.loadServices(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
    obj = weeutil.weeutil.get_object(svc)(self, config_dict)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/weewx/user/gw1000.py", line 1389, in __init__
    loginf('     field map is %s' % natural_sort_dict(self.field_map))
^^^^^^^^^^^^^^
AttributeError: 'GatewayService' object has no attribute 'field_map'


On Tuesday, October 17, 2023 at 8:08:00 AM UTC-5 Dale Chatham wrote:

    Another data point:

    nmap -sV -p 1-65535 192.168.50.41
    Starting Nmap 7.93 ( https://nmap.org ) at 2023-10-17 06:51 CDT
    Nmap scan report for ecowitt-weather (192.168.50.41)
    Host is up (0.0069s latency).
    Not shown: 65533 closed tcp ports (reset)
    PORT      STATE SERVICE     VERSION
    80/tcp    open  nagios-nsca Nagios NSCA
    45000/tcp open  asmp?
    MAC Address: BC:FF:4D:1C:C0:69 (Espressif)

    It appears the port is open on the access point, but it's not
    answering.  Any ideas?


    On Tuesday, October 17, 2023 at 6:32:48 AM UTC-5 Dale Chatham wrote:

        Is it possible to get an help here?

        On Thursday, October 12, 2023 at 9:30:22 PM UTC-5 Dale Chatham
        wrote:

            I blew it away and started over.

            Installed weewx according to:
            https://weewx.com/docs/redhat.htm Simulator worked fine.

            Inst alled Ecowitt Gateway servier according to:
            https://github.com/gjr80/weewx-gw1000/blob/master/readme.txt

            Ran PYTHONPATH=/usr/share/weewx python -m user.gw1000
            --test-driver from the above file.

            I get this error:
            Using configuration file /etc/weewx/weewx.conf

            Unable to connect to device: Failed to obtain response to
            command 'CMD_READ_FIRMWARE_VERSION' after 3 attempts

                Things to check include that the correct device IP
            address is being used,
                the device is powered on and the device is not
            otherwise disconnected from
                the local network.

            I used telnet to connect to the IP and port listed in
            weewx.conf:
                driver = user.gw1000
                ip_address = 192.168.50.41
                port = 45000

            I get a connection, but canot get a response to anyting I
            type (I have no idea if/what should be enteed to get a
            response.



            On Wednesday, October 11, 2023 at 6:13:20 AM UTC-5 gjr80
            wrote:

                I'm not sure what you are trying to do. The link you
                provided uses a custom WeeWX data service to parse a
                text file from the Ecowitt device, but the log extract
                you provided contains errors relating to the Ecowitt
                gateway driver <https://github.com/gjr80/weewx-gw1000>
                which uses the Ecowitt gateway device API to read data
                from the Ecowitt gateway device. You need to choose
                one method or the other, not both. If your intent is
                to utilise the linked page in your original post then
                you should uninstall the Ecowitt gateway driver.

                Gary
                On Wednesday, 11 October 2023 at 08:41:26 UTC+10
                [email protected] wrote:

                    Following these instructions:
                    
https://www.cougar.eu.com/useful-guides/weewx-guides/rasberry-pi/add-ecowitt/modify-weewx.html

                    Directory in /var/www/html/weewx/uploads is
                    filling with data, so the upload data part is
                    working.



                    Here is the pertinent log entries:

                    Oct 10 17:37:23 fedora-workstation python3[49897]:
                    weewx[49897] DEBUG user.gw1000: Invalid response
                    to attempt 2 to send command
                    'CMD_READ_FIRMWARE_VERSION': Invalid checksum in
                    API response. Expected '136' (0x88), received '51'
                    (0x33).
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] DEBUG user.gw1000: Invalid response
                    to attempt 3 to send command
                    'CMD_READ_FIRMWARE_VERSION': Invalid checksum in
                    API response. Expected '136' (0x88), received '51'
                    (0x33).
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] ERROR user.gw1000: Failed to obtain
                    response to command 'CMD_READ_FIRMWARE_VERSION'
                    after 3 attempts
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] ERROR weewx.engine: Import of driver
                    failed: Failed to obtain response to command
                    'CMD_READ_FIRMWARE_VERSION' after 3 attempts
                    (<class 'user.gw1000.GWIOError'>)
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                     Traceback (most recent call last):
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/weewx/engine.py", line
                    119, in setupStation
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     self.console = loader_function(config_dict, self)
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    1700, in loader
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     return GatewayDriver(**config_dict[DRIVER_NAME])
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    2311, in __init__
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                     super(GatewayDriver, self).__init__(**stn_dict)
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    1014, in __init__
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     self.collector =
                    GatewayCollector(ip_address=self.ip_address,
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    2608, in __init__
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     self.device =
                    GatewayDevice(ip_address=ip_address, port=port,
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    6024, in __init__
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     self.api = GatewayApi(ip_address=ip_address,
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    4769, in __init__
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     self.model =
                    self.get_model_from_firmware(self.get_firmware_version())
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    5217, in get_firmware_version
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     response =
                    self.send_cmd_with_retries('CMD_READ_FIRMWARE_VERSION')
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****  
                     File "/usr/share/weewx/user/gw1000.py", line
                    5454, in send_cmd_with_retries
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****    
                     raise GWIOError(_msg)
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL weewx.engine:     ****
                     user.gw1000.GWIOError: Failed to obtain response
                    to command 'CMD_READ_FIRMWARE_VERSION' after 3
                    attempts
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL __main__: Unable to load
                    driver: Failed to obtain response to command
                    'CMD_READ_FIRMWARE_VERSION' after 3 attempts
                    Oct 10 17:37:33 fedora-workstation python3[49897]:
                    weewx[49897] CRITICAL __main__:     ****  Waiting
                    60 seconds then retrying...

--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/74321535-27c1-4909-b229-e4685083a0aen%40googlegroups.com <https://groups.google.com/d/msgid/weewx-user/74321535-27c1-4909-b229-e4685083a0aen%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/e9bac4ee-cfd0-4757-e734-f370698a0e81%40gmail.com.

Reply via email to