Initial Set-Up done

This commit is contained in:
2021-06-07 17:41:23 +02:00
parent c1e8b31910
commit 13641cedca
3 changed files with 43 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ class BSH:
#Mosquitto Settings #Mosquitto Settings
client_name = "BSH_Mosquitto_Client" client_name = "BSH_Mosquitto_Client"
host_name = "192.168.178.36" host_name = "192.168.178.76"
session = requests.Session() session = requests.Session()
AutomationRules = {} AutomationRules = {}
@@ -80,6 +80,7 @@ class BSH:
#Sent MQTT Debugging Message #Sent MQTT Debugging Message
def publishDebugMsg(self,msg): def publishDebugMsg(self,msg):
self.client.publish("bsh/debug",msg,0,True) self.client.publish("bsh/debug",msg,0,True)
print(msg)
#Get all BSH Decives #Get all BSH Decives
def getDevices(self): def getDevices(self):
@@ -165,7 +166,7 @@ class BSH:
#set up the system: login to MQTT + get all needed data from the BSH #set up the system: login to MQTT + get all needed data from the BSH
def __init__(self): def __init__(self):
self.client.connect(self.host_name) self.client.connect(self.host_name,1884)
self.publishDebugMsg("Connecting to MQTT Server") self.publishDebugMsg("Connecting to MQTT Server")
self.publishDebugMsg("Setting up the Environment...") self.publishDebugMsg("Setting up the Environment...")

View File

@@ -1,5 +1,5 @@
#$ docker build -t my-python-app . #$ docker build -t bsh-gateway .
#$ docker run -it --rm --name my-running-app my-python-app #$ docker run -it --rm --name my-bsh-gateway bsh-gateway
FROM python:3 FROM python:3
@@ -10,4 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
CMD [ "python", "./BSHGateWay.py" ] CMD ["python","-u","./BSHGateWay.py"]

View File

@@ -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