Initial commit: homelab configs, Docker, Neo4j, voice control, Gitea

This commit is contained in:
mo
2026-05-10 02:02:03 +02:00
commit 4dea5925fb
42 changed files with 5680 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
"""Quick smoke test voor imports."""
import os, sys
os.environ["PG_HOST"] = "192.168.1.211"
os.environ["PG_PORT"] = "5433"
os.environ["PG_USER"] = "mo"
os.environ["PG_PASSWORD"] = "WaQTUw2t"
os.environ["PG_DATABASE"] = "homelab"
os.environ["NEO4J_URI"] = "neo4j://192.168.1.211:49153"
os.environ["NEO4J_USER"] = "neo4j"
os.environ["NEO4J_PASSWORD"] = "WaQTUw2t"
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
print("Testing imports...")
try:
from src.web_server import app
print(" web_server: OK")
except Exception as e:
print(f" web_server: FAIL - {e}")
try:
from src.dashboard_api import router
print(" dashboard_api: OK")
except Exception as e:
print(f" dashboard_api: FAIL - {e}")
try:
from src.mcp_server import server
print(" mcp_server: OK")
except Exception as e:
print(f" mcp_server: FAIL - {e}")
try:
from src.ha_client import HAClient
print(" ha_client: OK")
except Exception as e:
print(f" ha_client: FAIL - {e}")
try:
from src.whisper_client import transcribe
print(" whisper_client: OK")
except Exception as e:
print(f" whisper_client: FAIL - {e}")
try:
from src.pg_client import query
print(" pg_client: OK")
except Exception as e:
print(f" pg_client: FAIL - {e}")
try:
from src.neo4j_client import get_all_devices, close
devices = get_all_devices()
print(f" neo4j_client: OK ({len(devices)} devices)")
close()
except Exception as e:
print(f" neo4j_client: FAIL - {e}")
print("\nAll imports verified.")