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...
shaharsh
@shaharsha
What This Skill Does
Provides real-time weather data and 24-hour forecasts for any worldwide location via a command-line interface. Returns current conditions (temperature, humidity, wind, UV index, precipitation) and hourly forecast data in formatted or raw JSON output. Requires a Google Cloud API key with Weather and Geocoding APIs enabled.
Replaces manual weather checks or building custom weather integrations by offering a ready-to-use CLI with automatic geocoding and support for metric/imperial units.
When to Use It
- Check current weather conditions for a specific city before planning outdoor activities
- Retrieve a 24-hour hourly forecast to schedule events or travel
- Get raw JSON weather data for integration into dashboards or scripts
- Compare weather across multiple cities for logistics or trip planning
- Fetch weather data in imperial units for US-based locations
Install
$ openclaw skills install @shaharsha/google-weatherGoogle 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,SydneySan 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
- Create a project in Google Cloud Console
- Enable the Weather API
- Enable the Geocoding API (for location name lookup)
- Create an API key and set it as
GOOGLE_API_KEYenvironment variable
Also supports
GOOGLE_WEATHER_API_KEYorGOOGLE_MAPS_API_KEYif 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
| Setting | Temperature | Wind Speed | Precipitation | Visibility |
|---|---|---|---|---|
METRIC (default) | °C | km/h | mm | km |
IMPERIAL | °F | mph | inches | miles |
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...
Top skills in this category
Weather
@steipeteGet current weather and forecasts (no API key required).
Shop
@shopifyUltimate personal shopping assistant: find, compare, buy, gift, and reorder products across the Shop catalog containing millions of stores. Tracks orders and...
healthcheck
@stellarhold170ntTrack water and sleep with JSON file storage
ClawQuest: Agent Mine - OpenClaw Managed Mining
@zhzai30The managed automated mining server interface supports OpenClaw session mode and incremental event retrieval, enabling mining startup, status query, settlement, and stamina management.
FlyAI — Travel, Flight & Hotel Search and Booking
@yealexchenSearch flights, hotels, attractions, concerts, and travel deals with natural language. FlyAI connects to Fliggy MCP for real-time search and booking across h...