Merge branch 'watchdog' into for_webui
# Conflicts: # src-python/webui_controller.py # src-python/webui_mainloop.py
This commit is contained in:
@@ -1535,6 +1535,25 @@ class Controller:
|
||||
th_download.daemon = True
|
||||
th_download.start()
|
||||
|
||||
@staticmethod
|
||||
def startWatchdog(*args, **kwargs) -> dict:
|
||||
model.startWatchdog()
|
||||
return {"status":200, "result":True}
|
||||
|
||||
@staticmethod
|
||||
def feedWatchdog(*args, **kwargs) -> dict:
|
||||
model.feedWatchdog()
|
||||
return {"status":200, "result":True}
|
||||
|
||||
@staticmethod
|
||||
def setWatchdogCallback(callback) -> dict:
|
||||
model.setWatchdogCallback(callback)
|
||||
|
||||
@staticmethod
|
||||
def stopWatchdog(*args, **kwargs) -> dict:
|
||||
model.stopWatchdog()
|
||||
return {"status":200, "result":True}
|
||||
|
||||
def init(self, *args, **kwargs) -> None:
|
||||
printLog("Start Initialization")
|
||||
|
||||
@@ -1598,4 +1617,6 @@ class Controller:
|
||||
if config.AUTO_SPEAKER_SELECT is True:
|
||||
self.setEnableAutoSpeakerSelect()
|
||||
|
||||
printLog("End Initialization")
|
||||
printLog("End Initialization")
|
||||
|
||||
self.startWatchdog()
|
||||
Reference in New Issue
Block a user