Weather Radar

👤 chaosconst 📦 v1.0.0 ⭐ 4.2 ⬇️ 611 下載
📊 資料分析 免費

📖 技能介紹


name: weather-radar description: Fetch and generate an image of the current weather radar combined with a base map. Use when the user wants to see a rain/weather radar map, current precipitation clouds, or radar overlay for a specific city or coordinates. Default zoom level is 7, which is optimal for macroscopic weather phenomena.


Weather Radar

This skill provides a way to generate a composite animated GIF showing current and historical weather radar data overlaid on a real geographic base map (OpenStreetMap). It fetches real-time radar layers from RainViewer.

How to Use

When the user asks for a weather radar map or animated cloud GIF for a location, run the Python script scripts/generate_radar.py to create the animation. It outputs a composite 3x3 tile grid (768x768 pixels).

Executing the script

First, look up the latitude and longitude of the requested city or use the provided coordinates. If no city is specified, default to the user's known location or a sensible default.

# Example for Beijing
python scripts/generate_radar.py --lat 39.9042 --lon 116.4074 --zoom 7 --out /home/ubuntu/.openclaw/workspace/radar_map.gif

Parameters: - --lat: Latitude of the center point (float) - --lon: Longitude of the center point (float) - --zoom: Zoom level (default: 7). Note: Zoom 7 is optimal for weather systems. Higher zooms (like 9 or 10) often result in empty/missing radar tiles from the API. - --frames: Number of frames to animate (default: 8, representing roughly the last 80 minutes). - --out: Output path for the generated GIF image (must end in .gif).

Sending the result

After generating the radar_map.gif, send it to the user using the message tool with action="send", asDocument=true, and the filePath parameter set to the output image path.

Dependencies

想要更強大的技能外掛,就來小蔥技能站7w4.net看看吧。

The script requires requests and Pillow. If they are not installed, run pip install requests Pillow before executing the script.

🤖 AI 評測

這個天氣雷達 Skill 整體質量良好,能有效生成帶有時間戳的雷達動畫圖。它從可靠的天氣資料來源獲取即時資訊,文件清晰易懂,引數設定靈活。但存在一些小問題:缺少自動安裝依賴的說明,文件中預設幀數與實際程式碼不一致,且地圖縮放級別受限可能導致某些區域顯示效果受限。對於需要快速獲取天氣雷達視覺化圖的使用者來說,這是一個可用但仍有完善空間的工具。

📊 多維度評分

適應性4
規範性4
有效性4.4
可靠性4.2
可信度4.5

📁 包含檔案 (3 個)

📄 SKILL.md 1.9 KB
📄 _meta.json 132 B
📄 scripts/generate_radar.py 4.3 KB