summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-12 04:33:46 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-12 04:33:46 +0300
commit55df7b6632952ba4851069aedb20c35dea652502 (patch)
tree0e5a7ada2c62b61a055d3da0f029913d072a52b9
parentf2a7cafc9be2e1e2ad01c77917108b76624e4a66 (diff)
parent80e5172c0e7174d22f1f30a144fbcd21f722e792 (diff)
Merge branch 'master' of ch1p.io:homekit
-rwxr-xr-xsrc/ipcam_server.py3
-rwxr-xr-xtools/mcuota.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ipcam_server.py b/src/ipcam_server.py
index 8d91ce1..2c4915d 100755
--- a/src/ipcam_server.py
+++ b/src/ipcam_server.py
@@ -572,5 +572,8 @@ if __name__ == '__main__':
except KeyError:
pass
+ asyncio.ensure_future(fix_job())
+ asyncio.ensure_future(cleanup_job())
+
server = IPCamWebServer(config.get_addr('server.listen'))
server.run()
diff --git a/tools/mcuota.py b/tools/mcuota.py
index 21cd25a..46968a8 100755
--- a/tools/mcuota.py
+++ b/tools/mcuota.py
@@ -10,7 +10,8 @@ sys.path.extend([
from time import sleep
from argparse import ArgumentParser
from src.home.config import config
-from src.home.mqtt import MqttRelay, MQTTESPDevice
+from src.home.mqtt import MqttRelay
+from src.home.mqtt.esp import MqttEspDevice
def guess_filename(product: str, build_target: str):
@@ -34,7 +35,7 @@ def relayctl_publish_ota(filename: str,
global stop
stop = True
- mqtt_relay = MqttRelay(devices=MQTTESPDevice(id=device_id, secret=home_secret))
+ mqtt_relay = MqttRelay(devices=MqttEspDevice(id=device_id, secret=home_secret))
mqtt_relay.configure_tls()
mqtt_relay.connect_and_loop(loop_forever=False)
mqtt_relay.push_ota(device_id, filename, published, qos)