Install
openclaw skills install @wyatt88/amap-weatherQuery weather via Amap (高德) Weather API — China's most accurate location-based weather service. Use when user asks about weather in Chinese cities, mentions 高德/amap weather, or needs weather data for China locations. Supports real-time conditions and 4-day forecasts. Requires AMAP_API_KEY env var. Trigger phrases: 天气, weather in Beijing/Shanghai/etc, 高德天气, 今天天气怎么样, 明天下雨吗, 未来几天天气.
openclaw skills install @wyatt88/amap-weatherAMAP_API_KEY environment variable (高德 Web 服务 API Key)Run the bundled script:
# Real-time weather (实况)
python3 scripts/amap_weather.py 北京
# 4-day forecast (预报)
python3 scripts/amap_weather.py 杭州 --forecast
# By adcode (区县级精度)
python3 scripts/amap_weather.py 110108 --forecast # 海淀区
# Raw JSON output
python3 scripts/amap_weather.py 上海 --json
The script accepts city names (中文) or 6-digit adcodes. It has a built-in lookup table for 40+ major cities. For districts or less common cities, use adcodes directly.
# Real-time
curl -s "https://restapi.amap.com/v3/weather/weatherInfo?key=${AMAP_API_KEY}&city=110000&extensions=base"
# Forecast
curl -s "https://restapi.amap.com/v3/weather/weatherInfo?key=${AMAP_API_KEY}&city=110000&extensions=all"
Parse the JSON: lives[0] for real-time, forecasts[0].casts[] for forecast (4 days).
lives[] (temperature, weather, humidity, wind)forecasts[].casts[] (4 days, day/night split)When presenting weather to users:
For complete field definitions, error codes, and adcode list: see references/api-docs.md.