diff --git a/README.md b/README.md index 473ec18..87b095f 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,38 @@ Dies ist der Client-Teil des Home-Bro Projekts, der auf einem Raspberry Pi läuf - Bildaufnahme (Snapshot) via Webcam - Upload zum Brain (FastAPI) - Audio-Wiedergabe der sarkastischen Kommentare +- Web-UI zur Konfiguration (Brain URL, Wake-Word, Picovoice Key) ## Installation -1. Repository klonen. -2. `pip install -r requirements.txt` -3. `.env` Datei basierend auf `.env.example` erstellen. -4. Starten: `python app/main.py` +1. **Repository klonen**: + + ```bash + git clone git@git.hnrx.net:homelab/home-bro-client.git + cd home-bro-client + ``` + +2. **Virtuelle Umgebung erstellen & aktivieren**: + + ```bash + python3 -m venv venv + source venv/bin/activate + ``` + +3. **Abhängigkeiten installieren**: + + ```bash + pip install -r requirements.txt + ``` + +4. **Konfiguration**: + `.env` Datei basierend auf `.env.example` erstellen oder später über das Web-UI konfigurieren. + +5. **Starten**: + + ```bash + python app/main.py + ``` + +6. **Web-UI aufrufen**: + Öffne `http://:8080` in deinem Browser. diff --git a/app/main.py b/app/main.py index 8725a33..0998dc6 100644 --- a/app/main.py +++ b/app/main.py @@ -29,6 +29,10 @@ class Config(BaseModel): async def read_index(): return FileResponse("static/index.html") +@app.get("/favicon.ico", include_in_schema=False) +async def favicon(): + return FileResponse("static/index.html") # Or just return 204 + @app.get("/config") async def get_config(): return { diff --git a/static/index.html b/static/index.html index d40d47a..9c72242 100644 --- a/static/index.html +++ b/static/index.html @@ -4,7 +4,7 @@ Home-Bro Client | Satellite Config - + Gespeichert! - +