Weather CLI for Openclaw

A zero-config CLI tool for retrieving worldwide weather data, daily forecasts, and hourly conditions in structured JSON format.

pjtf93
v0.1.0
Jan 13, 2026
2
3.6k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install weathercli

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 weathercli 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 technical utility designed for developers and automation agents to retrieve precise meteorological data from anywhere in the world. By utilizing the Open-Meteo API, it eliminates the need for complex API key management, making it an ideal component for Openclaw Skills that require environmental context. The tool handles everything from geocoding ambiguous city names to normalizing local timezones and providing WMO-standard weather codes.

The skill excels at providing programmatic access to current conditions, 16-day daily forecasts, and 384-hour granular data. Its primary value lies in its ability to output highly structured JSON, allowing AI agents to make informed decisions based on temperature, precipitation probability, and wind speeds without manual parsing of human-centric text.

Weather CLI Use Cases

  • Automating travel planning by fetching 5-day forecasts for specific destinations.
  • Integrating real-time weather conditions into productivity dashboards or notification systems.
  • Determining optimal times for outdoor activities based on UV index and precipitation probability.
  • Programmatically retrieving sunrise and sunset times for photography or smart home automation.
  • Validating location coordinates and timezones for global datasets.

How Weather CLI Works

  1. The user or AI agent initiates a command specifying a location and the type of data required (current, forecast, or search).
  2. The utility automatically geocodes the input string to determine the precise latitude, longitude, and country.
  3. A request is dispatched to fetch the latest meteorological data based on the identified coordinates.
  4. All timestamps are automatically converted to the target location's local timezone for accuracy.
  5. The tool formats the response into color-coded text for humans or structured JSON for Openclaw Skills workflows.

Weather CLI Setup

To integrate this utility into your Openclaw Skills environment, ensure you have Go installed and run the following command:

go install github.com/pjtf93/weathercli/cmd/weathercli@latest

You can also download the pre-compiled binary directly from the GitHub releases page. No environment variables or API keys are required for operation.

Weather CLI Data Schema & Taxonomy

The tool provides structured JSON output using the --json flag. The data is organized into location metadata and weather data points:

Object Key Description
location name, country, timezone Geocoded identity and regional settings
current temperature, humidity, wind_speed Real-time atmospheric conditions
daily temp_max, precip_prob, sunrise Array of daily forecast data points
hourly temperature, condition Granular hour-by-hour projections
metadata weather_code, uv_index Standardized WMO codes and safety indices

Weather CLI Advanced Features

  • Support for 16-day daily forecasts and 384-hour granular hourly views.
  • Native JSON output mode designed specifically for seamless Openclaw Skills integration.
  • Flexible geocoding that accepts city names, country codes, and regional identifiers.
  • Automatic timezone conversion for all returned sunrise, sunset, and observation timestamps.
  • Zero-dependency API access requiring no registration or private keys.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*