修改摄像头地址
This commit is contained in:
@ -32,7 +32,8 @@ class MainController:
|
||||
|
||||
def _onTimer(self):
|
||||
# 定时任务逻辑
|
||||
loc_tra=TransmitterController(RelayController())
|
||||
# 变送器是 192.168.250.63,端口 502
|
||||
loc_tra=TransmitterController(RelayController(host="192.168.250.63", port=502))
|
||||
upper_weight=loc_tra.read_data(1)
|
||||
lower_weight=loc_tra.read_data(2)
|
||||
if upper_weight is None:
|
||||
@ -49,7 +50,7 @@ class MainController:
|
||||
pass
|
||||
|
||||
def _onTimer2(self):
|
||||
print(str(self.angle))
|
||||
# print(str(self.angle))
|
||||
# 定时任务逻辑
|
||||
if self.is_add:
|
||||
self.angle+=1
|
||||
@ -71,7 +72,8 @@ class MainController:
|
||||
|
||||
|
||||
def showMainWindow(self):
|
||||
self.main_window.show()
|
||||
# self.main_window.show()
|
||||
self.main_window.showFullScreen()
|
||||
self.main_window.dispatch_task_widget.set_task_time("task1","15:44 PM")
|
||||
self.main_window.dispatch_task_widget.set_task_time("task2","17:37 PM")
|
||||
self.main_window.segment_task_widget.set_task_time("task1","15:38 PM")
|
||||
|
||||
Reference in New Issue
Block a user