China Weather Forecast (weather-china) for Openclaw

A Python-powered weather skill providing 7-day forecasts and life comfort indices for Chinese cities without requiring an API key.

hoopan007
v1.0.2
Mar 5, 2026
2
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install weather-china

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install weather-china using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is China Weather Forecast (weather-china)?

The weather-china skill is a robust tool designed for AI agents to retrieve accurate weather information directly from the official China Weather Website (weather.com.cn). It provides comprehensive data including 7-day temperature trends, wind conditions, and a variety of life indices like clothing, exercise, and allergy alerts. As a core component of the Openclaw Skills library, it offers a pure Python implementation that is easy to deploy and requires no complex API registrations.

This skill is particularly valuable for developers building localized assistants that need to provide real-time environmental context. By leveraging Openclaw Skills, the agent can translate simple city queries into detailed, actionable weather reports, making it an essential utility for travel planning, daily scheduling, and health monitoring.

China Weather Forecast (weather-china) Use Cases

  • Checking the 7-day weather forecast for any major or minor city in China.
  • Getting automated clothing recommendations based on current temperature and wind chill.
  • Planning outdoor workouts by checking the exercise and UV indices.
  • Deciding whether to wash a car or carry an umbrella based on upcoming rain predictions.
  • Integrating real-time weather data into larger Openclaw Skills automation workflows.

How China Weather Forecast (weather-china) Works

  1. The user or agent provides a city name in Chinese (e.g., "Beijing" or "Nanjing").
  2. The skill attempts to match the city against a built-in dictionary of over 60 major city codes for high-speed retrieval.
  3. For cities not in the cache, it utilizes an automated search interface to fetch the correct city code from the source.
  4. It connects to weather.com.cn to pull the latest forecast and life index data.
  5. The script parses the data and returns it in either a human-readable text summary or a structured JSON object.

China Weather Forecast (weather-china) Setup

To use this skill within your Openclaw Skills environment, ensure you have Python 3 installed. No external API keys or environment variables are required.

# Query weather with formatted text output
python3 skills/weather-china/lib/weather_cn.py query Nanjing

# Get structured JSON data for programmatic use
python3 skills/weather-china/lib/weather_cn.py json Shanghai

China Weather Forecast (weather-china) Data Schema & Taxonomy

The skill returns structured data containing the following components:

Feature Details
City Info Name, internal code, and data source timestamp
7-Day Forecast Date, weather conditions, high/low temperature, wind direction, and wind power
Life Indices Flu (cold), Exercise, Allergy, Dressing, Car Wash, and UV indices with specific advice
Output Formats Supports both plain text and JSON structures

China Weather Forecast (weather-china) Advanced Features

  • Zero-Config API: Fetches data directly via web parsing, eliminating the need for developer API keys.
  • Intelligent City Matching: Automatically searches and maps city names to official weather codes.
  • Comprehensive Life Indexing: Provides more than just temperature, offering 6 distinct indices for health and lifestyle planning.
  • Multi-Output Support: Seamlessly switch between text for human interaction and JSON for Openclaw Skills logic processing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*