开发者 | roxxistudios |
---|---|
更新时间 | 2025年10月5日 04:47 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Yes. WeatherBot retrieves current weather from Google’s Weather API and resolves your city
input with Google Maps Geocoding/Places.
Create a key in the Google Maps/Weather API Platform and enable Weather and Geocoding/Places APIs. Restrict your key per Google’s guidance.
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"]'); ?>
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.
Yes. Choose Theme → Light/Dark (or font_color
shortcode attribute) to ensure readable contrast.
No. API calls go directly from your site to Google using your key. The plugin does not phone home.
No jQuery on the front end. WeatherBot runs on vanilla JS and WordPress packages. (The WP admin may load standard WordPress scripts.)
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.