Weather Forecast Widget

Описание

GENERAL

The weather data for this widget will be retrieved from the Open Weather Map API https://openweathermap.org/api with your own API key.

INPUT DATA

You can show the weather for a CITY (input data: city name) or for specific COORDINATES (input data: latitude & longitude coordinates) in the widget.

PLACEMENT/SHORTCODE

The weather widget can be implemented in a page, a post or into the widget area with the help of the shortcode [weather_forecast_widget]. Furthermore you´ll be able to pass different attributes to each shortcode to override your settings for this widget placement (e.g. manage widget title with an shortcode attribute).

SHORTCODE EXAMPLES

Retrieve weather data for a city => [weather_forecast_widget city=»Kufstein»]
Retrieve weather data for a city and show city name as title text => [weather_forecast_widget city=»Kufstein» title_cityname=»X»]
Retrieve weather data for specific coordinates => [weather_forecast_widget lat=»47.5824″ lon=»12.1627″]
Retrieve weather data for specific coordinates and show «Weather for Weather Widget» as title text => [weather_forecast_widget lat=»47.5824″ lon=»12.1627″ title_overwrite=»Weather for Weather Widget»]

CACHING

Nowadays caching is an important topic. This weather forecast widget makes it possible to cache the received weather data for the next visitor, who will visit your website page/post next time. You´ll be able to set your desired caching time in the settings (caching time possible up to 1 hour => this should ensure that the weather data in the widget is as current as possible). With this caching possibility you´ll also save API calls.

BACKGROUND IMAGE

For this widget, you´ll be able to choose your own background image. Either you set a static background image in the widget settings or you choose the dynamic variant (thumbnail of the page/post, where the shortcode is placed) will be used as a background image.

WEATHER ICONS

In the widget you´ll find awesome and beautiful weather icons.

Settings

  • Input box for your OPEN WEATHER MAP API key (the api key will be tested for validity while saving!)
  • Dropdown box to choose if caching of the weather data is necessary and if yes, which CACHE TIME should be used.
  • Media uploader/selector to choose a BACKGROUND IMAGE for the widget (optional — otherwise the page/post thumbnail will be used)
  • Radiobuttons to select the WIDGET TITLE TEXT, which will be displayed in the widget. This setting will be used as a default if nothing else will be passed in the shortcode. If you´ll pass title_cityname or title_overwrite as a shortcode attribute, this attribute will be processed in the widget output.
  • Dropdown to choose the POST META FIELD for the title text, if you selected the readio button «Post Meta Field (choose one of the dropdown below)«

Translations

  • German — adminbergtourentipptirol

Скриншоты

  • The MENU PAGE displays a description about this plugin.
  • The SETTINGS PAGE contains all parameters, which are available for the configuration of this plugin.
  • How to embed the 2 SHORTCODE VARIANTS of this plugin.
  • Example of the Shortcode Output - COORDINATES.
  • Example of the Shortcode Output - CITY.

Установка

Via your ADMIN PANEL

  1. Visit «Plugins > Add New»
  2. Search for «Weather Forecast Widget»
  3. Activate the «Weather Forecast Widget» through the plugins menu in your admin panel
  4. Go to «After activation» below.

MANUALLY

  1. Download weather-forecast-widget.zip (from https://wordpress.org/plugins/weather-forecast-widget) and unzip
  2. Upload the weather-forecast-widget folder to the «/wp-content/plugins/» directory using your FTP client
  3. Activate the «Weather Forecast Widget» through the plugins menu in your admin panel
  4. Go to «After activation» below.

AFTER ACTIVATION

  1. Go to «Weather Forecast Widget > Settings» in your admin panel
  2. Input your Open Weather Map API key and choose your desired settings.
  3. You’re done and you can now implement the shortcode in your sidebar, posts and pages.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«Weather Forecast Widget» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Weather Forecast Widget» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0

  • Initial load of the plugin.