Weather CLI for Openclaw

A lightweight, no-API-key terminal utility for fetching global weather forecasts directly within AI agent workflows.

nickcen
v1.0.0
Mar 14, 2026
0
854
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install weather-cli

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-cli 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 CLI?

Weather CLI is a robust utility designed for developers and AI agents to retrieve instantaneous weather reports for any location worldwide. By leveraging the wttr.in service, this tool eliminates the friction of API key management, providing a seamless way to inject environmental context into automated scripts or agentic reasoning cycles.

As part of the Openclaw Skills ecosystem, Weather CLI emphasizes speed and simplicity. It supports multiple output formats—including human-readable ASCII and machine-parseable JSON—making it a versatile choice for both interactive terminal use and complex back-end integration.

Weather CLI Use Cases

  • Providing local environmental context for AI personal assistants.
  • Automating weather-dependent task scheduling in CI/CD or cron jobs.
  • Fetching real-time atmospheric data for travel and transit planning agents.
  • Integrating localized weather stats into terminal dashboards or status bars.

How Weather CLI Works

  1. The skill receives a location input (supports English or Chinese city names).
  2. It constructs a request to the wttr.in backend via curl.
  3. The raw response is processed based on user flags (e.g., converting units to Fahrenheit or Celsius).
  4. Data is parsed and formatted; if the --json flag is present, jq is utilized to ensure a structured data return.
  5. The final weather report is outputted to the terminal or returned to the calling AI agent.

Weather CLI Setup

First, ensure you have the necessary system dependencies installed:

# For Debian/Ubuntu
apt-get update && apt-get install -y curl jq

To use the skill within your environment, simply invoke the command:

# Basic usage
weather "San Francisco"

Weather CLI Data Schema & Taxonomy

Weather CLI organizes weather data into structured fields for easy extraction. The following table describes the primary data points available:

Field Description Type
location Target city and country code String
temperature Current thermal reading in specified unit Integer
condition Summary of weather (e.g., Clear, Rain) String
wind_speed Velocity of wind in km/h Float
humidity Current moisture percentage Percentage

When using the --json flag, the skill returns a structured object suitable for Openclaw Skills automation.

Weather CLI Advanced Features

  • Full Report Toggle: Use the --full flag to access advanced metrics like atmospheric pressure and visibility.
  • Unit Flexibility: Seamlessly switch between Metric (c) and Imperial (f) systems via the --unit parameter.
  • Agent-Ready JSON: Native JSON output support allows AI agents to consume weather data as a structured object rather than raw text.
  • Localization Support: Queries can be performed using multiple languages, including Chinese and English city names.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*