Normally Palatable Mango

    hs100tomqtt

    0.0.5 • Public • Published

    Usage

    npm install -g hs100tomqtt
    hs100tomqtt --help
    

    Using with Docker

    In order to use automatic device discovery, you have to run docker with --net=host or equivalent configuration.

    If your system doesn't work with --net=host (see Docker for Mac issue), use a pre-defined device table instead, see option --device-table.

    docker run

    docker run -d --net=host dersimn/hs100tomqtt -m mqtt://MQTT_IP
    

    or

    docker run -d dersimn/hs100tomqtt -m mqtt://MQTT_IP --device-table /node/exampleDeviceTable.json
    

    Run docker run --rm dersimn/hs100tomqtt --help to list all options.

    docker-compose service

    hs100tomqtt:
      image: dersimn/hs100tomqtt
      environment:
        - HS100TOMQTT_MQTT_URL="mqtt://MQTT_IP"
      network_mode: "host"
    

    or

    hs100tomqtt:
      image: dersimn/hs100tomqtt
      volumes:
        - ~/deviceTable.json:/node/deviceTable.json:ro
      environment:
        - HS100TOMQTT_MQTT_URL=mqtt://MQTT_IP
        - HS100TOMQTT_DEVICE_TABLE=/node/deviceTable.json
    

    Debug

    Show debugging output

    For some reason Ctrl-C is not working, workaround with named container:

    docker run --rm -it --name=hs100tomqtt dersimn/hs100tomqtt --mqtt-retain=false -m mqtt://MQTT_IP -v debug
    Ctrl-P Ctrl-Q
    docker stop hs100tomqtt
    

    Manually build

    docker build -t username/hs100tomqtt .
    

    Credits

    This project follows Oliver "owagner" Wagner's architectural proposal for an mqtt-smarthome.
    Built by copy-pasting together Sebastian "hobbyquaker" Raff's mqtt-smarthome scripts and Patrick "plasticrake" Seal's hs100-api.

    Install

    npm i hs100tomqtt

    DownloadsWeekly Downloads

    2

    Version

    0.0.5

    License

    ISC

    Last publish

    Collaborators

    • dersimn