/install knowair-historical
KnowAir Historical — Past Weather Data
Query historical weather data for up to 72 hours back using the Caiyun Weather API.
Prerequisites
- A valid Caiyun Weather API token set as
CAIYUN_TOKENenvironment variable, or stored in~/.config/knowair/token. - Coordinates (longitude, latitude) for the target location.
Quick Start
python3 scripts/query_historical.py --lng 116.3176 --lat 39.9760 --hours 24
Workflow
- Resolve coordinates — convert city name to coordinates if needed.
- Run the script:
python3 scripts/query_historical.py --lng \x3CLNG> --lat \x3CLAT> --hours \x3CHOURS> - Present results — summarize temperature range, weather changes, and notable events in the past period.
Options
| Flag | Description | Default |
|---|---|---|
--lng |
Longitude (-180 to 180) | Required |
--lat |
Latitude (-90 to 90) | Required |
--hours |
Hours to look back (1-72) | 24 |
--lang |
Output language: en or zh |
en |
Defaults
- Hours back: 24
- Language:
en
Failure Handling
- Missing token → exit code 2 with setup instructions.
- API error → exit code 1 with error details.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install knowair-historical - After installation, invoke the skill by name or use
/knowair-historical - Provide required inputs per the skill's parameter spec and get structured output
What is KnowAir Historical 明气历史天气?
Get historical weather data up to 72 hours back via the Caiyun Weather API. Returns past temperature, weather conditions, precipitation, wind, humidity, appa... It is an AI Agent Skill for Claude Code / OpenClaw, with 229 downloads so far.
How do I install KnowAir Historical 明气历史天气?
Run "/install knowair-historical" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is KnowAir Historical 明气历史天气 free?
Yes, KnowAir Historical 明气历史天气 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does KnowAir Historical 明气历史天气 support?
KnowAir Historical 明气历史天气 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created KnowAir Historical 明气历史天气?
It is built and maintained by Shuo Wang (@shuowang-ai); the current version is v1.0.0.