Backup automatico script del 2026-01-25 07:00
This commit is contained in:
@@ -14,6 +14,7 @@ from zoneinfo import ZoneInfo
|
||||
|
||||
import requests
|
||||
from dateutil import parser
|
||||
from open_meteo_client import open_meteo_get
|
||||
|
||||
# =============================================================================
|
||||
# SEVERE WEATHER ALERT CIRCONDARIO (next 48h) - Analisi Temporali Severi
|
||||
@@ -255,7 +256,7 @@ def fetch_forecast(models_value: str, lat: float, lon: float) -> Optional[Dict]:
|
||||
params["hourly"] += ",cape" # ICON potrebbe avere CAPE
|
||||
|
||||
try:
|
||||
r = requests.get(OPEN_METEO_URL, params=params, headers=HTTP_HEADERS, timeout=25)
|
||||
r = open_meteo_get(OPEN_METEO_URL, params=params, headers=HTTP_HEADERS, timeout=(5, 25))
|
||||
if r.status_code == 400:
|
||||
try:
|
||||
j = r.json()
|
||||
|
||||
Reference in New Issue
Block a user