Weather Forecast

Get current weather and forecast for any location worldwide

IBM 6e6816a 3 files · 4.9 KB Updated

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/tree/main/ai/langchain-skills-agent/src/skills/weather_forecast commit 6e6816acc5

Frequently asked questions

npx skillmds@latest add ibm/weather-forecast