Create the base class.
OpenWeatherMap developer API token.
Protected Readonly clientClient for interacting with the API.
Protected requestOptional request paramaters.
Protected Readonly tokenOpenWeatherMap developer API token.
Create a OpenWeatherMap request using method chaining.
See buildOpenWeatherMapRequest for more info.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
Gets the current weather conditions, excluding all other datablocks.
Helper function for setting exclude=minutely,daily,hourly
current data block for the request.See OpenWeatherMap Docs for more.
Current forecast conditions.
HttpException if CurrentForecast.current doesn't exist.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
Get the forecast for day, excluding all other datablocks.
Helper function for setting exclude=currently,daily,minutely
hourly data block for the request.See OpenWeatherMap Docs for more.
Forecast for the day.
HttpException if DayForecast.hourly doesn't exist.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
Get the forecast for hour, excluding all other datablocks.
Helper function for setting exclude=currently,daily,hourly
Minutely data block for the request.See OpenWeatherMap Docs for more.
Forecast for the hour.
HttpException if HourForecast.Minutely doesn't exist.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
Gets the forecast for a specified date.
Note: The historical API has some stipulations:
Please note that in order to get historical data for the last five days, you need to make five API calls (one call for each day).
See OpenWeatherMap Docs for more.
Forecast for the specified date.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Specific time to get the weather for.
Optional params: RequestParamsOptional query params for the request.
Get the forecast for week, excluding all other datablocks.
Helper function for setting exclude=currently,minutely,hourly
daily data block for the request.See OpenWeatherMap Docs for more.
Forecast for the week.
HttpException if WeekForecast.daily doesn't exist.
The latitude of a location (in decimal degrees).
The longitude of a location (in decimal degrees).
Optional params: RequestParamsOptional query params for the request.
Generated using TypeDoc
A
classbased wrapper for a OpenWeatherMapClientExample usage:
Example chaining usage: