added partial fault light functionality and fixed stdout output direction

This commit is contained in:
UpstreamData
2022-04-14 11:34:21 -06:00
parent f5a41f7b13
commit 2d6891c6d2
3 changed files with 47 additions and 5 deletions

View File

@@ -101,12 +101,14 @@ def start_monitor():
async def monitor():
i = 0
while True:
await ConnectionManager().broadcast_json(
{"IP": "192.168.1.11", "text": "hello\n"}
{"IP": "192.168.1.11", "text": f"hello - {i}\n"}
)
await asyncio.sleep(5)
await ConnectionManager().broadcast_json(miner_data)
i += 1
if __name__ == "__main__":