Initial commit: Auto-Charger Logging Web-App

MQTT-Collector (Python/paho-mqtt) speichert abgeschlossene go-e
Wallbox-Ladungen in SQLite; Next.js-Web-App zeigt sie als Tabelle mit
Energie-Summen (Monat/Jahr/gesamt) im werte-next-Design. Zwei
Docker-Container mit gemeinsamem DB-Volume.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-03 19:12:04 +02:00
commit 7dd3215520
26 changed files with 8022 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import AppLayout from "@/components/AppLayout";
import ChargesTable from "@/components/ChargesTable";
import Totals from "@/components/Totals";
import { getCharges, getTotals } from "@/lib/db";
// Immer frisch aus der DB lesen (kein Caching).
export const dynamic = "force-dynamic";
export default function Home() {
const charges = getCharges();
const totals = getTotals();
return (
<AppLayout>
<h2 className="text-xl font-semibold mb-4">Ladungen</h2>
<ChargesTable charges={charges} />
<Totals totals={totals} />
</AppLayout>
);
}