/install knowair-forecast
KnowAir Forecast — Hourly & Daily Weather Forecasts
Query detailed hourly and daily weather forecasts for any location 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_forecast.py --lng 116.3176 --lat 39.9760 --type daily --days 7
Workflow
- Resolve coordinates — convert city name to longitude and latitude if needed.
- Choose forecast type —
hourlyordaily. - Run the script:
python3 scripts/query_forecast.py --lng \x3CLNG> --lat \x3CLAT> --type \x3CTYPE> - Present results — highlight temperature ranges, precipitation probability, and notable weather changes.
Options
| Flag | Description | Default |
|---|---|---|
--lng |
Longitude (-180 to 180) | Required |
--lat |
Latitude (-90 to 90) | Required |
--type |
hourly or daily |
daily |
--hours |
Hours to forecast (1-360, hourly mode) | 48 |
--days |
Days to forecast (1-15, daily mode) | 7 |
--detail-level |
Display density 0-6 (0=auto, 1=every hour, etc.) | 0 |
--lang |
Output language: en or zh |
en |
Defaults
- Forecast type:
daily - Days: 7, Hours: 48
- Detail level: auto (0)
- Language:
en
Failure Handling
- Missing token → exit code 2 with setup instructions.
- API error → exit code 1 with error details.
- Network unreachable → suggest the user check connectivity.
Additional Resources
- examples.md — usage examples
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install knowair-forecast - After installation, invoke the skill by name or use
/knowair-forecast - Provide required inputs per the skill's parameter spec and get structured output
What is KnowAir Forecast 明气预报?
Get hourly (up to 360 hours) and daily (up to 15 days) weather forecasts by latitude and longitude via the Caiyun Weather API. Returns temperature trends, we... It is an AI Agent Skill for Claude Code / OpenClaw, with 220 downloads so far.
How do I install KnowAir Forecast 明气预报?
Run "/install knowair-forecast" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is KnowAir Forecast 明气预报 free?
Yes, KnowAir Forecast 明气预报 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does KnowAir Forecast 明气预报 support?
KnowAir Forecast 明气预报 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created KnowAir Forecast 明气预报?
It is built and maintained by Shuo Wang (@shuowang-ai); the current version is v1.0.0.