weatherport

v0.1.0
io.github.CloudCorpRecords/weatherport Checked 2 days ago Published 1 month ago

OpenWeather 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).

ParameterTypeDescription
location *stringCity or place name to get current weather for; must be a non-empty string.
unitsstringUnit 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.

ParameterTypeDescription
location *stringCity or place name to get the forecast for; must be a non-empty string.
countnumberMaximum number of 3-hour forecast entries to return.
unitsstringUnit 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.

ParameterTypeDescription
lat *numberLatitude in decimal degrees, between -90 and 90.
lon *numberLongitude in decimal degrees, between -180 and 180.
unitsstringUnit system for the response: one of standard, metric, or imperial.

get_air_pollution

Get current air pollution (AQI and components) for a latitude/longitude.

ParameterTypeDescription
lat *numberLatitude in decimal degrees, between -90 and 90.
lon *numberLongitude in decimal degrees, between -180 and 180.

geocode_location

Geocode a place name to coordinates, returning up to the given limit of matches.

ParameterTypeDescription
query *stringPlace name to geocode to coordinates; must be a non-empty string.
limitnumberMaximum number of matching locations to return.