Socket
Book a DemoInstallSign in
Socket

hs100tomqtt

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hs100tomqtt

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

0.0.5
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

mqtt

FAQs

Package last updated on 30 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.