object that defines global options
Private
globalPrivate
createURLPrivate
evaluatePrivate
evaluatePrivate
evaluatePrivate
evaluatePrivate
evaluatePrivate
fetchGetter for current weather
weather object of current weather
options used only for this call
Getter for current data about air pollution
Air Pollution Object with data about current pollution
options used only for this call
Getter for daily weather
array of Weather objects, one for every next day (Empty if API returned no info about daily weather)
maximum length of returned array
boolean indicating whether to include today's weather in returned array
options used only for this call
Getter for every type of weather call and alerts
object that contains everything
options used only for this call
Getter for forecasted weather
array of Weather objects, one for every 3 hours, up to 5 days
maximum length of returned array
options used only for this call
Getter for future data about air pollution
Array of Air Pollution Objects with data about future pollution
maximum length of returned array
options used only for this call
Getter for historical data about weather
Date from the previous five days (Unix time, UTC time zone)
options used only for this call
Getter for historical data about air pollution WARNING: Historical data is accessible from 27th November 2020
Array of Air Pollution Objects with data about historical pollution
Start date (unix time, UTC time zone)
End date (unix time, UTC time zone)
options used only for this call
Getter for hourly weather
array of Weather objects, one for every next hour (Empty if API returned no info about hourly weather)
maximum length of returned array
options used only for this call
Getter for global language
global language
Getter for minutely weather
array of Weather objects, one for every next minute (Empty if API returned no info about minutely weather)
maximum length of returned array
options used only for this call
Getter for today's weather
weather object of today's weather NOT the same as current!
options used only for this call
Private
parseSets global language (Language must be listed here)
language
Sets global location by provided name
name of the location (q
parameter here)
Sets global location by provided zip/post code
zip/post code and country code divided by comma (zip
parameter here)
Private
uncacheGenerated using TypeDoc
Constructor of the class. You can specify global options here
Returns
OpenWeatherAPI object