Shell

Install in shell
  1. Clone the repo

    git clone https://gitlab.com/hydroqc/hydroqc2mqtt
    cd hydroqc2mqtt
    
  2. Create a python virtual env and activate it

    python -m venv env
    . env/bin/activate
    
  3. Install requirements and module

    pip install --upgrade setuptools_scm
    pip install .
    
  4. Copy and change the configuration or use environement variable.

    cp config.sample.yaml config.yaml
    
  5. Copy and adapt run.sh to your MQTT configuration. If your MQTT server does not require auth leave the MQTT_USERNAME and MQTT_PASSWORD values empty

    cp run.sample.sh run.sh
    chmod +x run.sh
    
  6. Run it!

    ./run.sh
    

To update you have to re-rerun the steps above. A simple git pull is not sufficient.