/install knowair-weather
KnowAir Air Quality — Station-Based AQI Forecast
Query comprehensive air quality forecasts from monitoring stations with up to 15-day coverage 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_air_quality.py --lng 116.3176 --lat 39.9760
Workflow
- Resolve coordinates — convert city name to coordinates if needed.
- Run the script:
python3 scripts/query_air_quality.py --lng \x3CLNG> --lat \x3CLAT> - Present results — summarize current AQI level, pollutant trends, best/worst periods, and health advice.
Options
| Flag | Description | Default |
|---|---|---|
--lng |
Longitude (-180 to 180) | Required |
--lat |
Latitude (-90 to 90) | Required |
--hours |
Forecast hours (1-360) | 120 |
--detail-level |
Display density 0-6 (0=auto) | 0 |
--lang |
Output language: en or zh |
en |
Defaults
- Hours: 120 (5 days)
- Detail level: auto (0)
- Language:
en
Failure Handling
- Missing token → exit code 2 with setup instructions.
- API error → exit code 1 with error details.
- Station data unavailable → falls back to API forecast data.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install knowair-weather - After installation, invoke the skill by name or use
/knowair-weather - Provide required inputs per the skill's parameter spec and get structured output
What is KnowAir Weather 明气天气?
Get comprehensive air quality forecast from monitoring stations with up to 15-day coverage via the Caiyun Weather API. Returns AQI, PM2.5, PM10, O3, NO2, SO2... It is an AI Agent Skill for Claude Code / OpenClaw, with 220 downloads so far.
How do I install KnowAir Weather 明气天气?
Run "/install knowair-weather" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is KnowAir Weather 明气天气 free?
Yes, KnowAir Weather 明气天气 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does KnowAir Weather 明气天气 support?
KnowAir Weather 明气天气 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created KnowAir Weather 明气天气?
It is built and maintained by Shuo Wang (@shuowang-ai); the current version is v1.0.0.