qweather-city-weather

Query 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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "qweather-city-weather" with this command: npx skills add richliao1112/qweather-city-weather

qweather-city-weather

Use this skill primarily via the bundled script:

  • scripts/qweather_query.py

This makes the skill portable across machines and independent from a local Next.js service.

Prerequisites

  • Python 3.10+ available
  • Required QWeather API key:
    • set QWEATHER_API_KEY, or
    • pass --api-key
  • Required QWeather API host:
    • set QWEATHER_API_HOST, or
    • pass --api-host

Default execution flow

  1. Search city candidates and get location IDs:
python3 scripts/qweather_query.py search-city --query "Hangzhou" --api-host "<QWEATHER_API_HOST>" --api-key "<QWEATHER_API_KEY>"
  1. Pick best city by id/name/adm1/adm2.

  2. 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>"
  1. Or run one-shot city -> weather:
python3 scripts/qweather_query.py city-weather --query "Hangzhou" --api-host "<QWEATHER_API_HOST>" --api-key "<QWEATHER_API_KEY>"

Script command reference

  • search-city
    • required: --query
    • optional: --number (default 10)
  • get-weather
    • required: --location
  • city-weather
    • required: --query
    • optional: --preferred-name for exact city-name match

Global options for all subcommands:

  • --api-key
  • --api-host
  • --timeout (seconds, default 5.0)

Output and error contract

  • Success: JSON with success: true
  • Failure: JSON with success: false + error, process exits non-zero
  • Never guess city when no result; return explicit no-match failure

Direct API reference

For endpoint and payload details of the official QWeather API, read:

  • references/qweather-http-contract.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Google Weather

Google Weather API - accurate, real-time weather data. Get current conditions, temperature, humidity, wind, and forecasts. Powered by Google's Weather API fo...

Registry SourceRecently Updated
5.8K5Profile unavailable
General

QWeather China

基于中国气象局数据的完整天气服务,通过和风天气API提供实时天气、天气预报、生活指数、空气质量等全方位天气信息。专为中国用户优化,数据更准确,功能更全面。

Registry SourceRecently Updated
4260Profile unavailable
General

Weather Data API

Provides weather forecast data from NOAA. Free tier returns 3-day forecast, premium tier returns 7-day with hourly data.

Registry SourceRecently Updated
7060Profile unavailable
General

60s API 综合技能

60s API 综合技能,提供每日新闻、AI资讯、热搜榜单、天气查询、数据查询、娱乐内容、媒体信息和实用工具。当用户询问新闻、热搜、天气、汇率、农历、笑话、运势、音乐排行、电影票房、翻译、IP查询等中文信息时触发。

Registry SourceRecently Updated
1610Profile unavailable