π¦ ClawHub
OpenWeather
by @joshua-ensley
Get current weather, hourly forecasts, and 8-day daily forecasts for any location worldwide using OpenWeather One Call API 3.0. Use when the user asks about...
TERMINAL
clawhub install openweatherπ About This Skill
name: openweather description: Get current weather, hourly forecasts, and 8-day daily forecasts for any location worldwide using OpenWeather One Call API 3.0. Use when the user asks about weather, temperature, rain, snow, forecast, or conditions for any city or location. version: 1.0.2 metadata: openclaw: emoji: "π€οΈ" primaryEnv: OPENWEATHER_API_KEY requires: bins: - python3 env: - OPENWEATHER_API_KEY config: env: OPENWEATHER_API_KEY: description: "Your OpenWeather API key (must have One Call 3.0 enabled)." required: true OPENWEATHER_UNITS: description: "Units: imperial (Β°F), metric (Β°C), or standard (K)." default: "imperial" required: false OPENWEATHER_DEFAULT_LOCATION: description: "Optional default location used when no city is provided (example: Johnstown, PA, US)." required: false
OpenWeather Skill
OpenWeather One Call API 3.0 via a small Python CLI (stdlib only).
Commands
City is optional if OPENWEATHER_DEFAULT_LOCATION is set.
python3 {skillDir}/scripts/weather.py current [city] python3 {skillDir}/scripts/weather.py forecast [city] --days 5 python3 {skillDir}/scripts/weather.py hourly [city] --hours 12
Rules
OPENWEATHER_DEFAULT_LOCATION when configured; otherwise ask the user for a location.π Constraints
OPENWEATHER_DEFAULT_LOCATION when configured; otherwise ask the user for a location.