wave2: schoenkitchen page, seafile restore-doctrine, proxmox vm_disks convention, log entry
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
- [[systems/immich]] — K8s-Immich v3.3.1 PROD (86.316 Assets, Stand 10.10.), Legacy CT111 stillgelegt
|
- [[systems/immich]] — K8s-Immich v3.3.1 PROD (86.316 Assets, Stand 10.10.), Legacy CT111 stillgelegt
|
||||||
- [[systems/nut]] — NUT/UPS Shutdown-Kaskade, APC ES 700G @ ms-a2-1, FSD-Cluster-Shutdown
|
- [[systems/nut]] — NUT/UPS Shutdown-Kaskade, APC ES 700G @ ms-a2-1, FSD-Cluster-Shutdown
|
||||||
- [[systems/hermes-agent-01]] — lokaler Hermes-Runner: Storage-Governance, Backup-Pipeline (RCA 08.10.), Watchdogs
|
- [[systems/hermes-agent-01]] — lokaler Hermes-Runner: Storage-Governance, Backup-Pipeline (RCA 08.10.), Watchdogs
|
||||||
|
- [[systems/schoenkitchen]] — Essensplanungs-App: FastAPI:8420, CT99999-Traefik, Jinja2-Pitfall (aus nutri-L0 ausgelagert 10/2026)
|
||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
- [[concepts/network-architecture]] — 10.0.X.Y Schema, VLANs
|
- [[concepts/network-architecture]] — 10.0.X.Y Schema, VLANs
|
||||||
|
|||||||
@@ -1,5 +1,22 @@
|
|||||||
# Memory Log
|
# Memory Log
|
||||||
|
|
||||||
|
## [2026-10-11] l0-purpose-fit-audit | Wave 2: Zweck-Fit aller L0/SOUL-Dateien (aller Profile) hergestellt
|
||||||
|
- **Auftrag:** „USER.md franst aus — prüfe alle Dateien auf ihren eigentlichen Zweck", später verschärft: gleicher Maßstab überall (auch für default).
|
||||||
|
- **Mechanik-Befund (Source-verifiziert):** Profil-Sessions sehen die default-L0 **NICHT** (`get_hermes_home()/memories/` je Profil; 5 Gateways mit eigenen state.db). „Basis in default-MEMORY"-Pointer in Profil-L0 waren daher irreführend → alle 4 Profil-MEMORYs auf Wiki-Pointer umgestellt.
|
||||||
|
- **Rot behoben:** pers-SOUL-Kalorien-Split-Brain (statische 97 kg/3.255 kcal/BMR 1874 vs. HA-Truth 92,4 kg/live) → Struktur-Block: Zahlen nur aus HA-Tracker/Wiki, EFT-Anker 82 kg, Beispiele neutralisiert. Safety-Core (Nie-löschen/Nie-auto-Mail/crash-alert) in infra/nutri/pers-USER nachgerüstet. infra-USER Chef-Widerspruch rekonziliert.
|
||||||
|
- **Gelb/grün behoben:** default-USER decluttered (IaC/Laya-Dubletten raus — MEMORY trägt sie; Resilience→infra-SOUL-SLA; Sauna-Binding→pers-USER; Restore-Doktrin→Wiki seafile; vm_disks→Wiki proxmox). nutri-MEMORY: SchoenKitchen+CT99999+Jinja2→Wiki systems/schoenkitchen (NEU), Rezept-Feedback→Hindsight (Ofen-Lachs migriert). dyn: E1/E2/E3-Status USER→MEMORY, SOUL Schul→KiGa-Reste. nutri-SOUL: Rezept-DB 36.251 (statt „25.000+"), Filename-Konvention Unterstrich, Feedback→hindsight-Doktrin.
|
||||||
|
- **Meta-Lesson:** Eigene erste Bewertung hatte Grade-Inflation für default („✅ gut" bei 6 fehlplatzierten Zeilen) — symmetrischer Maßstab erst auf Nachfrage des Users. Solution Doc: architecture/2026-10-11-l0-purpose-fit-audit.md.
|
||||||
|
- AGENTS.md(iac)-Write vom Protection-Guard geblockt (Approval-Timeout) — vm_disks-Konvention stattdessen ins Wiki; AGENTS.md unangetastet.
|
||||||
|
|
||||||
|
## [2026-10-11] pv-forecast-fixes | Alle 3 PV-Forecast-Fixes deployed (User-GO)
|
||||||
|
- (1) TZ-Fix v2-Optimizer deployed 18:29 (tzinfo=BERLIN, Backup .bak-20261011-tzfix): Live-Tick 18:28 zeigte korrekte Sunset-Kurve (36 W/18:30 statt ~1750 W Phantom). Offline-Unittest bewies buggy(t)==fixed(t−2h) exakt.
|
||||||
|
- (2) Reload-Race-Crash 18:43 (Solcast-Options-Reload → Sensoren 16s unavailable → Tick crashte doctrine-konform): Gefixt via collect_solcast_pools() 3×10s-Retry, loud, beide Pool-Blöcke (main+shadow) ersetzt.
|
||||||
|
- (3) forecast.solar: KEIN kompletter Rebuild nötig — Subentries validiert (Dach SW/SO-Split 62/38 ↔ 5760/4000 W passt zu Messdaten). Ergänzt: "Zelt Südwest" (65°/225°/750 W) + "Zelt Nordost" (65°/45°/750 W) für HM-1500 (2× 750 W SW/NE), Device-Rename via WS config/device_registry/update, Area Photovoltaik. HA-Parser KORREKT — früherer +2h-Verdacht war Eigen-Curl-Artefakt (time=utc fehlte); Zelt-Sensoren fielen exakt zum Sunset auf 0.
|
||||||
|
- (4) Solcast auto_dampen=True + get_actuals=True (Validator-Kopplung!), Kalibrierquelle sensor.pv_production; Actuals-Fetch verifiziert (solcast-actuals.json 91 KB, generation ab 03.10.), Dämpfung startet 1.0.
|
||||||
|
- (5) sensor.pv_daily_energy_total repariert (Options-Flow): SBS-Batteriedurchsatz RAUS, Hoymiles REIN: 19,44→22,03 kWh.
|
||||||
|
- HA 2026.9.4 API: Config-Flow POST /api/config/config_entries/flow; Options /options/flow; Device-Rename nur via WS config/device_registry/update; Entry-Titel-Endpoint fehlt (Subentry-Titel via Config-Flow "title"-Step).
|
||||||
|
- Abgeschlossen: 18:58-Tick-Verifikation des Retry-Rings BESTANDEN (sauber durchgelaufen, plan_pv_forecast now=12 W, positive 24h-Kosten 9,08 € statt Phantom-Einnahmen). Offen: Solcast-Dämpfungs-Learning über kommende Tage beobachten.
|
||||||
|
|
||||||
## [2026-10-11] pv-forecast-audit | PV-Anlagen-/Forecast-Inventur + Solcast-Decontamination
|
## [2026-10-11] pv-forecast-audit | PV-Anlagen-/Forecast-Inventur + Solcast-Decontamination
|
||||||
- Inventur 6 Arrays / 4 WR: 2×SMA SB (je 2 Strings, Ausrichtung je String unklar), SMA SBS (BYD, keine PV-Strings), HM-1500 Zelt (2 Module SW/NE), Schuppen 1+2 (SW, 5° flach). Antwort auf "vernünftige Forecasts für alle?": NEIN — HM-1500 völlig ohne Forecast, forecast.solar 4 Sites parametrisch fragwürdig (Dach-Sites ohne belastbare WR-Zuordnung), Solcast nur 1 gemittelte Site.
|
- Inventur 6 Arrays / 4 WR: 2×SMA SB (je 2 Strings, Ausrichtung je String unklar), SMA SBS (BYD, keine PV-Strings), HM-1500 Zelt (2 Module SW/NE), Schuppen 1+2 (SW, 5° flach). Antwort auf "vernünftige Forecasts für alle?": NEIN — HM-1500 völlig ohne Forecast, forecast.solar 4 Sites parametrisch fragwürdig (Dach-Sites ohne belastbare WR-Zuordnung), Solcast nur 1 gemittelte Site.
|
||||||
- ROTER Befund 1: Solcast-Aggregat (PV-Input des EMHASS-v2-Optimizers!) enthielt die Solcast-DEMO-Site "Ogdak Netherlands" (Apeldoorn/NL) — ~9,6 von 23,4 kWh Tagesphantom. User-Freigabe erteilt, sofort gefixt via HA-Options-Flow HTTP-Endpoint (HA 2026.9.4: WS-Flow-Befehle entfernt!, Endpoint `/api/config/config_entries/options/flow`): exclude_sites=["59c8-caae-52f5-1686"]. Verifikation: Prognose heute 23,44→13,83 kWh; Optimizer-Tick 18:13: PV-Summe 59,0→36,3 kWh/24h, Peak 10,0→5,7 kW.
|
- ROTER Befund 1: Solcast-Aggregat (PV-Input des EMHASS-v2-Optimizers!) enthielt die Solcast-DEMO-Site "Ogdak Netherlands" (Apeldoorn/NL) — ~9,6 von 23,4 kWh Tagesphantom. User-Freigabe erteilt, sofort gefixt via HA-Options-Flow HTTP-Endpoint (HA 2026.9.4: WS-Flow-Befehle entfernt!, Endpoint `/api/config/config_entries/options/flow`): exclude_sites=["59c8-caae-52f5-1686"]. Verifikation: Prognose heute 23,44→13,83 kWh; Optimizer-Tick 18:13: PV-Summe 59,0→36,3 kWh/24h, Peak 10,0→5,7 kW.
|
||||||
|
|||||||
@@ -141,14 +141,18 @@ Spalten). Auswertung: `python3 ~/scripts/report_phase2.py`.
|
|||||||
|
|
||||||
## Known Issues (2026-10-11)
|
## Known Issues (2026-10-11)
|
||||||
|
|
||||||
1. **TZ-Bug in v2 build_pv_series** (numerisch bewiesen): `norm_key()` erzeugt Berlin-Wallclock-Keys,
|
1. **TZ-Bug in v2 build_pv_series — GEFIXT 11.10. 18:29**: `norm_key()` erzeugt Berlin-Wallclock-Keys,
|
||||||
Zurückparsen als `tzinfo=timezone.utc` → +2h-Versatz im gesamten PV-Plan. Fix pending Approval:
|
Zurückparsen war als `tzinfo=timezone.utc` → +2h-Versatz im gesamten PV-Plan. Fix deployed:
|
||||||
`stamps = [datetime.strptime(k, "%Y%m%d%H%M").replace(tzinfo=BERLIN) for k in keys]`.
|
`stamps = [datetime.strptime(k, "%Y%m%d%H%M").replace(tzinfo=BERLIN) for k in keys]`.
|
||||||
|
Backup: `emhass_optimizer_v2.py.bak-20261011-tzfix`. Live-Tick 18:28: korrekte Sunset-Kurve.
|
||||||
2. **Solcast-Kontamination (GEFIXT 11.10.)**: Demo-Site "Ogdak Netherlands" trug ~9,6 kWh/Tag
|
2. **Solcast-Kontamination (GEFIXT 11.10.)**: Demo-Site "Ogdak Netherlands" trug ~9,6 kWh/Tag
|
||||||
Phantom-PV bei; via Options-Flow `exclude_sites=["59c8-caae-52f5-1686"]` entfernt.
|
Phantom-PV bei; via Options-Flow `exclude_sites=["59c8-caae-52f5-1686"]` entfernt.
|
||||||
Optimizer-Tick danach: PV-Summe 59,0→36,3 kWh/24h, Peak 10,0→5,7 kW.
|
Optimizer-Tick danach: PV-Summe 59,0→36,3 kWh/24h, Peak 10,0→5,7 kW.
|
||||||
3. Solcast läuft nur mit EINER gemittelten Site ("Schön Rohr", 16 kW, -132,6°/19°) für die
|
3. **Reload-Race-Crash (GEHÄRTET 11.10. 18:47)**: Solcast-Options-Reload → Sensoren ~16 s
|
||||||
gesamte physisch heterogene Anlage (SO/SW-Dach + flach SW-Schuppen + SW/NE-Zelt).
|
`unavailable` → 18:43-Tick crashte. Fix: `collect_solcast_pools()` 3×10s-Retry, loud.
|
||||||
|
4. Solcast läuft mit EINER gemittelten Site ("Schön Rohr", 16 kW, -132,6°/19°); seit 11.10.
|
||||||
|
kalibriert via `auto_dampen=True` + `get_actuals=True` + `sensor.pv_production` als
|
||||||
|
Generationsquelle (Validator-Kopplung: auto_dampen erfordert get_actuals).
|
||||||
|
|
||||||
## Zugriff
|
## Zugriff
|
||||||
|
|
||||||
|
|||||||
@@ -103,8 +103,12 @@ Aggregation: `sensor.pv_production` = min_max über 5 Sensoren (2×SMA grid_powe
|
|||||||
3. **EMHASS-Addon intern** (open-meteo + pvlib, generisches Fronius/CSUN-Modell) — irrelevant, v2-Optimizer published eigene Pläne.
|
3. **EMHASS-Addon intern** (open-meteo + pvlib, generisches Fronius/CSUN-Modell) — irrelevant, v2-Optimizer published eigene Pläne.
|
||||||
|
|
||||||
**Bekannte Issues (11.10.):**
|
**Bekannte Issues (11.10.):**
|
||||||
- 🔴 TZ-Bug `emhass_optimizer_v2.py::build_pv_series`: Berlin-Wallclock-Keys werden als UTC re-tagged → +2h-Versatz im PV-Plan (numerisch bewiesen: Published 17:30=2384 W vs. richtig ~163 W). 1-Zeilen-Fix ausstehend (Approval): `replace(tzinfo=timezone.utc)` → `replace(tzinfo=BERLIN)` (Zeile ~246).
|
- ✅ TZ-Bug `emhass_optimizer_v2.py::build_pv_series` **GEFIXT 18:29** (`tzinfo=BERLIN` statt utc, Backup `.bak-20261011-tzfix`): Live-Tick 18:28 zeigte erstmals korrekte Abendkurve (36 W/18:30, 0 W nach Sunset statt ~1750 W Phantom).
|
||||||
- 🟡 Solcast-Single-Site "Schön Rohr" = Mittelung (1 Azimut/Tilt für 6 Arrays mit SO/SW/flach-Mix) — Struktur grob falsch, Kalibrierung via auto_dampen derzeit aus.
|
- ✅ Reload-Race-Gefahr **GEHÄRTET 18:47**: `collect_solcast_pools()` mit 3×10s-Retry (Solcast-Options-Reload setzt Sensoren ~16s `unavailable`; 18:43-Tick crashte laut doctrine-konform).
|
||||||
|
- ✅ forecast.solar: **Zelt-Sites ergänzt** — "Zelt Südwest" (65°/225°/750 W) + "Zelt Nordost" (65°/45°/750 W), Area Photovoltaik. Dach/Schuppen-Entries validiert (SW/SE-Split ~62/38 ↔ 5,76/4,0 kWp passt zu Messdaten). HA-Parser ist KORREKT (Bibliothek fordert `time=utc` an; früherer +2h-Verdacht war Eigen-Parse-Artefakt).
|
||||||
|
- ✅ Solcast: `auto_dampen=True` + `get_actuals=True` + Kalibrierquelle `sensor.pv_production` (Validator-Kopplung "dampen_without_actuals" beachtet). Dämpfung lernt ab jetzt.
|
||||||
|
- ✅ `sensor.pv_daily_energy_total` repariert: Hoymiles REIN, SBS-Batteriedurchsatz RAUS (19,44→22,03 kWh, real ~22,4).
|
||||||
|
- 🟡 Solcast-Single-Site "Schön Rohr" = Mittelung (1 Azimut/Tilt für 6 Arrays) — Struktur grob, aber jetzt kalibrierend gedämpft; Feintuning über auto_dampen-Daten (Tage) beobachten.
|
||||||
- Solution Doc: `docs/solutions/integrations/2026-10-11-solcast-sample-site-contamination-and-tz-shift.md`
|
- Solution Doc: `docs/solutions/integrations/2026-10-11-solcast-sample-site-contamination-and-tz-shift.md`
|
||||||
|
|
||||||
## Garagentor (free@home ch0003) — Flanken-Toggle-Semantik
|
## Garagentor (free@home ch0003) — Flanken-Toggle-Semantik
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ modified: "2026-09-30"
|
|||||||
- **Guests:** ~30 LXC + ~10 QEMU VMs
|
- **Guests:** ~30 LXC + ~10 QEMU VMs
|
||||||
|
|
||||||
## Storage
|
## Storage
|
||||||
- **vm_disks:** Primärer Storage für alle VMs/CTs (SSD)
|
- **vm_disks:** Primärer Storage für alle VMs/CTs (SSD). **Konvention (Chef-Vorgabe):** Disk-Definitionen in `vm_disks` pflegen, nicht inline in VM-Ressourcen. CT108 ist dekommissioniert (nicht mehr referenzieren).
|
||||||
- **hdd_templates:** CT Templates
|
- **hdd_templates:** CT Templates
|
||||||
- **Ceph RBD:** ceph-flash, ceph-hdd Pools (über K8s CSI)
|
- **Ceph RBD:** ceph-flash, ceph-hdd Pools (über K8s CSI)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
title: SchönKitchen
|
||||||
|
category: Systems
|
||||||
|
tags: [schoenkitchen, recipes, fastapi, traefik, nutrition, essensplanung]
|
||||||
|
created: "2026-10-11"
|
||||||
|
modified: "2026-10-11"
|
||||||
|
---
|
||||||
|
|
||||||
|
# SchönKitchen (Essensplanungs-Web-App)
|
||||||
|
|
||||||
|
> Ausgelagert aus nutrition-coach L0 (Memory-Audit 11.10.2026): Deployment-Specs gehören ins Wiki, nicht ins hot Memory.
|
||||||
|
|
||||||
|
## Deployment (PROD)
|
||||||
|
- **URL:** https://essen.familie-schoen.com
|
||||||
|
- **App:** FastAPI auf Port 8420
|
||||||
|
- **Repo:** `dominik/schoenkitchen` auf git.schoen.codes (privat)
|
||||||
|
- **Public Traffic:** via CT 99999 Traefik (n5pro 10.0.20.70) — K8s-Ingress allein genügt NICHT, Router+Service müssen auch in der CT-99999-Config stehen (`/etc/traefik/conf.d/explicit-http.yml`, file provider, watch:true). Detail-Skill: `family-meal-planning` → `references/ct99999-traefik-proxy.md`
|
||||||
|
|
||||||
|
## Views & Datenmodell
|
||||||
|
- `/` — Startseite
|
||||||
|
- `/vorplanung` — Wochenplanung
|
||||||
|
- `/rezepte` — 74k-Katalog: Multi-Level-Kategorie-Dropdown, Smart Filters, Favoriten, Similar-Rezepte, Add-to-Plan
|
||||||
|
- **DB-Tabellen:** `recipe_favorites`, `plan_items`
|
||||||
|
|
||||||
|
## Bekannte Pitfalls
|
||||||
|
- **Jinja2 + Inline-JS:** NIEMALS JS mit escaped Quotes (`\"`) in Jinja2-Templates. `{% raw %}` verdoppelt Backslashes. **Lösung:** externes `.js` in `static/` (aktuell `static/rezepte.js`).
|
||||||
|
|
||||||
|
## Qualitätssicherung (Stand Launch)
|
||||||
|
- Security-Audit: 46 Checks
|
||||||
|
- pytest: 51 Tests
|
||||||
|
- Playwright E2E: 9 Pass
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
- Authelia-Integration (OIDC)
|
||||||
|
- Multi-Tenant
|
||||||
|
|
||||||
|
## Related
|
||||||
|
- Profil `nutrition-coach` (Meal-Planning-Crons, Rezept-DB `real_recipes.jsonl` mit 36.251 Chefkoch-Rezepten)
|
||||||
|
- [[concepts/network-architecture]] — CT 99999 / Public-Traefik-Topologie
|
||||||
+2
-1
@@ -125,7 +125,8 @@ Block-Level-Dedupe (Foto-Bestand!), effizientes Sync-Protokoll, etabliertes OIDC
|
|||||||
- **Offen:** 2 Ghost-Profile (`bec3ed8a…@auth.local`, `406e2202…@auth.local`) existieren weiterhin als User-Accounts → Löschung nur nach Go.
|
- **Offen:** 2 Ghost-Profile (`bec3ed8a…@auth.local`, `406e2202…@auth.local`) existieren weiterhin als User-Accounts → Löschung nur nach Go.
|
||||||
|
|
||||||
### Cleanup EXECUTED (2026-10-10, per Admin-API, nach GO)
|
### Cleanup EXECUTED (2026-10-10, per Admin-API, nach GO)
|
||||||
- **20 Repos soft-gedeleted** → Admin-Papierkorb (restore-fähig, kein GC konfiguriert, keine Retention-Automatik): 18 Leerformen (0 Blocks frisch per du verifiziert) + 2 verifizierte Subsets (_Recovery 06892f29 ⊂ 472572d6, CodeCamp:N 8cd0362a ⊂ 60fe22e3).
|
- **20 Repos soft-gedelete** → Admin-Papierkorb (restore-fähig, kein GC konfiguriert, keine Retention-Automatik): 18 Leerformen (0 Blocks frisch per du verifiziert) + 2 verifizierte Subsets (_Recovery 06892f29 ⊂ 472572d6, CodeCamp:N 8cd0362a ⊂ 60fe22e3).
|
||||||
|
- **RESTORE-DOKTRIN (Chef-Vorgabe, 10/2026):** Restore immer AS-IS + Owner-Fix — NIEMALS Inhalts-Merge. (Aus L0 USER.md ausgelagert 11.10.2026, Memory-Audit.)
|
||||||
- **Bestand danach: 36 Libraries** (dominik 30, sarah 3, Ghost 3) — Sarah sieht ihre 3 (Meine Bib, Sparda Consult, evo-X) regulär.
|
- **Bestand danach: 36 Libraries** (dominik 30, sarah 3, Ghost 3) — Sarah sieht ihre 3 (Meine Bib, Sparda Consult, evo-X) regulär.
|
||||||
- Ghost-Rest = exakt die 3 Content-Repos (Bücher 1.369 MB, Arbeit 813 MB, Auto 161 MB) — nächster Schritt: Content in dominik-Repos retten, dann Ghost-Repos löschen.
|
- Ghost-Rest = exakt die 3 Content-Repos (Bücher 1.369 MB, Arbeit 813 MB, Auto 161 MB) — nächster Schritt: Content in dominik-Repos retten, dann Ghost-Repos löschen.
|
||||||
- 35a6f96c (My Library Template) NICHT gelöscht — Admin-API 404 (erklärt vermutlich die 56-vs-57-Diskrepanz); separat klären.
|
- 35a6f96c (My Library Template) NICHT gelöscht — Admin-API 404 (erklärt vermutlich die 56-vs-57-Diskrepanz); separat klären.
|
||||||
|
|||||||
Reference in New Issue
Block a user