← 返回
未分类 中文

Weather Radar

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 precipita...
获取并生成当前天气雷达叠加底图的图像,用于展示降雨/天气雷达图和当前降水信息。
chaosconst chaosconst 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 343
下载
💾 0
安装
1
版本
#latest

概述

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

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
利用Yahoo Finance数据深度分析股票和加密货币。支持投资组合管理、关注列表与提醒、股息分析、八维度股票评分、热门趋势扫描(热点扫描器)及谣言/早期信号检测。适用于股票分析、投资组合追踪、财报反应、加密货币监控、热门股票发现及在主流
★ 280 📥 57,903
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,973
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,952