Add new function to get traffic

This commit is contained in:
Urtzi Alfaro
2025-07-23 23:25:50 +02:00
parent 741d8d3bd8
commit 31c30354bc
5 changed files with 447 additions and 40 deletions

View File

@@ -136,9 +136,9 @@ class AEMETClient(BaseAPIClient):
try:
# Madrid area stations (simplified)
madrid_stations = {
"3195": {"lat": 40.4168, "lon": -3.7038, "name": "Madrid Centro"},
"3196": {"lat": 40.4518, "lon": -3.7246, "name": "Madrid Norte"},
"3197": {"lat": 40.3833, "lon": -3.7167, "name": "Madrid Sur"}
"3195": {"lat": 40.4117, "lon": -3.6780, "name": "Madrid Centro"},
"3129": {"lat": 40.4677, "lon": -3.5552, "name": "Madrid Norte"},
"3197": {"lat": 40.2987, "lon": -3.7216, "name": "Madrid Sur"}
}
closest_station = None