Query historical weather data for up to 72 hours back using the Caiyun Weather API.
CAIYUN_TOKEN environment variable, or stored in ~/.config/knowair/token.python3 scripts/query_historical.py --lng 116.3176 --lat 39.9760 --hours 24
```bash
python3 scripts/query_historical.py --lng
```
| 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 |
en共 1 个版本