ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 4/5

weather-zh

中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)

Why use this skill?

Instantly get real-time weather for cities in China with this zero-LLM shell script. Fast, reliable, and free of token costs. Install via OpenClaw today.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/kenera/weather-cn
Or

What This Skill Does

The weather-zh skill provides a highly optimized, lightweight solution for fetching real-time weather information in China without requiring any Large Language Model (LLM) API calls. By utilizing a custom shell script (weather-cn.sh) that directly interacts with the China Weather Network, this tool eliminates the high latency and cost associated with model-based web scraping. It features a built-in mapping system using weather_codes.txt to instantly resolve city names to their respective meteorological data, ensuring reliable and lightning-fast information retrieval. The output is formatted into a clean, human-readable terminal dashboard, including daily temperature ranges, weather conditions (like sunny or rainy), and various life indices such as laundry, exercise, and ultraviolet exposure levels.

Installation

To install this skill, run the following command in your terminal: clawhub install openclaw/skills/skills/kenera/weather-cn. Once installed, ensure the script is accessible from your path. It is highly recommended to create a shell alias for easier access, for example: alias weather='~/.openclaw/workspace/skills/weather-zh/weather-cn.sh'. You can add this line to your .zshrc or .bash_profile configuration file to make the command available in every terminal session immediately upon opening.

Use Cases

The primary use case is for users needing rapid, frequent weather updates for cities in China without burning through LLM token quotas. It is ideal for developers who incorporate weather checks into their automation workflows, CLI enthusiasts who want quick info without opening a browser, and users who prioritize data privacy and zero-cost operation. Since it avoids complex model reasoning, it is perfectly suited for scripts that require 100% predictable output formats.

Example Prompts

  1. "成都今天天气怎么样?"
  2. "请帮我查询上海的天气状况。"
  3. "北京的气温和紫外线指数是多少?"

Tips & Limitations

  • Accuracy: Data is pulled directly from the China Weather Network. If you notice data discrepancies, it is likely due to the source's update frequency.
  • City Support: The tool comes with over 50 major cities pre-configured. If your city is missing, simply append the city name and its corresponding 9-digit code from the official website to the weather_codes.txt file.
  • Connectivity: This tool requires a network connection to reach weather.com.cn. It will not function in offline environments or behind restrictive firewalls that block the target domain.
  • Optimization: Because this uses bash, grep, and sed, the performance is essentially instant, making it far superior to browser-automation tools for this specific data retrieval task.

Metadata

Author@kenera
Stars1776
Views14
Updated2026-03-02
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-kenera-weather-cn": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#weather#china-weather#cli#shell-script#utility
Safety Score: 4/5

Flags: network-access, file-read, code-execution