Weather Tool

Fetch current weather data for any city using the OpenWeatherMap API.

krahimov Updated

File contents

Weather Tool

Fetches current weather for a given city.

Usage

CITY="London"
curl -s "https://api.openweathermap.org/data/2.5/weather?q=${CITY}&appid=${OPENWEATHER_API_KEY}" | jq '.main.temp'

Notes

  • Requires a valid OpenWeatherMap API key set as OPENWEATHER_API_KEY.
  • Uses curl and jq which are declared in the requirements.

krahimov/skill-scanner/tree/main/tests/fixtures/benign/weather-tool commit 087b83f93c

Frequently asked questions

npx skillmds@latest add krahimov/weather-tool