Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 624 Bytes

readme.md

File metadata and controls

38 lines (29 loc) · 624 Bytes

hs110 influx exporter

A TP-link hs110 smart plug exporter for influxDB

Install

git clone https://github.com/cgarnier/hs110-influx.git
npm i

Usage

TIMER=1000 \
DEVICE_IP_ADDR=10.0.0.35 \
DEBUG=true \
INFLUX_HOST=influx.exemple.com \
HOSTNAME=rig_github \
npm start

Docker usage

# Run the exporter
docker run \
  -e TIMER=1000 \
  -e DEVICE_IP_ADDR=10.0.0.35 \
  -e DEBUG=true \
  -e INFLUX_HOST=influx.exemple.com \
  -e HOSTNAME=rig_github \
  -d cgarnier/hs110-influx

Metrics

This exporter export one metric: power_consumption with current, power, total and voltage.