weatherport
v0.1.0OpenWeather current weather, 5-day forecast, One Call, air pollution, and geocoding.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_current_weather
Get current weather for a city, optionally in the given units (standard, metric, or imperial).
| Parameter | Type | Description |
|---|---|---|
location * | string | City or place name to get current weather for; must be a non-empty string. |
units | string | Unit system for the response: one of standard, metric, or imperial. |
get_forecast
Get the 5-day forecast for a city, in 3-hour steps, optionally limited to a number of entries.
| Parameter | Type | Description |
|---|---|---|
location * | string | City or place name to get the forecast for; must be a non-empty string. |
count | number | Maximum number of 3-hour forecast entries to return. |
units | string | Unit system for the response: one of standard, metric, or imperial. |
get_onecall_weather
Get One Call 3.0 weather for a latitude/longitude: current, hourly, and daily summaries.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude in decimal degrees, between -90 and 90. |
lon * | number | Longitude in decimal degrees, between -180 and 180. |
units | string | Unit system for the response: one of standard, metric, or imperial. |
get_air_pollution
Get current air pollution (AQI and components) for a latitude/longitude.
| Parameter | Type | Description |
|---|---|---|
lat * | number | Latitude in decimal degrees, between -90 and 90. |
lon * | number | Longitude in decimal degrees, between -180 and 180. |
geocode_location
Geocode a place name to coordinates, returning up to the given limit of matches.
| Parameter | Type | Description |
|---|---|---|
query * | string | Place name to geocode to coordinates; must be a non-empty string. |
limit | number | Maximum number of matching locations to return. |