Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

WP NG Weather

Àpèjúwe

wp-ng-weather is a simple widget for WordPress, which allows you to put a weather widget in your website, by using a simple shortcode like this:

[ng-weather api-key=”my-api-key” city=”Bergamo” locale=”it”]

No coding is required!
wp-ng-weather is a wrapper for Tony Samperi’s ng-weather (tonysamperi.github.io/ng-weather/), which is an AngularJS Directive.
Weather data is got from http://www.openweathermap.org, but they need to track api usage.
So you’ll need your personal API KEY to use this widget, see “Installation” to learn how to get one!
With a FREE API KEY it’s possibile to make 60 calls per minute.

parameters

  • api-key: Your API KEY you got from openweathermap.org. REQUIRED
  • city: A string with the name of your city. This isn’t required if you set “city-id”
  • city-id: A string with the ID of your city. This isn’t required if you set “city”
  • locale: A string with your locale. “en” or “it” are supported at the moment. Default value “en”.

Àwọn àwòrán ìbòjú

  • wp-ng-weather in the widgets sidebar and in the main content

Ìgbéwọlẹ̀

  1. Register here: https://home.openweathermap.org/users/sign_up. When done, you will be redirected to https://home.openweathermap.org/.
    Now in the tab “API Keys” – https://home.openweathermap.org/api_keys – you’ll find your API KEY!
  2. Upload the plugin files to the /wp-content/plugins/wp-ng-weather directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress

and your done!

FAQ

What do I need to start?

You only need an API KEY. See Installation to learn how to get one!

Why do I need an API KEY to get started?

Because openweathermap offers both free and paid services.
A free API KEY gives you up to 60 calls per minute (1 call per second! It’s quite a lot!).
Thanks to the API KEY openweathermap can keep track of theirs api usage and avoid abuses!

Can I put wp-ng-weather in the main content?

Yes. By putting the following snippet in your article or page:
[ng-weather api-key=”my-api-key” city=”Bergamo” locale=”it”]

Can I put wp-ng-weather into the widgets section?

It’s possible, by adding the following function to the “functions.php” file of your template
add_filter(‘widget_text’, ‘do_shortcode’);
But be careful!

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“WP NG Weather” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “WP NG Weather” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.0.0

  • First Release.

1.0.1

  • Added “Thunderstorm” and “Hurricane” weather conditions

1.0.2

  • Added “Fog” and fixed settings select width

1.0.3

  • Added Angular check and warning

1.0.4

  • Fixed missing base url

1.0.5

  • Spinner fixed

1.0.6

  • CSS override prevented

1.0.7

  • Version updated

1.0.8

  • Safe deps load

1.0.9

  • Fixed loading issue