- added host uri text entry

This commit is contained in:
jens
2020-12-16 08:55:41 +01:00
parent 834268c85e
commit f43b866023
3 changed files with 41 additions and 5 deletions
+1 -3
View File
@@ -45,7 +45,7 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow):
self.slider_temp_soll_initial_update = True
self.checkbox_heater_activate_initial_update = True
self.heatrate_soll_initial_update = True
self.ws_client.connect(uri="ws://localhost:8765")
self.ws_client.connect(uri=self.plainTextUri.toPlainText())
def disconnect(self):
self.ws_client.disconnect()
@@ -75,8 +75,6 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow):
def on_sensor_changed(self, msg):
print("on_sensor_changed {}".format(msg))
if "Temp" in msg:
self.lcdNumber_temp_ist.display(str(msg['Temp']))
def on_tempctrl_changed(self, msg):
print("on_tempctrl_changed {}".format(msg))