Spelhubben Weather
Weather widget & block with optional map and daily forecast. Can combine Open-Meteo, SMHI, Yr/MET and FMI data.
Plugin info
Maintenance & Compatibility
Maintenance score
Actively maintained • Last updated 67 days ago
Is Spelhubben Weather abandoned?
Likely maintained (last update 67 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This plugin displays current weather and an optional forecast. It can aggregate data from northern-Europe friendly providers (Open-Meteo, SMHI, Yr/MET Norway, and FMI / Finnish Meteorological Institute) and compute a simple consensus.
Features
– Gutenberg block and shortcode
– Optional Leaflet map (OpenStreetMap)
– Daily forecast and multiple layouts (inline, compact, card, detailed)
– Caching with transients + one-click cache clear
– Fully translatable
– Included translations: Swedish (sv_SE), Norwegian (nb_NO), English (en_US)
– New (1.7.0): modern admin UI with a dedicated Shortcodes page (search, copy, “copy all”), and live preview inside WP-admin
– New (1.7.5): FMI (Finland, Open Data) as an additional free provider (temperature, wind, hourly precip, cloud cover via WFS)
Not affiliated with Open-Meteo, SMHI, Yr/MET Norway, FMI, Leaflet, or OpenStreetMap. Names are used for descriptive purposes only. Map data © OpenStreetMap contributors (ODbL).
Installation
- Upload/activate the plugin.
- Go to Settings Spelhubben Weather and set defaults (place, shown fields, layout, providers, cache time, units/format).
- Add weather to your site in any of these ways:
Block (Gutenberg)
- Edit a page/post click Add block search for “Spelhubben Weather”.
- Optional: override defaults in the block sidebar (place/lat,lon, layout, map, forecast).
Shortcode
- Insert
[spelhubben_weather]anywhere shortcodes are supported. - Examples:
- Basic:
[spelhubben_weather] - Compact with map & animation:
[spelhubben_weather place="Gothenburg" layout="compact" map="1" animate="1"] - Inline no map:
[spelhubben_weather lat="57.7089" lon="11.9746" layout="inline" map="0" show="temp,icon"] - Detailed + daily forecast (5 days) + provider mix:
[spelhubben_weather place="Umeå" layout="detailed" forecast="daily" days="5" providers="smhi,yr,openmeteo,fmi"]
- Basic:
Classic Widget
- Go to Appearance Widgets add Spelhubben Weather.
- Configure per-widget options (title, place or lat/lon, fields, layout, map, forecast, days, CSS class).
Frequently Asked Questions
From public APIs such as Open-Meteo, SMHI, Yr/MET Norway, and FMI (Finnish Meteorological Institute). You choose providers under Settings Spelhubben Weather or per block/shortcode/widget via the providers attribute.
No. Open-Meteo, SMHI, and FMI do not require keys. For Yr/MET Norway it’s recommended to include contact info (email/URL) in Settings Spelhubben Weather Yr contact/UA so your User-Agent is compliant.
All three render the same UI. Use the block in the block editor, the shortcode in classic content areas, and the widget in sidebars (Appearance Widgets). Each lets you override global defaults.
Go to Settings Spelhubben Weather Shortcodes. You’ll find searchable examples, one-click copy (and “copy all”), plus a live preview that renders the shortcode inside WP-admin.
If lat and lon are provided they take precedence. Otherwise the plugin geocodes the place string (e.g. place="Umeå"). Set a global default place in settings.
Use show="temp,wind,icon" (comma separated). Defaults are set in settings.
Choose layout="inline|compact|card|detailed". “Detailed” supports the multi-day forecast row.
map=”1″ shows a Leaflet map (OpenStreetMap). Control height with map_height="240" (px). Global defaults exist in settings.
animate=”1″ adds subtle UI animation. Global default is in settings.
Set forecast="daily" and days="3–10". Example: forecast="daily" days="5".
Yes. Set providers="smhi,yr,openmeteo,fmi" (order doesn’t matter). The plugin calculates a simple consensus across available providers for the displayed fields.
Pick a preset with units="metric|metric_kmh|imperial". You can override parts via temp_unit="C|F", wind_unit="ms|kmh|mph", precip_unit="mm|in", and date_format for forecast labels. All have global defaults in settings (Units & format section).
Responses are cached with WordPress transients. Change TTL (minutes) in settings. Clear via the Clear cache button on the settings page or by changing attributes (which creates a new cache key).
Yes, rendering is server-side. The map (Leaflet) requires JS.
The plugin is fully translatable. Included translations: Swedish (sv_SE), Norwegian (nb_NO), English (en_US). Strings are also available on translate.wordpress.org. Ship .pot/.po/.mo in /languages.
The plugin does not set cookies by itself. If you enable the map, Leaflet/OpenStreetMap tiles are requested client-side. Mention OSM in your privacy notice if needed.
- Nothing shows: check that at least one provider is selected in settings.
- Wrong location: provide exact
lat/lonor a more specificplace(e.g. “Uddevalla, SE”). - Map not visible: ensure
map="1"and that your theme/container is wide/tall enough; increasemap_height. - Rate limiting: reduce refreshes or increase cache TTL.
[sv_vader …] is still accepted for compatibility, but deprecated and will be removed soon. Please switch to [spelhubben_weather …].
Review feed
Changelog
1.7.5
- New: FMI (Finnish Meteorological Institute) as a free, optional provider (t2m, ws_10min, r_1h, n_man via WFS). Toggle in Settings Providers and via
providers="…"in block/shortcode/widget. - Shortcodes/Blocks:
providersnow acceptsfmi. - Docs: Updated examples and FAQ to include FMI.
1.7.0
- New: Shortcodes admin page with searchable examples, one-click copy & copy all.
- New: Live preview inside WP-admin (sandboxed iframe) that renders shortcodes and loads front assets (Leaflet, widget CSS/JS).
- New: Units & format settings (preset + overrides: temp/wind/precip units,
date_format). - New: Clear cache button (transients) on settings page.
- New: Translations included: Swedish (sv_SE), Norwegian (nb_NO), English (en_US).
- UX: Unified light card design across admin pages.
- Tech: Robust admin enqueue with cache-busting via
filemtime. - i18n: All admin strings localized (including JS: expand/collapse, statuses).
- Docs: Marked legacy shortcode as deprecated – will be removed soon.
1.6.2
- Minor fixes and readme updates.
1.6.1
- Initial public release. Security hardening and improved uninstall cleanup.


