← 返回
开发者工具 Key 中文

Google Weather

Google Weather API - accurate, real-time weather data. Get current conditions, temperature, humidity, wind, and forecasts. Powered by Google's Weather API fo...
Google天气API - 提供精准、实时天气数据,获取当前天气状况、温度、湿度、风速及预报。依托Google天气API驱动。
shaharsha
开发者工具 clawhub v1.3.0 2 版本 99666.5 Key: 需要
★ 5
Stars
📥 6,175
下载
💾 477
安装
2
版本
#api#climate#current-conditions#forecast#google#humidity#latest#real-time#temperature#weather#wind

概述

Google Weather - Real-time Weather Data

Get accurate weather conditions using Google's Weather API. Requires a Google Cloud API key with Weather API enabled.

Quick Usage

# Current weather (formatted output)
python3 skills/google-weather/lib/weather_helper.py current "New York"
python3 skills/google-weather/lib/weather_helper.py current "London"
python3 skills/google-weather/lib/weather_helper.py current "Sydney"

# 24h Forecast
python3 skills/google-weather/lib/weather_helper.py forecast "Tel Aviv"

# Raw JSON data
python3 skills/google-weather/lib/weather_helper.py json "Paris"

Example Output

Metric (default):

*New York*
Partly Cloudy ⛅
🌡️ 12°C (feels like 10°C)
💨 Wind: 18 km/h NORTHWEST
💧 Humidity: 55%

Imperial (GOOGLE_WEATHER_UNITS=IMPERIAL):

*New York*
Partly Cloudy ⛅
🌡️ 53.6°F (feels like 50°F)
💨 Wind: 11 mph NORTHWEST
💧 Humidity: 55%

Forecast:

*24h Forecast for Tel Aviv*
18:00: 17.8°C, ☀️ 5 km/h NORTH
22:00: 14.3°C, ☀️ 6 km/h EAST_NORTHEAST
02:00: 12.8°C, ⛅ 8 km/h NORTHEAST
06:00: 10.8°C, ☀️ 6 km/h EAST_NORTHEAST
10:00: 16.1°C, ☀️ 5 km/h SOUTH
14:00: 20.4°C, 🌤️ 8 km/h WEST_NORTHWEST

Supported Locations

Any location worldwide - just type the city name:

  • New York, London, Paris, Berlin, Sydney
  • San Francisco, Berlin, Singapore, Dubai
  • Or any address, landmark, or coordinates

The skill automatically geocodes locations using Google Maps API.

Data Available

  • Temperature: Current + feels like
  • Conditions: Clear, cloudy, rain, snow, etc. with emoji icons
  • Forecast: Hourly data for temperature, wind, and conditions
  • Humidity: Percentage
  • Wind: Speed, direction, gusts
  • UV Index: Sun exposure level
  • Precipitation: Probability and type
  • Cloud Cover: Percentage
  • Visibility: Distance

Setup

  1. Create a project in Google Cloud Console
  2. Enable the Weather API
  3. Enable the Geocoding API (for location name lookup)
  4. Create an API key and set it as GOOGLE_API_KEY environment variable

> Also supports GOOGLE_WEATHER_API_KEY or GOOGLE_MAPS_API_KEY if you already have one configured.

Configuration

Units System

By default, the skill uses metric units (°C, km/h). To switch to imperial (°F, mph), set the GOOGLE_WEATHER_UNITS environment variable:

# In your OpenClaw config (env section):
GOOGLE_WEATHER_UNITS: IMPERIAL
SettingTemperatureWind SpeedPrecipitationVisibility
------------------------------------------------------------
METRIC (default)°Ckm/hmmkm
IMPERIAL°Fmphinchesmiles

No code changes needed — just set the env var and restart.

Multi-language Support

Output adapts to location - supports English, Hebrew, and other languages based on the language parameter.

# Hebrew output
python3 skills/google-weather/lib/weather_helper.py current "Tel Aviv"
# Output: בהיר ☀️ 19°C...

版本历史

共 2 个版本

  • v1.3.0 当前
    2026-03-27 23:57 安全 安全
  • v1.2.0
    2026-03-26 21:12

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,758
ai-intelligence

Tavily Search Pro

shaharsha
Tavily AI 搜索平台,提供 5 种模式:搜索(网页/新闻/金融)、提取(URL 内容)、爬取(网站爬取)、映射(站点地图发现)和研究(深度研究,含引用)。用途:LLM 回答的网页搜索、内容提取、网站爬取、深度研究。
★ 13 📥 19,173
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,917