Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM debian:stretch

RUN apt-get update && apt-get install -y\
build-essential libssl-dev libffi-dev python-dev git python-pip

RUN git clone https://github.com/TechForze/broadlink-mqtt

#COPY . /broadlink-mqtt

WORKDIR /broadlink-mqtt

RUN pip install -r /broadlink-mqtt/requirements.txt

CMD ["python", "/broadlink-mqtt/mqtt.py"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Dockerized

## Build

docker build . -t broadlink2mqtt

## Run

docker run -it --name broadlink2mqtt -v ./data:/broadlink-mqtt/data broadlink2mqtt

# MQTT client to control BroadLink devices

## Installation
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
HAVE_TLS = False

# read initial config files
dirname = os.path.dirname(os.path.abspath(__file__)) + '/'
dirname = os.path.dirname(os.path.abspath(__file__)) + '/data/'
logging.config.fileConfig(dirname + 'logging.conf')
CONFIG = os.getenv('BROADLINKMQTTCONFIG', dirname + 'mqtt.conf')
CONFIG_CUSTOM = os.getenv('BROADLINKMQTTCONFIGCUSTOM', dirname + 'custom.conf')
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
paho-mqtt
broadlink==0.9