Provides weather support thanks to OpenWeatherMap http://openweathermap.org
License: Creative Commons (cc-by-sa) http://creativecommons.org/licenses/by-sa/2.0/.
Get an API key http://openweathermap.org/appid#get
Methods | ||
---|---|---|
public
|
__construct()
|
# |
public
|
Weather()
|
# |
public
|
localize()
|
# |
public
|
get_settings(&$ep_settings, &$reg_settings)
|
# |
public
|
settings_form(type $ep_settings)
|
# |
public
|
init(object $EP): void
|
# |
public
|
params(array $params = []): array
|
# |
public
|
retreive(WP_Post $event): WP_Post
|
# |
public
|
scheme_entities(array $attr = []): array
|
# |
public
|
scheme_values(array $values = [], $post = null): array
|
# |
public
|
default_shema(array $schema): array
|
# |
public
|
get_single($event_datas, $post = null)
|
# |
public
|
get_weather_icons($weather)
|
# |
public
|
get_weather_item(object $item): string
|
# |
public
|
get_weather(type $post = null, $echo = false): string
|
# |
public
|
get_weather_datas(type $event): type
|
# |
public
|
get_url(type $method = 'weather', type $params = []): type
|
# |
public
|
get_current(type $event): object
|
# |
public
|
get_forecast(type $event): type
|
# |
public
|
get_history(type $event): type
|
# |
Properties | |||
---|---|---|---|
public
|
|
$META_WEATHER
|
# |
public
|
|
$api_key
|
# |
public
|
|
$units
|
# |
public
|
|
$unit_names
|
# |
public
|
|
$theme
|
# |