Laid a base for better hardware detection. Removed unnecessary packages. Removed unnecessary TUI.

This commit is contained in:
Raphaël Numbus
2026-05-17 13:40:08 +02:00
parent 30745adf4f
commit c5d81677a1
3 changed files with 268 additions and 231 deletions
+5 -5
View File
@@ -6,10 +6,10 @@ import sys
### Variables -->
SECRET_PATH = "/run/user/{}/numbus".format(os.getuid()) if os.path.exists("/run/user/{}".format(os.getuid())) else "../secrets"
os.makedirs(SECRET_PATH, exist_ok=True)
LOGS_DIR = "../web/logs/"
PAGES_DIR = "../web/pages/"
CONFIG_DIR = "../web/config/"
SIGNALS_DIR = "../web/signal/"
LOGS_DIR = "../logs/"
PAGES_DIR = "../pages/"
CONFIG_DIR = "../config/"
SIGNALS_DIR = "../signal/"
### <-- Variables
class BridgeHandler(http.server.SimpleHTTPRequestHandler):
@@ -37,7 +37,7 @@ class BridgeHandler(http.server.SimpleHTTPRequestHandler):
if self.path == '/discovery':
# Store secrets in memory-backed filesystem
with open(os.path.join(SECRET_PATH, "live_settings.json"), "wb") as f:
with open(os.path.join(SECRET_PATH, "live.yaml"), "wb") as f:
f.write(post_data)
self.send_response(200)
self.end_headers()