OpenWeather One Call API 3.0 via a small Python CLI (stdlib only).
City is optional if OPENWEATHER_DEFAULT_LOCATION is set.
python3 {skillDir}/scripts/weather.py current [city]
python3 {skillDir}/scripts/weather.py forecast [city] --days 5
python3 {skillDir}/scripts/weather.py hourly [city] --hours 12
OPENWEATHER_DEFAULT_LOCATION when configured; otherwise ask the user for a location.共 1 个版本