/docker-jeelink

Docker-Image for a jeelink-to-mqtt gateway

Primary LanguagePython

Receive Information from technoline thermometers

Put an Jeelink-Stick (LaCrosse) on a free USB-Port.
This stick receives the information via 868 MHz from the thermometers.
The script jeelink.py decodes it and sends it to your mosquitto-server.

i.e. jeelink/sensor[xy] => {"temperature":99.99,"humidity":99,"battery":100|0}

Just now the images are available for arm64 and armhf
I am using pine64 with archlinuxarm. But a build at an other platform is possible.
Feel free for changing jeelink.py to your conditions.

Please define your parameters in config.json

(JSON-style)

tty-port => ttyUSB0 (normally used)
mqtt-server => your_server_ip
mqtt-port => 1883 (normally used)
client-id => a name (your choice)
username => username for login in mqqt-server | or ""
password => password for login in mqqt-server | or ""

Docker-command

docker run \
  --device=/dev/ttyUSB0 \
  -v <your-path>/app:/app \
  --name jeelink \
  --network <your network> \
  --restart unless-stopped \
  -d \
  andreasnn/jeelink:arm64 \
  jeelink.py
Both files "jeelink.py" and "config.json" must be in subdir "./app".