switching to high quality piper tts and added label translations

This commit is contained in:
Matthias Hinrichs
2026-01-29 23:48:19 +01:00
commit d80c619df9
3934 changed files with 1451600 additions and 0 deletions
+70
View File
@@ -0,0 +1,70 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home-Bro | Dashboard</title>
<link rel="stylesheet" href="/static/style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="background-blobs">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
</div>
<main class="dashboard">
<header>
<h1>Home-Bro <span class="accent-text">Brain</span></h1>
<div id="status-indicator" class="status-badge">Live</div>
</header>
<section class="main-grid">
<div class="card live-view-card">
<div class="card-header">
<h2>Letzter Snapshot</h2>
<span id="last-update" class="timestamp">-</span>
</div>
<div class="image-container">
<img
id="latest-image"
src=""
alt="Warte auf Bild..."
class="fallback-img"
/>
<div id="detection-overlay" class="overlay"></div>
</div>
</div>
<div class="card info-card">
<div class="card-header">
<h2>Analyse</h2>
<span id="room-name" class="room-label">Unbekannt</span>
</div>
<div class="analysis-content">
<p id="analysis-text">Warte auf Daten vom Satelliten...</p>
</div>
<div class="system-stats">
<div class="stat">
<span class="label">Status</span>
<span class="value green">Online</span>
</div>
<div class="stat">
<span class="label">IP Adresse</span>
<span id="brain-ip" class="value">Lade...</span>
</div>
<div class="stat">
<span class="label">Hostname</span>
<span id="brain-host" class="value">Lade...</span>
</div>
</div>
</div>
</section>
</main>
<script src="/static/script.js?v=2"></script>
</body>
</html>
+38
View File
@@ -0,0 +1,38 @@
async function fetchInfo() {
try {
const response = await fetch('/api/info');
const data = await response.json();
document.getElementById('brain-ip').textContent = `${data.ip}:${data.port}`;
document.getElementById('brain-host').textContent = data.hostname;
} catch (error) {
console.error('Fehler beim Abrufen der Info:', error);
}
}
async function updateDashboard() {
try {
const response = await fetch('/api/latest');
const data = await response.json();
if (data.timestamp) {
document.getElementById('last-update').textContent = data.timestamp;
document.getElementById('room-name').textContent = data.room;
document.getElementById('analysis-text').textContent = data.comment;
const img = document.getElementById('latest-image');
if (data.image_url) {
img.src = data.image_url;
img.classList.remove('fallback-img');
}
}
} catch (error) {
console.error('Fehler beim Abrufen der Daten:', error);
}
}
// Alle 2 Sekunden aktualisieren
setInterval(updateDashboard, 2000);
// Initialer Aufruf
fetchInfo();
updateDashboard();
+240
View File
@@ -0,0 +1,240 @@
:root {
--bg-color: #05070a;
--card-bg: rgba(255, 255, 255, 0.03);
--border-color: rgba(255, 255, 255, 0.1);
--accent-color: #38bdf8;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--glass-blur: blur(12px);
--neon-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Outfit", sans-serif;
background-color: var(--bg-color);
color: var(--text-primary);
overflow-x: hidden;
min-height: 100vh;
}
/* Background Animated Blobs */
.background-blobs {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.15;
animation: move 20s infinite alternate;
}
.blob-1 {
width: 400px;
height: 400px;
background: var(--accent-color);
top: -100px;
right: -100px;
}
.blob-2 {
width: 300px;
height: 300px;
background: #f43f5e;
bottom: -50px;
left: -50px;
animation-delay: -5s;
}
@keyframes move {
from {
transform: translate(0, 0);
}
to {
transform: translate(100px, 100px);
}
}
/* Dashboard Layout */
.dashboard {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 3rem;
}
h1 {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -1px;
}
.accent-text {
color: var(--accent-color);
text-shadow: var(--neon-shadow);
}
.status-badge {
background: rgba(34, 197, 94, 0.2);
color: #4ade80;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-badge::before {
content: "";
width: 8px;
height: 8px;
background: #22c55e;
border-radius: 50%;
box-shadow: 0 0 10px #22c55e;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
}
.main-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
}
@media (max-width: 900px) {
.main-grid {
grid-template-columns: 1fr;
}
}
/* Card Styling */
.card {
background: var(--card-bg);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-color);
border-radius: 24px;
padding: 1.5rem;
transition:
transform 0.3s ease,
border-color 0.3s ease;
}
.card:hover {
border-color: rgba(255, 255, 255, 0.2);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.card-header h2 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-secondary);
}
.timestamp,
.room-label {
font-size: 0.85rem;
background: rgba(255, 255, 255, 0.05);
padding: 4px 12px;
border-radius: 8px;
}
/* Image styling */
.image-container {
width: 100%;
aspect-ratio: 16/9;
background: #000;
border-radius: 16px;
overflow: hidden;
position: relative;
border: 1px solid rgba(255, 255, 255, 0.05);
}
#latest-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.5s ease;
}
.fallback-img {
opacity: 0.3;
}
/* Analysis Styling */
.analysis-content {
background: rgba(255, 255, 255, 0.02);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
min-height: 120px;
display: flex;
align-items: center;
border-left: 4px solid var(--accent-color);
}
#analysis-text {
font-size: 1.1rem;
line-height: 1.6;
font-style: italic;
color: var(--text-primary);
}
.system-stats {
border-top: 1px solid var(--border-color);
padding-top: 1.5rem;
}
.stat {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.stat .label {
color: var(--text-secondary);
}
.stat .value {
font-weight: 600;
}
.stat .value.green {
color: #4ade80;
}