Weather Forecast

Get current weather and forecast for any location worldwide

IBM Updated 67 repo stars

File contents

Weather Forecast Skill

This skill provides comprehensive weather information for any location worldwide.

Features

  • Current weather conditions (temperature, humidity, wind speed)
  • Multi-day forecast (up to 7 days)
  • Weather descriptions and conditions
  • Temperature in Celsius and Fahrenheit
  • Wind speed and direction
  • Humidity and pressure information

Usage

The skill accepts a location (city name or coordinates) and optionally the number of forecast days.

Example

result = weather_forecast(location="Paris", days=3)

Output Format

Returns a formatted string with:

  • Current conditions
  • Daily forecasts with high/low temperatures
  • Weather descriptions
  • Additional meteorological data

Notes

  • Uses OpenWeatherMap API (or mock data if API key not configured)
  • Handles location parsing and validation
  • Provides user-friendly error messages for invalid locations

ibm/codeengine commit 6e6816acc5

Frequently asked questions

npx get-skill add ibm/weather-forecast