diff --git a/BSHGateWay.py b/BSHGateWay.py index b14be22..3ac5ea0 100644 --- a/BSHGateWay.py +++ b/BSHGateWay.py @@ -23,7 +23,7 @@ class BSH: #Mosquitto Settings client_name = "BSH_Mosquitto_Client" - host_name = "192.168.178.36" + host_name = "192.168.178.76" session = requests.Session() AutomationRules = {} @@ -80,6 +80,7 @@ class BSH: #Sent MQTT Debugging Message def publishDebugMsg(self,msg): self.client.publish("bsh/debug",msg,0,True) + print(msg) #Get all BSH Decives def getDevices(self): @@ -165,7 +166,7 @@ class BSH: #set up the system: login to MQTT + get all needed data from the BSH def __init__(self): - self.client.connect(self.host_name) + self.client.connect(self.host_name,1884) self.publishDebugMsg("Connecting to MQTT Server") self.publishDebugMsg("Setting up the Environment...") diff --git a/Dockerfile b/Dockerfile index df79c8f..774dc78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -#$ docker build -t my-python-app . -#$ docker run -it --rm --name my-running-app my-python-app +#$ docker build -t bsh-gateway . +#$ docker run -it --rm --name my-bsh-gateway bsh-gateway FROM python:3 @@ -10,4 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -CMD [ "python", "./BSHGateWay.py" ] \ No newline at end of file +CMD ["python","-u","./BSHGateWay.py"] diff --git a/requirements.txt b/requirements.txt index e69de29..2f43e26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,37 @@ +astroid==2.4.2 +certifi==2020.6.20 +chardet==3.0.4 +click==7.1.2 +colorama==0.4.3 +future==0.18.2 +idna==2.10 +iso8601==0.1.12 +isort==5.4.2 +Jinja2==2.11.3 +joblib==1.0.1 +lazy-object-proxy==1.4.3 +livereload==2.6.3 +lunr==0.5.8 +Markdown==3.3.4 +MarkupSafe==1.1.1 +mccabe==0.6.1 +mkdocs==1.1.2 +mkdocs-material==7.0.4 +mkdocs-material-extensions==1.0.1 +nltk==3.5 +paho-mqtt==1.5.0 +Pygments==2.8.1 +pylint==2.6.0 +pymdown-extensions==8.1.1 +pyserial==3.4 +PyYAML==5.3.1 +regex==2020.11.13 +requests==2.24.0 +rope==0.17.0 +serial==0.0.97 +six==1.15.0 +toml==0.10.1 +tornado==6.1 +tqdm==4.59.0 +urllib3==1.25.10 +wrapt==1.12.1