Weather data loader (both history and forecast)

v1.0.1

Fetch historical or forecast weather by location or coordinates via Open-Meteo. No API key needed.

0· 132·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match included scripts and utilities. The code calls Open‑Meteo forecast, archive, and geocoding endpoints, and implements aggregation/ET calculations that fit the stated functionality.
Instruction Scope
SKILL.md instructs running the provided scripts and documents CLI options. The runtime instructions only reference relevant inputs (location/lat/lon, days, kc) and produce CSV/JSON output; they do not ask for unrelated files, credentials, or broad system data.
Install Mechanism
No install spec; this is instruction+source distribution. requirements.txt lists only pandas and requests — proportional and expected. No downloads from untrusted URLs or archive extraction are present.
Credentials
The skill declares no required environment variables or credentials. Network access to Open‑Meteo endpoints is required; headers set a benign User‑Agent. No sensitive environment/config paths are accessed.
Persistence & Privilege
always is false, agent invocation is allowed (platform default). The skill does not modify other skills or system-wide configs and does not request elevated or persistent privileges.
Assessment
This skill appears internally consistent and implements exactly what it claims: fetching geocoded, historical, and forecast weather from Open‑Meteo and aggregating it. Before installing or running: (1) be aware the scripts perform outbound HTTP requests to Open‑Meteo (your IP and query strings are visible to that service); (2) install dependencies (pandas, requests) in a virtualenv or sandbox; (3) if you have strict privacy/network policies, run tests in an isolated environment first — tests perform live API calls; (4) review code if you require extra assurance (the code is short and readable); and (5) avoid enabling any skill-wide autonomous behaviors in high‑sensitivity environments without network controls (the skill needs network access to function). Overall, no secrets are requested and no unexplained or risky behavior was found.

Like a lobster shell, security has layers — review code before you run it.

latestvk97aax8mg37rh677r49f06ytwh83127h

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

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

Files

7 total
Select a file
Select a file to preview.

Comments

Loading comments…