Forecast
forecastGet a multi-step weather forecast (3-hour intervals) for a city or coordinates: temperature, conditions, wind speed, and precipitation probability over time. Example: forecast({ city: "Tokyo", count: 8 })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude. Use with lon instead of city. | |
| lon | No | Longitude. Use with lat instead of city. | |
| city | No | City name, optionally with country code, e.g. "Tokyo" or "Tokyo,JP". Provide this OR lat/lon. | |
| count | No | Number of 3-hour forecast steps to return (default 8 = next 24h, max 40 = 5 days). | |
| units | No | Temperature units: "metric" (C, default), "imperial" (F), or "standard" (K). | |
| _apiKey | No | Optional — your own OpenWeatherMap API key for higher limits; omit to use the shared Pipeworx key. |