AEMET Weather & Alerts Skill for Openclaw

Retrieve official Spanish weather alerts and forecasts directly into your AI workflow via AEMET OpenData.

pablomartinezcrespo
v1.0.3
Apr 5, 2026
0
814
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install aemet

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 aemet 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 AEMET Weather & Alerts Skill?

The AEMET Skill is a specialized tool for Openclaw Skills that interfaces with the AEMET OpenData API to provide authoritative meteorological data for Spain. It allows developers and AI agents to programmatically access weather alerts, daily forecasts, and hourly predictions for any Spanish municipality. This integration ensures that your agent has access to verified, official data for environmental monitoring and planning.

By leveraging this skill, users can automate the retrieval of atmospheric conditions, ranging from simple temperature checks to complex meteorological warnings. The skill handles the technical complexities of API authentication, rate limiting, and data parsing, making it a robust addition to the Openclaw Skills ecosystem.

AEMET Weather & Alerts Skill Use Cases

  • Monitoring real-time meteorological alerts (Yellow, Orange, Red) for specific Spanish regions to trigger safety protocols.
  • Automating daily or hourly weather reports for logistics planning or outdoor scheduling tasks.
  • Programmatically searching for municipality codes (INE) to normalize geospatial datasets.
  • Integrating weather-responsive logic into AI agents that react to precipitation or temperature thresholds.

How AEMET Weather & Alerts Skill Works

  1. The user or agent provides a municipality name, area code, or search query via the aemet.sh script.
  2. The skill validates the presence of an AEMET API key within the local credentials directory.
  3. A secure request is dispatched to the AEMET OpenData REST API using curl.
  4. The skill processes the resulting JSON or XML payload, extracting relevant weather metrics or alert levels.
  5. Intelligent caching is applied (5 minutes for alerts, 24 hours for municipality data) to optimize performance and respect API limits.
  6. The processed data is returned in a clean, readable format for the user or downstream processing by other Openclaw Skills.

AEMET Weather & Alerts Skill Setup

First, obtain a free API key from the AEMET OpenData portal at https://opendata.aemet.es.

Configure your credentials:

echo "YOUR_API_KEY" > ~/.openclaw/credentials/aemet-api-key.txt
chmod 600 ~/.openclaw/credentials/aemet-api-key.txt

Install the necessary system dependencies:

sudo apt update
sudo apt install -y curl jq libxml2-utils coreutils

AEMET Weather & Alerts Skill Data Schema & Taxonomy

The skill manages data across several directories to ensure efficiency and persistence within the Openclaw Skills environment:

Resource Path Description
API Credentials ~/.openclaw/credentials/aemet-api-key.txt Secure storage for your personal AEMET token.
Alerts Cache ~/.openclaw/cache/aemet/alertas_* Cached alert data (TTL: 5 minutes).
Municipality Cache ~/.openclaw/cache/aemet/municipios_* Cached location metadata (TTL: 24 hours).
Main Script ~/.openclaw/workspace/skills/aemet/aemet.sh The primary entry point for execution.

AEMET Weather & Alerts Skill Advanced Features

  • Automatic backoff and rate-limit management to handle AEMET's 80 requests/minute restriction.
  • Intelligent multi-tier caching system to reduce latency and redundant API calls.
  • Support for fuzzy name searching and official INE code identification for all Spanish municipalities.
  • Integrated alert parsing that maps meteorological phenomena to standardized color-coded severity levels (Green, Yellow, Orange, Red).
  • Cross-platform compatibility for any environment supporting Bash, curl, and jq.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*