OpenWeather for Openclaw

A Python-powered skill for retrieving global weather data, including current conditions and multi-day forecasts for AI agents.

joshua-ensley
v1.0.2
Feb 28, 2026
0
981
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openweather

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 openweather 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 OpenWeather?

The OpenWeather skill provides a high-performance interface for AI agents to access global meteorological data via the OpenWeather One Call API 3.0. This skill allows agents to retrieve current conditions, hourly trends, and extended 8-day forecasts with precision. By integrating this into Openclaw Skills, developers can empower their agents to handle location-based queries and environmental context without complex infrastructure.

Built with a focus on efficiency, the skill uses a lightweight Python CLI that relies strictly on the standard library. It handles everything from geocoding city names to parsing complex weather metrics, ensuring that the AI agent receives structured, actionable information. Whether your agent is planning a schedule or monitoring environmental triggers, this skill provides the necessary data layer.

OpenWeather Use Cases

  • Fetching current temperature, humidity, and weather conditions for any city worldwide.
  • Retrieving 8-day daily forecasts to assist with long-term planning and scheduling.
  • Accessing 12-hour or 48-hour precipitation and temperature trends.
  • Providing automated weather updates for a default location configured in the environment.

How OpenWeather Works

  1. The AI agent initiates a request for weather data based on a user prompt or a scheduled trigger.
  2. The skill utilizes the OPENWEATHER_API_KEY to authenticate with the One Call 3.0 endpoint.
  3. If a city name is provided, the skill performs a geocoding step to find the exact coordinates; otherwise, it uses the OPENWEATHER_DEFAULT_LOCATION.
  4. A single API call is made to retrieve comprehensive weather data for the identified coordinates.
  5. The Python script processes the JSON response and returns a formatted summary of weather conditions back to the agent.

OpenWeather Setup

To use this skill within Openclaw Skills, you must provide a valid API key and configure your environment variables.

# Required: Your OpenWeather API key (One Call 3.0 must be enabled)
export OPENWEATHER_API_KEY="your_api_key_here"

# Optional: Set units to metric (Celsius), imperial (Fahrenheit), or standard (Kelvin)
export OPENWEATHER_UNITS="metric"

# Optional: Set a fallback location
export OPENWEATHER_DEFAULT_LOCATION="New York, NY, US"

OpenWeather Data Schema & Taxonomy

The skill interacts with the OpenWeather API and manages data according to the following schema:

Attribute Description Required
OPENWEATHER_API_KEY OpenWeather One Call 3.0 API key for authentication. Yes
OPENWEATHER_UNITS Measurement format: imperial, metric, or standard. No (Default: imperial)
OPENWEATHER_DEFAULT_LOCATION Fallback city string used when no city is specified. No
Forecast Days Number of days to retrieve for the daily forecast command. No (Default: 5)
Forecast Hours Number of hours to retrieve for the hourly forecast command. No (Default: 12)

OpenWeather Advanced Features

  • Support for the latest OpenWeather One Call API 3.0 for maximum data accuracy.
  • Zero-dependency Python implementation using urllib for high compatibility and security.
  • Intelligent error handling for API 401 unauthorized errors and subscription validation.
  • Automated geocoding integration to support natural language city queries.
  • Configurable unit systems for global localization in Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*