该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Weather Widget by Calcatraz

描述

The perfect way to show current conditions and a 3-day forcast in your sidebar, for a location of your choice. Great for travel sites, town or city sites, etc. It looks good, takes up little space and is easy to set up.

The widget uses accurate weather data from World Weather Online.

About the Weather Widget

The Weather Widget by Calcatraz is a compact WordPress weather widget for your sidebar. It has a neat, neutral design which fits in with almost any site. For the location of your choice (city, town, coordinates, ip address, etc) it shows the current weather conditions on the left and a 3-day forcast on the right.

The widget can display temperatures in both celcius and fahrenheit scales. It can detects the user’s language and shows the appropriate scale, or use a predefined scale. It also allows the user to switch scales, and remembers their preference.

There are now two styles: the default wide style (260 x 58px), and the new square style (133 x 116px) suitable for narrower sidebars.

屏幕截图

  • Weather Widget by Calcatraz (default size)
  • Weather Widget by Calcatraz widget configuration panel
  • Weather Widget by Calcatraz (new square size)

安装

To install the widget on your site, do the following:

  1. In your WordPress Dashboard go to Plugins > Add New
  2. Search for “Weather Widget by Calcatraz”
  3. Click ‘Install Now’
  4. Click ‘Activate Plugin’
  5. Go to Appearance > Widgets
  6. Drag the ‘Weather Widget by Calcatraz’ box into the sidebar area
  7. Click on the ‘Weather Widget By Calcatraz’ to expand the options
  8. Fill out the required information (you can the API key for free at http://developer.worldweatheronline.com/)
  9. Click ‘Save’

That’s it, the weather widget should now show up in your sidebar

常见问题

Can the widget show temperature in Fahrenheit?

Yes, it can now show both Celcius and Fahrenheit. If the scale option is set to “auto”, the widget shows fahrenheit by default to US users (more precisely, those with their browser language set to US English), and Celcius to others. Otherwise, it will use the scale chosen in the widget configuration panel. The user can switch between fahrenheit and celcius, and their preference will be remembered for the duration of their session.

评价

此插件暂无评价。

贡献者及开发者

“Weather Widget by Calcatraz” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.3.7

  • Updated version number

1.3.6

  • Minor CSS fixes

1.3.5

  • Now trims keys to prevent api key failure when trailing spaces present
  • CSS fixes
  • Fixed option to disable / enable credits

1.3.4

  • Better handling of error reporting when no network connection

1.3.3

  • Added error reporting in widget settings panel
  • Can now use both curl and file_get_contents when requesting weather data, so should work in more cases.

1.3.2

  • Switched from PHP sessions to JS cookies

1.3.1

  • Fixed bug where if no size specifed (e.g. when upgrading), square size was chosen instead of the default.

1.3

  • Optimized CSS delivery and selectors for faster loading
  • Fixed bug where setting base tag could prevent scale switching from working
  • Added new square size
  • Added option for picking default scale (fahrenheit or celcius). Auto attempts to show the user the best scale.

1.2.2

  • Fixed bug where styles not applied

1.2.1

  • Fixed multi-line weather description formatting
  • Fixed bug where scale toggle link displayed over drop-down menus

1.2

  • Fahrenheit support added. Now shows fahrenheit by default to US users, and Celcius to others. The user can switch between fahrenheit and celcius, and their preference will be remembered for the duration of their session.
  • Now center aligns in sidebar
  • Minor formatting improvements

1.1

  • Minor changes to plugin directory listing

1.0

  • Created weather widget