Weather Query for Openclaw

A streamlined AI skill for querying current global weather conditions and temperatures via simple city names.

lushulin-jack
v1.0.4
Mar 18, 2026
1
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install lsl-test-skill1

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 lsl-test-skill1 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 Weather Query?

Weather Query is a highly efficient component of the Openclaw Skills ecosystem designed to fetch real-time meteorological data. By interfacing with the wttr.in service, this skill allows AI agents to provide instantaneous updates on weather conditions and temperatures for cities worldwide. It is optimized for speed and clarity, delivering human-readable responses that are perfect for daily planning or automated reporting.

The skill is built with an emphasis on localization and ease of use. While it supports multi-language input, it is optimized for English city names to ensure the highest accuracy in data retrieval. Once the data is fetched, the skill automatically translates and formats the output into concise Chinese, making it an ideal utility for developers building localized AI assistants.

Weather Query Use Cases

  • Providing real-time weather updates within an AI-driven chat interface.
  • Automating daily morning briefings for users based on their current city.
  • Checking travel conditions for remote team members or upcoming trip destinations.
  • Integrating environmental data into broader productivity and scheduling workflows.

How Weather Query Works

  1. The skill receives a city name as input from the user or the parent AI agent.
  2. It prioritizes English city names (e.g., Shanghai, London) to ensure compatibility with the weather provider.
  3. The skill executes a CURL command to the wttr.in API using the specified city and formatting parameters.
  4. Upon receiving the raw data, the skill parses the current weather state and temperature.
  5. The data is formatted into a 1-2 sentence Chinese summary including the city name, weather condition, and temperature.

Weather Query Setup

To use this skill within your Openclaw Skills environment, ensure your agent has network access to reach external APIs. You can test the core functionality via CLI:

# Example query for Shanghai
curl "wttr.in/Shanghai?id=3"

# Standard usage syntax
curl "wttr.in/[CityName]?id=3"

Weather Query Data Schema & Taxonomy

The skill processes input strings and generates structured natural language output. Below is the metadata and response structure:

Attribute Description Example
Input City Preferred English city name Beijing
Response Language Localized Chinese string 上海当前多云,温度 18°C
Required Fields City, Condition, Temperature Shanghai, Cloudy, 18°C
Error Handling Suggested English fallback 天气查询失败... (Suggests English name)

Weather Query Advanced Features

  • Intelligent Fallback: Detects failed Chinese queries and prompts the user for English equivalents to improve success rates.
  • Minimalist Output: Strictly enforces a 1-2 sentence limit, ensuring compatibility with small-screen devices and voice-to-text interfaces.
  • Lightweight Integration: Uses standard CURL requests, making it compatible with almost any environment supporting Openclaw Skills without heavy dependencies.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*