🧪 Skills
Weather & Webcam
Fetches current weather from wttr.in and automatically captures a live webcam image from Meteoblue or Windy for the requested location. Use it when the user...
v1.2.0
Description
name: Weather&Webcam description: Fetches current weather from wttr.in 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 and live webcam image capture using agent-browser for maximum quality.
Workflow
-
Get weather (wttr.in):
- Execute
curl -s "wttr.in/[Location]?format=%l:+%c+%t+%h+%w"to get basic data. - Note: Encode spaces (e.g.,
Sant+Adria+de+Besos).
- Execute
-
Search for Webcam:
- Web search for
site:meteoblue.com [Location] webcamorsite:windy.com [Location] webcam. - Select the direct link to the location's webcam page.
- Web search for
-
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. - Click the specific location link to open the large view/gallery.
- Click "OK/Accept" on cookie banners using
- Extraction:
- Use
evalto find the highest resolution URL (look for/full/andoriginal.jpg):Array.from(document.querySelectorAll('img')).map(img => img.src).filter(src => src.includes('original.jpg') && src.includes('/full/'))[0]
- Use
- Download:
- Download with
curlto/home/user/.openclaw/workspace/webcam.jpg.
- Download with
- Use agent-browser to navigate and interact:
-
User Response:
- Send with
message(action=send, media="/home/user/.openclaw/workspace/webcam.jpg", caption="[wttr.in data]\n[Comment]"). - Respond with
NO_REPLY.
- Send with
Optimization (Token Saving)
- Agent Browser: Priority method for Alex to ensure interaction (cookies) and high-quality images.
- Session Persistence: Use
--session-name webcamto keep cookies. - Scrapling (Fallback): Use only if
agent-browserfails.
Usage Examples
- "What's the weather like in London?"
- "Show me the webcam in Barcelona"
- "How's the sky in Vilassar de Mar?"
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!