Weather&Webcam

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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Weather&Webcam" with this command: npx skills add alex1389/weather-webcam-v2

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]&current=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:
      /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):
        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/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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

weather-cn-pro

中国天气网增强版 - 查询中国城市的实时天气、逐小时预报、7天预报和生活指数。 相比基础版增加:逐小时预报、7天预报、更好的格式化输出。 作者: Jeremy

Registry SourceRecently Updated
2680Profile unavailable
General

weather-cn-fixed

中文天气查询工具 - 使用中国天气网获取实时天气(无需API密钥,不依赖大模型)

Registry SourceRecently Updated
2660Profile unavailable
General

QWeather China

基于中国气象局数据的完整天气服务,通过和风天气API提供实时天气、天气预报、生活指数、空气质量等全方位天气信息。专为中国用户优化,数据更准确,功能更全面。

Registry SourceRecently Updated
3820Profile unavailable
General

天气查询 - 即刻数据

天气查询。根据省份、城市、区县查询当前天气实况、未来7天和未来15天天气预报。适用场景:用户说“查一下深圳南山区天气”“广州未来7天天气怎么样”“北京未来15天会不会下雨”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
630Profile unavailable