Mapping der neu gesendeten Werte auf die in der DB (main.py)
Anzeige der letzten 24h richtig (App.jsx) Y-Bereichsberechnung für alle 3 (THP) dynamisch, Windbön mit angezeigt
This commit is contained in:
@@ -62,7 +62,7 @@ function App() {
|
||||
// Vordefinierte Zeitbereiche
|
||||
switch (timeRange) {
|
||||
case '24h':
|
||||
weatherUrl = `${baseUrl}/weather/history?hours=24`
|
||||
weatherUrl = `${baseUrl}/weather/history?hours=24&limit=5000`
|
||||
rainUrl = null
|
||||
break
|
||||
case '7d':
|
||||
@@ -93,7 +93,7 @@ function App() {
|
||||
|
||||
// Immer die aktuellen 24h-Daten für "Aktuell"-Anzeige laden
|
||||
if (timeRange !== '24h') {
|
||||
const currentUrl = `${baseUrl}/weather/history?hours=24`
|
||||
const currentUrl = `${baseUrl}/weather/history?hours=24&limit=5000`
|
||||
const currentResponse = await fetch(currentUrl)
|
||||
if (currentResponse.ok) {
|
||||
const currentDataResult = await currentResponse.json()
|
||||
|
||||
Reference in New Issue
Block a user