← 返回
未分类 中文

Weather data loader (both history and forecast)

Fetch historical or forecast weather by location or coordinates via Open-Meteo. No API key needed.
使用 Open‑Meteo 按位置或坐标获取历史或预报天气,无需 API 密钥。
minshi-veyt minshi-veyt 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 471
下载
💾 5
安装
1
版本
#latest

概述

Weather Data Fetcher

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).

When to invoke

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

Location vs coordinates

Provide either:

  • Location: positional or --location / -l (e.g. "Oslo, Norway") — geocoded via Open-Meteo
  • Coordinates: --lat and --lon (both required)

Days: --days N — history default 10 (max 30), forecast default 7 (max 15).

weather_fetch_historical

Run 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_forecast

Run 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

Output columns

ColumnDescription
------
dateYYYY-MM-DD
tempMean daily temperature (°C)
precipTotal daily precipitation (mm)
et0_faoFAO-56 reference evapotranspiration (mm/day), after kc
evaporationEstimated crop evaporation (mm)
agg_precipCumulative precipitation
agg_evaporationCumulative evapotranspiration

kc (crop coefficient): multiplier applied to ET₀. Default 1.0.

Technical notes

  • Historical: Open-Meteo archive API (observation/reanalysis); hourly → daily (temp = mean, precip/ET = sum).
  • Forecast: Open-Meteo forecast API; same daily aggregation.
  • Geocoding: location names resolved via Open-Meteo Geocoding API when not using --lat/--lon.

Troubleshooting

SymptomFix
------
Location not foundTry a simpler string (e.g. "Oslo") or use --lat and --lon
Provide either location or both --lat and --lonGive a location (positional or --location) or both --lat and --lon
API failureCheck internet access; retry — Open-Meteo is free and usually reliable

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 10:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Watcher

robin797860
管理和监控个人股票自选列表,支持利用同花顺数据添加、删除、列出股票及汇总近期表现。适用于用户希望追踪特定股票、获取表现汇总或管理自选列表时。
★ 112 📥 46,533
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,569
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,559