Tempestas (Tempestas v0.1.0)

Documentation for Tempestas.

Link to this section Summary

Functions

Get the current weather for a current latitude and longitude. lat: The latitude of the location to check the weather. long: The longitude of the location to check the weather. language: The language to get a localized response in. Default: English timezone: The timezone the server should reply with for times. Default: UTC Timezone data_sets: A enumerable of the data you're requesting, supported values are: currentWeather, forecastDaily, forecastHourly, forecastNextHour, weatherAlerts. Default: currentWeather only country_code: ISO Alpha-2 country code of the requested location. Only required if you wish to get weather alerts.

Link to this section Functions

Link to this function

get_weather(lat, long, language \\ "en", timezone \\ "GMT/UTC", data_sets \\ ["currentWeather"], country_code \\ nil)

Get the current weather for a current latitude and longitude. lat: The latitude of the location to check the weather. long: The longitude of the location to check the weather. language: The language to get a localized response in. Default: English timezone: The timezone the server should reply with for times. Default: UTC Timezone data_sets: A enumerable of the data you're requesting, supported values are: currentWeather, forecastDaily, forecastHourly, forecastNextHour, weatherAlerts. Default: currentWeather only country_code: ISO Alpha-2 country code of the requested location. Only required if you wish to get weather alerts.

example

Example:

iex> Tempestas.get_weather(55.42966, 13.82041)