← Back to Skills Marketplace
pablomartinezcrespo

Aemet

by pablomartinezcrespo · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
107
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install aemet
Description
Weather alerts and forecasts from AEMET OpenData for Spain
README (SKILL.md)

AEMET Skill

Consulta alertas meteorológicas y predicciones oficiales de AEMET OpenData para cualquier municipio de España.

Requisitos previos

1. API Key de AEMET (gratuita)

  1. Regístrate en https://opendata.aemet.es/
  2. Una vez obtenida, guárdala en:
~/.openclaw/credentials/aemet-api-key.txt
echo "TU_CLAVE_AQUI" > ~/.openclaw/credentials/aemet-api-key.txt
chmod 600 ~/.openclaw/credentials/aemet-api-key.txt

2. Dependencias del sistema

sudo apt update
sudo apt install -y curl jq libxml2-utils coreutils
  • curl — peticiones HTTP a la API de AEMET
  • jq — parseo de JSON
  • xmllint — parseo XML (opcional, fallback disponible)
  • md5sum — cacheo de respuestas

Uso

cd ~/.openclaw/workspace/skills/aemet

# Alertas meteorológicas por área (Madrid capital = área 72)
./aemet.sh alertas madrid
./aemet.sh alertas 72

# Predicción diaria de un municipio
./aemet.sh prediccion madrid

# Predicción horaria (24h)
./aemet.sh hourly madrid

# Buscar municipio por nombre
./aemet.sh search "Soria"

# Ayuda completa
./aemet.sh help

Funcionalidades

  • Alertas: Niveles de color (verde, amarillo, naranja, rojo) con descripción del fenómeno
  • Predicción diaria: Temperatura máxima/mínima, estado del cielo, precipitación, viento
  • Predicción horaria: Cada 3 horas durante 24h
  • Búsqueda de municipios: Por nombre o código INE
  • Cacheo inteligente: 5 minutos para alertas, 24h para municipios
  • Rate limits: Pausa automática con backoff si AEMET limita

Códigos de área frecuentes

Ciudad Código
Madrid 72
Valencia 94
Barcelona 94
Sevilla 91

Para otros municipios, usa ./aemet.sh search "nombre" y anota el código de 4 dígitos.

Rutas importantes

Recurso Ruta
API Key ~/.openclaw/credentials/aemet-api-key.txt
Cache alertas ~/.openclaw/cache/aemet/alertas_*
Cache municipios ~/.openclaw/cache/aemet/municipios_*
Script principal ~/.openclaw/workspace/skills/aemet/aemet.sh

Limitaciones

  • Rate limit: ~80 peticiones/minuto (impuesto por AEMET)
  • La API key es personal — no subirla a repositorios públicos
  • Datos: pronóstico hasta 7 días, histórico no disponible
Usage Guidance
This skill appears to be what it claims: a wrapper around the AEMET OpenData API. Before installing, verify you are comfortable storing your AEMET API key at ~/.openclaw/credentials/aemet-api-key.txt (the script will read that file and send the key to api.aemet.es as part of normal API calls). Review the bundled aemet.sh yourself if you have concerns — it is short and readable and only accesses ~/.openclaw paths. Note that the SKILL.md suggests installing dependencies via apt (Debian/Ubuntu); on other OSes you must install equivalent packages. There are minor documentation inconsistencies (e.g., differing stated rate limits between README and SKILL.md), but these are informational rather than malicious. If you want extra safety, run the script in a restricted environment (container or limited user account) and do not place other credentials in the ~/.openclaw directory.
Capability Assessment
Purpose & Capability
Name/description (AEMET weather/alerts) match the included shell script and README: the script queries AEMET OpenData endpoints, parses XML/JSON, and caches results. There are no unrelated credentials, binaries, or third-party services requested that would be out-of-scope for a weather skill.
Instruction Scope
SKILL.md instructs the agent to store a single AEMET API key in ~/.openclaw/credentials and to install common CLI deps (curl, jq, xmllint). The runtime script only reads that API key and manages caches under ~/.openclaw/cache and workspace/skills/aemet. It does not attempt to read other system credentials or contact endpoints outside AEMET's API.
Install Mechanism
This is an instruction-only skill with a bundled shell script (no external download/install spec). The script makes network requests only to AEMET OpenData URLs. The SKILL.md suggests installing packages via apt (Debian/Ubuntu), which is a platform assumption but not a hidden or high-risk install mechanism.
Credentials
No environment variables or unrelated secrets are requested. The skill asks the user to place a single AEMET API key in a local file (~/.openclaw/credentials/aemet-api-key.txt) and uses that key solely to call AEMET endpoints. Cache files are kept under ~/.openclaw/cache, which is proportionate to the stated caching behavior.
Persistence & Privilege
The skill is not set to always:true and does not declare elevated privileges. It writes only its own cache and uses its own workspace paths; it does not modify other skills or global agent configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install aemet
  3. After installation, invoke the skill by name or use /aemet
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
- Updated usage example for municipality search to use "Soria" instead of "Colmenar Viejo". - No functional changes; documentation edit only.
v1.0.2
- Removed Colmenar Viejo (3074) from the list of frequent area codes in documentation. - No changes to usage or functionality; documentation update only.
v1.0.1
- Mejorada la guía de instalación: rutas de la API Key se actualizan y se proveen instrucciones más claras. - Nueva sección de dependencias del sistema y explicación de cada paquete necesario. - Añadido soporte detallado para rutas de caché y archivos clave de configuración. - Mejoras en la documentación de funcionalidades: ahora se describen tiempos de cacheo y manejo de rate limits. - Estructura del README más clara y detallada para facilitar el uso y configuración.
v1.0.0
Initial release of the AEMET skill for Spain. - Provides weather alerts and official forecasts from AEMET OpenData for any Spanish municipality. - Supports daily and hourly forecasts, alert levels, and easy city search. - Handles rate limits automatically to comply with AEMET API restrictions. - Requires an AEMET OpenData API key configured locally. - Includes quick commands and a helpful reference for frequent area codes.
Metadata
Slug aemet
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is Aemet?

Weather alerts and forecasts from AEMET OpenData for Spain. It is an AI Agent Skill for Claude Code / OpenClaw, with 107 downloads so far.

How do I install Aemet?

Run "/install aemet" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Aemet free?

Yes, Aemet is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Aemet support?

Aemet is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Aemet?

It is built and maintained by pablomartinezcrespo (@pablomartinezcrespo); the current version is v1.0.3.

💬 Comments