Install
openclaw skills install qweather-city-weatherQuery QWeather city codes and real-time weather with bundled executable scripts. Use when users need to resolve city names to QWeather location IDs/adcodes, fetch current weather, or run portable weather queries on machines that do not host the original app.
openclaw skills install qweather-city-weatherUse this skill primarily via the bundled script:
scripts/qweather_query.pyThis makes the skill portable across machines and independent from a local Next.js service.
QWEATHER_API_KEY, or--api-keyQWEATHER_API_HOST, or--api-hostpython3 scripts/qweather_query.py search-city --query "Hangzhou" --api-host "<QWEATHER_API_HOST>" --api-key "<QWEATHER_API_KEY>"
Pick best city by id/name/adm1/adm2.
Query current weather with location ID:
python3 scripts/qweather_query.py get-weather --location "101210101" --api-host "<QWEATHER_API_HOST>" --api-key "<QWEATHER_API_KEY>"
python3 scripts/qweather_query.py city-weather --query "Hangzhou" --api-host "<QWEATHER_API_HOST>" --api-key "<QWEATHER_API_KEY>"
search-city
--query--number (default 10)get-weather
--locationcity-weather
--query--preferred-name for exact city-name matchGlobal options for all subcommands:
--api-key--api-host--timeout (seconds, default 5.0)success: truesuccess: false + error, process exits non-zeroFor endpoint and payload details of the official QWeather API, read:
references/qweather-http-contract.md