技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 232 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :良性
Package:alex1389/weather-webcam-v2
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :良性
OpenClaw 评估
The skill's requested binaries, code, and runtime instructions are consistent with its stated purpose of fetching Open‑Meteo data and capturing webcam images; nothing indicates it is trying to access unrelated secrets or system resources.
综合结论
This skill appears to do what it advertises: call Open‑Meteo, browse public webcam pages, extract an image, and return it. Before installing, consider: (1) agent-browser will execute JavaScript on arbitrary third‑party pages — that is required to click cookie dialogs and extract images but means the skill can interact with pages you navigate to; (2) the SKILL.md relies on an absolute agent-browser binary path which may differ on your system; (…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Weather-Webcam-V2」。简介:Fetches current weather from Open-Meteo API and automatically captures a live w…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/alex1389/weather-webcam-v2/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: Weather&Webcam
description: Fetches current weather from Open-Meteo API and automatically captures a live webcam image from Meteoblue or Windy for the requested location. Use it when the user asks for the weather and wants to see a real image of the current conditions.
metadata:
{
"openclaw":
{
"requires": { "bins": ["agent-browser", "curl"] },
},
}
---
# Weather Location
This skill automates weather data retrieval using Open-Meteo and live webcam image capture using **agent-browser**.
## Workflow
1. **Get Coordinates (Geocoding)**:
- Execute `curl -s "https://geocoding-api.open-meteo.com/v1/search?name=[Location]&count=1&language=es&format=json"` to resolve city name to coordinates.
2. **Get weather (Open-Meteo)**:
- Execute `curl -s "https://api.open-meteo.com/v1/forecast?latitude=[Lat]&longitude=[Lon]¤t=temperature_2m,relative_humidity_2m,apparent_temperature,weather_code,wind_speed_10m"` to get real-time data.
3. **Search for Webcam**:
- Web search for `site:meteoblue.com [Location] webcam` or `site:windy.com [Location] webcam`.
- Select the direct link to the location's webcam page.
4. **Capture Image (Agent Browser Method)**:
- Use **agent-browser** to navigate and interact:
```bash
/home/user/.npm-global/bin/agent-browser --session-name webcam open "[URL]"
```
- **Interaction**:
- Click "OK/Accept" on cookie banners using `snapshot` + `click @ref`.
- **Extraction**:
- Use `eval` to find the highest resolution URL (look for `/full/` and `original.jpg`):
```javascript
Array.from(document.querySelectorAll('img')).map(img => img.src).filter(src => src.includes('original.jpg') && src.includes('/full/'))[0]
```
- **Download**:
- Download with `curl` to `/home/user/.openclaw/workspace/webcam.jpg`.
5. **User Response**:
- Send with `message(action=send, media="/home/user/.openclaw/workspace/webcam.jpg", caption="[City]: [Icon] [Temp]°C [Humidity]% [Wind]km/hn[Comment]")`.
- Respond with `NO_REPLY`.
## Optimization (Token Saving)
1. **Open-Meteo API**: Faster, keyless, and more reliable than wttr.in.
2. **Agent Browser**: Priority method for Alex to ensure interaction (cookies) and high-quality images.
3. **Session Persistence**: Use `--session-name webcam` to keep cookies.