← 返回
内容创作 中文

Weather-Webcam-V2

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 th...
从 Open‑Meteo API 获取当前天气,并自动从 Meteoblue 或 Windy 捕获请求地点的实时网络摄像头图像。适用于...
alex1389
内容创作 clawhub v1.0.0 1 版本 99865.6 Key: 无需
★ 0
Stars
📥 743
下载
💾 21
安装
1
版本
#latest#weather

概述

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.
  1. 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.
  1. 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.
  1. 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.
  1. User Response:
    • Send with message(action=send, media="/home/user/.openclaw/workspace/webcam.jpg", caption="[City]: [Icon] [Temp]°C [Humidity]% [Wind]km/h\n[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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Toggl-Optimized-V2

alex1389
通过省 token 的 API 调用和 Shell 脚本快速生成 JSON 与 PDF 报告,优化 Toggl Track 使用。
★ 0 📥 716
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,494
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,873