### Install Ecowitt Gateway Driver for Pip Installs Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Activate the virtual environment before installing the driver extension for pip-based WeeWX installations. ```bash source ~/weewx-venv/bin/activate weectl extension install https://github.com/gjr80/weewx-gw1000/releases/latest/download/gw1000.zip ``` -------------------------------- ### Install Ecowitt Gateway Driver for Package Installs Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Use the weectl utility to install the driver extension on a standard WeeWX package installation. ```bash weectl extension install https://github.com/gjr80/weewx-gw1000/releases/latest/download/gw1000.zip ``` -------------------------------- ### Install Ecowitt Gateway Driver for Git Installs Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Activate the virtual environment and run the weectl script directly from the source directory for git-based installations. ```bash source ~/weewx-venv/bin/activate python3 ~/weewx/src/weectl.py extension install \ https://github.com/gjr80/weewx-gw1000/releases/latest/download/gw1000.zip ``` -------------------------------- ### Install Six Library for Package Installs Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Manually install the Six compatibility library if the driver installation fails due to a missing module. ```bash sudo apt install python3-six ``` -------------------------------- ### Install Six Library for Pip Installs Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Install the Six library via pip if the driver installation fails due to a missing module. ```bash pip install six ``` -------------------------------- ### Install Driver via weectl Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/README.md Commands to install the driver extension for different WeeWX installation types. ```bash weectl extension install https://github.com/weewx-contrib/weewx-gw1000/archive/refs/heads/master.zip ``` ```bash source ~/weewx-venv/bin/activate weectl extension install https://github.com/weewx-contrib/weewx-gw1000/archive/refs/heads/master.zip ``` ```bash source ~/weewx-venv/bin/activate python3 ~/weewx/src/weectl.py extension install https://github.com/weewx-contrib/weewx-gw1000/archive/refs/heads/master.zip ``` -------------------------------- ### Install Six Library Dependency Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/README.md Commands to manually install the required Six library if missing. ```bash sudo apt install python3-six ``` ```bash pip install six ``` -------------------------------- ### Configure WeeWX Driver Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/README.md Command to reconfigure the station to use the installed driver. ```bash weectl station reconfigure --driver=user.gw1000 ``` -------------------------------- ### Configure Ecowitt Gateway driver Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Select and configure the driver using the weectl utility. ```bash weectl station reconfigure --driver=user.gw1000 ``` ```bash source ~/weewx-venv/bin/activate weectl station reconfigure --driver=user.gw1000 ``` ```bash source ~/weewx-venv/bin/activate python3 ~/weewx/src/weectl.py station reconfigure --driver=user.gw1000 ``` -------------------------------- ### Test Ecowitt Gateway service Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Run the service directly to verify operation. Replace device_ip_address with the actual gateway IP. ```bash PYTHONPATH=/usr/share/weewx:/etc/weewx/bin python3 \ /etc/weewx/bin/user/gw1000.py --test-service \ --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx-data/bin python3 ~/weewx-data/bin/user/gw1000.py \ --test-service --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx/src:~/weewx-data/bin python3 \ ~/weewx-data/bin/user/gw1000.py --test-service \ --ip-address=device_ip_address ``` -------------------------------- ### Test GatewayService Directly Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/README.md Commands to test the service functionality by running the driver file directly with the --test-service flag. ```bash PYTHONPATH=/usr/share/weewx:/etc/weewx/bin python3 /etc/weewx/bin/user/gw1000.py --test-service --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx-data/bin python3 ~/weewx-data/bin/user/gw1000.py --test-service --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx/src:~/weewx-data/bin python3 ~/weewx-data/bin/user/gw1000.py --test-service --ip-address=device_ip_address ``` -------------------------------- ### Test Ecowitt Gateway driver Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Run the driver directly to observe loop packets. Replace device_ip_address with the actual gateway IP. ```bash PYTHONPATH=/usr/share/weewx python3 /etc/weewx/bin/user/gw1000.py \ --test-driver --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate python3 ~/weewx-data/bin/user/gw1000.py --test-driver \ --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx/src python3 ~/weewx-data/bin/user/gw1000.py \ --test-driver --ip-address=device_ip_address ``` -------------------------------- ### Configure GatewayService in weewx.conf Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Add the GatewayService to the data_services option in the WeeWX configuration file. ```ini [Engine] [[Services]] .... data_services = user.gw1000.GatewayService ``` -------------------------------- ### Test Driver Connectivity Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/README.md Commands to verify driver communication with the gateway device using the --test-driver flag. ```bash PYTHONPATH=/usr/share/weewx python3 /etc/weewx/bin/user/gw1000.py --test-driver --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate python3 ~/weewx-data/bin/user/gw1000.py --test-driver --ip-address=device_ip_address ``` ```bash source ~/weewx-venv/bin/activate PYTHONPATH=~/weewx/src python3 ~/weewx-data/bin/user/gw1000.py --test-driver --ip-address=device_ip_address ``` -------------------------------- ### Restart WeeWX daemon Source: https://github.com/weewx-contrib/weewx-gw1000/blob/master/readme.txt Restart the WeeWX service after configuration. ```bash sudo /etc/init.d/weewx restart ``` ```bash sudo service weewx restart ``` ```bash sudo systemctl restart weewx ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.