REFACTOR AEMET weather file

This commit is contained in:
Urtzi Alfaro
2025-07-24 16:07:58 +02:00
parent e3cb711206
commit 37dce4886e
8 changed files with 2582 additions and 380 deletions

View File

@@ -487,7 +487,7 @@ class TrainingService:
params["end_date"] = request.end_date.isoformat()
response = await client.get(
f"{settings.DATA_SERVICE_URL}/api/weather",
f"{settings.DATA_SERVICE_URL}/weather/history",
params=params,
timeout=30.0
)
@@ -515,7 +515,7 @@ class TrainingService:
params["end_date"] = request.end_date.isoformat()
response = await client.get(
f"{settings.DATA_SERVICE_URL}/api/traffic",
f"{settings.DATA_SERVICE_URL}/traffic/historical",
params=params,
timeout=30.0
)