From d466d3ab477e45093807c9307c4e6e8f7b7204b5 Mon Sep 17 00:00:00 2001 From: /rootzoll Date: Wed, 16 Mar 2022 09:46:58 +0100 Subject: [PATCH] Add TODO for system redis channel --- app/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/utils.py b/app/utils.py index 33be2de..39be402 100644 --- a/app/utils.py +++ b/app/utils.py @@ -151,6 +151,11 @@ async def redis_get(key: str) -> str: return v.decode("utf-8") +# TODO +# idea is to have a second redis channel called system, that the API subscribes to. If for example +# the 'state' value gets changed by the _cache.sh script, it should publish this to this channel +# so the API can forward the change to thru the SSE to the WebUI + class SSE: SYSTEM_INFO = "system_info" HARDWARE_INFO = "hardware_info"