Weather Location
This skill automates weather data retrieval and live webcam image capture to provide a complete visual report.
Workflow
Get weather (wttr.in):
- Execute
curl -s "wttr.in/[Location]?format=%l:+%c+%t+%h+%w"to get basic data (location, icon, temperature, humidity, and wind). - Note: Encode spaces in the URL (e.g.,
Sant+Adria+de+Besos).
- Execute
Search for Webcam (Meteoblue/Windy):
- Perform a web search (
web_search) formeteoblue [Location] webcamorwindy [Location] webcam. - Select the Meteoblue link that lists webcams for that area (e.g.,
meteoblue.com/.../webcams/...).
- Perform a web search (
Capture Image (Clean Method):
- Navigate to the page and use
browser(action=snapshot)to find direct image URLs (e.g.,imgproxy.windy.com/...). - IMPORTANT: Avoid
browser(action=screenshot)to prevent double images (previews). - Download the image with
exec(command="curl -s '[URL]' -o /tmp/webcam.jpg"). - Prefer 16:9 images if available.
- Navigate to the page and use
User Response:
- Send the image using
message(action=send, media="/tmp/webcam.jpg", caption="[wttr.in data]\n[Comment]"). - Respond with
NO_REPLYin the main session after using themessagetool.
- Send the image using
Usage Examples
- "What's the weather like in London?"
- "How's the sky in New York right now?"
- "Show me the weather in Barcelona"