Query comprehensive air quality forecasts from monitoring stations with up to 15-day coverage using the Caiyun Weather API.
CAIYUN_TOKEN environment variable, or stored in ~/.config/knowair/token.python3 scripts/query_air_quality.py --lng 116.3176 --lat 39.9760
```bash
python3 scripts/query_air_quality.py --lng
```
| 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 |
en共 1 个版本