Linux 软件免费装
Banner图

WeatherBot Weather Widget

开发者 roxxistudios
更新时间 2025年10月5日 04:47
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

Block Live Weather Weather Widget Local Weather Google Weather

下载

1.1.0 1.0.1 1.0.5 1.0.9 1.1.3 1.1.4 1.0.0 1.0.3 1.0.4 1.0.8 1.1.1 1.1.2 1.1.5 1.1.6 1.1.7 1.0.2 1.0.7

详情介绍:

WeatherBot displays live weather for any location in the world using Google’s Weather API, with city/place resolution via Google Maps Geocoding/Places. Use with a Classic Widget, a Gutenberg block (with live preview), or with a shortcode anywhere shortcodes are supported. Outputs a clean, accessible UI that works in any theme or builder.

安装:

From your WordPress dashboard 1.  Go to Plugins → Add New. 2.  Search for WeatherBot. 3.  Click Install Now, then Activate. 4.  Go to Settings → WeatherBot, add your Google Maps API key (enable Weather and Geocoding/Places APIs), and save. 5. Add the WeatherBot Block, Widget, or Shortcode to your site and configure the options. Manual installation 1.  Upload the weatherbot folder to /wp-content/plugins/. 2.  Activate the plugin in Plugins. 3.  Go to Settings → WeatherBot, add your Google Maps API key (enable Weather and Geocoding/Places APIs), and save. 4. Add the WeatherBot Block, Widget, or Shortcode to your site and configure the options.

屏幕截图:

  • Google API Usage Dashboard
  • Badge type with title
  • Compact type
  • Inline type in body text
  • Block with live preview and controls

升级注意事项:

1.1.7 Refinement release with minor code and style improvements. 1.1.6 Prevents PHP 8.x notices in the WeatherBot widget. Recommended for all sites. 1.1.3 Security update: API key field is now masked with a toggle showing only the last 4 digits. Existing keys are preserved unless cleared manually. 1.1.1 Adds WeatherForecast schema for Google rich results plus heading_tag control. Improves semantic HTML for SEO and accessibility.

常见问题:

  1. Does this show live location weather using Google Weather?

Yes. WeatherBot retrieves current weather from Google’s Weather API and resolves your city input with Google Maps Geocoding/Places.

  1. Where do I get a Google API key and what do I enable?

Create a key in the Google Maps/Weather API Platform and enable Weather and Geocoding/Places APIs. Restrict your key per Google’s guidance.

  1. Can I use the shortcode in Widgets, Headers/Footers, or builder modules?

Yes—anywhere WordPress parses shortcodes: posts, pages, widgets, the Core/HTML block, and most page builders. In a PHP template you can use: <?php echo do_shortcode('[weatherbot city="Lake Arrowhead, CA" type="badge"]'); ?>

  1. How often is the weather updated? Can I clear the cache?

Weather results are cached briefly (about 2 minutes per location/unit) to keep results fresh while saving API calls. Geocoding results can be cached long-term. You can manually purge caches from Settings → WeatherBot.

  1. Does the widget support dark backgrounds?

Yes. Choose Theme → Light/Dark (or font_color shortcode attribute) to ensure readable contrast.

  1. Does this plugin track visitors or send data to third-party servers?

No. API calls go directly from your site to Google using your key. The plugin does not phone home.

  1. Is jQuery Required?

No jQuery on the front end. WeatherBot runs on vanilla JS and WordPress packages. (The WP admin may load standard WordPress scripts.)

  1. Can I change the font styles of the weather display?

Yes. While WeatherBot inherits your theme’s fonts, you can easily override them with custom CSS. For example, to make the temperature bold and red, add this to your theme's Additional CSS panel: .roxxi-weather span.wb-temp { font-weight: 700; color: #cc0000; } See the Styling & Customization section for more options.

更新日志:

1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0