Weather on your site with WPWeeWX
WPWeeWX is a WordPress plugin that reads the JSON produced by WeeWX-Conditions and renders responsive weather dashboards anywhere on your site with a simple shortcode.
Shortcode-driven
Drop [weewx_weather] into any page or post. Attributes select
the data source and view.
Responsive dashboards
Displays adapt to phones, tablets, and desktops without extra theming work.
Local time aware
Timestamps follow your WordPress timezone setting, so readings always make sense to your visitors.
WordPress 6.0+ (tested up to 6.6), PHP 8.0+, and a WeeWX station publishing JSON with the WeeWX-Conditions extension.
Install
- Download wp-weewx and upload the plugin directory to
/wp-content/plugins/on your WordPress server. - Activate the plugin from the WordPress admin panel.
- If you haven't already, install WeeWX-Conditions on your WeeWX machine so the JSON files exist.
- Go to Settings → WeeWX Weather and enter the URLs of your JSON data sources.
Usage
Place the shortcode wherever you want a dashboard:
[weewx_weather]
Attributes select the data source and view, for example:
[weewx_weather source="simple" view="current"]
Timestamps render in your site's timezone, set under Settings → General → Timezone.
Questions or a dashboard that isn't cooperating? Bring it to Discord or open an issue on GitHub.