Get current weather and forecasts. Use when the user asks about weather, temperature, rain, or what to wear.
Uses the Open-Meteo API. No API key needed.
curl -s "https://api.open-meteo.com/v1/forecast?latitude=45.7489&longitude=21.2087¤t=temperature_2m,apparent_temperature,relative_humidity_2m,weather_code,wind_speed_10m,precipitation&daily=temperature_2m_max,temperature_2m_min,precipitation_sum,weather_code,sunrise,sunset&timezone=Europe/Bucharest"
curl -s "https://api.open-meteo.com/v1/forecast?latitude=45.7489&longitude=21.2087&hourly=temperature_2m,precipitation_probability,weather_code,wind_speed_10m&forecast_hours=24&timezone=Europe/Bucharest"
Replace latitude/longitude. Find coordinates at https://open-meteo.com/en/docs/geocoding-api:
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=CITY_NAME&count=1"
Timisoara, Romania (45.7489, 21.2087). If the user asks about weather without specifying a location, use this.