← 返回 Skills 市场
Aemet
作者
pablomartinezcrespo
· GitHub ↗
· v1.0.3
· MIT-0
107
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install aemet
功能描述
Weather alerts and forecasts from AEMET OpenData for Spain
使用说明 (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)
- Regístrate en https://opendata.aemet.es/
- 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 AEMETjq— parseo de JSONxmllint— 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
安全使用建议
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install aemet - 安装完成后,直接呼叫该 Skill 的名称或使用
/aemet触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Aemet 是什么?
Weather alerts and forecasts from AEMET OpenData for Spain. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。
如何安装 Aemet?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install aemet」即可一键安装,无需额外配置。
Aemet 是免费的吗?
是的,Aemet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Aemet 支持哪些平台?
Aemet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Aemet?
由 pablomartinezcrespo(@pablomartinezcrespo)开发并维护,当前版本 v1.0.3。
推荐 Skills