name: weather-loader description: "Fetch historical or forecast weather by location or coordinates via Open-Meteo. No API key needed." license: MIT
Fetch daily weather (historical and forecast) by location name or coordinates via Open-Meteo. No API key needed. Scripts: fetch_historical.py (historical), fetch_forecast.py (forecast).
Use this skill when the user asks for: - Historical weather data for a location or coordinates - Weather forecast for the next days - Precipitation or evapotranspiration data for garden planning
Provide either:
- Location: positional or --location / -l (e.g. "Oslo, Norway") — geocoded via Open-Meteo
- Coordinates: --lat and --lon (both required)
小葱技能7w4.net有更新,你可以访问看下。
Days: --days N — history default 10 (max 30), forecast default 7 (max 15).
weather_fetch_historicalRun scripts/fetch_historical.py. Observed weather (Open-Meteo archive API). Default 10 days, max 30 (--days N).
python scripts/fetch_historical.py "Oslo, Norway"
python scripts/fetch_historical.py "Oslo, Norway" --days 20 --format json --kc 1.05
python scripts/fetch_historical.py --location "London, UK" --format csv
python scripts/fetch_historical.py --lat 59.91 --lon 10.75 --days 30
weather_fetch_forecastRun scripts/fetch_forecast.py. Forecast weather. Default 7 days, max 15 (--days N).
python scripts/fetch_forecast.py "Oslo, Norway"
python scripts/fetch_forecast.py "Paris, France" --days 15 --format json --kc 1.0
python scripts/fetch_forecast.py --lat 59.91 --lon 10.75 --days 14 --format csv
| Column | Description |
|---|---|
date |
YYYY-MM-DD |
temp |
Mean daily temperature (°C) |
precip |
Total daily precipitation (mm) |
et0_fao |
FAO-56 reference evapotranspiration (mm/day), after kc |
evaporation |
Estimated crop evaporation (mm) |
agg_precip |
Cumulative precipitation |
agg_evaporation |
Cumulative evapotranspiration |
kc (crop coefficient): multiplier applied to ET₀. Default 1.0.
--lat/--lon.| Symptom | Fix |
|---|---|
| Location not found | Try a simpler string (e.g. "Oslo") or use --lat and --lon |
| Provide either location or both --lat and --lon | Give a location (positional or --location) or both --lat and --lon |
| API failure | Check internet access; retry — Open-Meteo is free and usually reliable |
这是一个质量不错的天气数据获取工具,优点是免费、无需注册账号,支持历史和预报两种数据,查询方式灵活(地名或坐标),输出格式多样。文档清晰,上手容易,能输出温度、降水、蒸发量等实用数据。不足之处是核心功能依赖网络连接,离线时无法使用,且数据来源较单一。总体而言,作为基础天气查询工具足够好用,但如果你需要更专业的天气预报或多种数据源,可能需要其他选择。