Use 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>"
id/name/adm1/adm2.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共 1 个版本