Files
logbuch/app/api/wetter/route.ts
Reinhard X. Fürst 4e53a7a5cd Initial implementation: Logbuch Sternwarte Welzheim
Vollständige Next.js 16 Webanwendung als Logbuch für die Sternwarte Welzheim.
4 Kuppeln (West/Ost/Süd/Pluto), BEO-basierte Authentifizierung mit erzwungenem
Passwort-Wechsel beim Erstlogin, MySQL-Backend, Docker-Deployment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 17:11:27 +02:00

9 lines
327 B
TypeScript

import { NextResponse } from 'next/server';
export async function GET() {
const temp = Math.round((8 + Math.random() * 15) * 10) / 10;
const feuchte = Math.round((40 + Math.random() * 50) * 10) / 10;
const druck = Math.round((990 + Math.random() * 30) * 10) / 10;
return NextResponse.json({ temp, feuchte, druck });
}