Været – Værmelding for nettstedet ditt

By avivvaeret

10+ active installationsVersion 2.0.0

Beautiful Norwegian weather forecast for any WordPress site. Block, widget and shortcode. Free, fast, responsive and no iframes.

Description

Show the weather on your website in under a minute. Været adds a modern, responsive weather forecast for any city in the world, in Norwegian or English. Pick a city, choose a style and you are done – no API key, no account and no coding.

Vis været og værmeldingen på nettstedet ditt. Velg by, velg stil, ferdig. Gratis, uten API-nøkkel og uten konto.

Works everywhere

  • Været block for the block editor and block themes (Site Editor / Full Site Editing)
  • Classic widget for sidebars and footers in any classic theme
  • [vaeret] shortcode for Elementor, Divi, Beaver Builder, WPBakery, the classic editor and text widgets

Looks amazing

  • Auto style – the colours follow the weather: icy blue when it freezes, warm orange in the sun, slate grey when rain is coming
  • Dark, Light and Custom styles to match your brand colours
  • Smart, responsive layout: compact in narrow sidebars, a spacious two-column view with a full-week forecast in wide content areas
  • Smooth loading placeholder, crisp icons and accessible markup

Everything your visitors want to know

  • Current temperature and conditions
  • Today’s high and low
  • Humidity, wind speed and chance of rain
  • Sunrise, sunset and hours of daylight
  • Daily forecast for up to 7 days, with temperature range bars
  • Celsius or Fahrenheit
  • Norwegian or English labels

Fast and lightweight

  • No jQuery and no iframes – SEO friendly
  • Scripts and styles only load on pages that show the widget
  • The forecast is cached in the visitor’s browser for 20 minutes and shared between widgets for the same city
  • Works with page caching and CSS optimisation plugins such as LiteSpeed Cache

Free

The widget is completely free. A small “Data fra Vaeret1.com” link is shown under the widget.

Need a custom design? Mail us.

Third-party service

The forecast is provided by the Vaeret1 weather service. The visitor’s browser requests it from weatherwp.com, sending the city, the language, the plugin version and the address of the page that shows the widget.

  • Service: Vaeret1
  • Terms of use: https://www.vaeret1.com/terms
  • Privacy policy: https://www.vaeret1.com/privacy

Installation

  1. In your dashboard go to Plugins > Add New, search for Været and click Install Now, then Activate.
  2. Add the weather in any of these ways:
    • Block editor / Site Editor: add the Været block and set the city in the block settings.
    • Classic themes: go to Appearance > Widgets and add Været Widget to a sidebar.
    • Page builders and anywhere else: paste the shortcode, for example [vaeret city="Bergen" country="Norway"].

FAQ

Is it really free?

Yes. No account, no API key and no paid plan. We ask for fair use and may limit requests that abuse the service.

Which cities are supported?

Cities all over the world. Enter the city and country, for example “Oslo” and “Norway” or “Stockholm” and “Sweden”. If the forecast looks wrong for your city, try its English name.

Which shortcode options are there?

[vaeret city=”Bergen” country=”Norway” language=”norwegian” days=”5″ unit=”c” theme=”auto” width=”full” current=”yes” details=”yes” sun=”yes” title=”” bg=”” color=””]

  • city / country – the location
  • language – norwegian or english
  • days – 0 to 7 days of forecast
  • unit – c (Celsius) or f (Fahrenheit)
  • theme – auto, dark, light or custom
  • bg / color – background and text colour for the custom theme, for example bg=”#a21caf”
  • width – full (fill the space) or tight (compact, centred)
  • current / details / sun – yes or no, to show the current weather, humidity/wind/rain and sunrise/sunset
  • title – your own title instead of “Været i …”

Does it work with block themes like Twenty Twenty-Five?

Yes. Use the Været block in the Site Editor, in a template part or in any post or page.

Does it work with Elementor, Divi or other page builders?

Yes. Add a shortcode or text element and paste the [vaeret] shortcode.

Can I show more than one city on a page?

Yes, add as many blocks, widgets or shortcodes as you like.

Can I change the colours?

Yes. Choose the Light, Dark or Custom style, or keep Auto and the colours follow the weather.

Will my existing widget keep working after updating?

Yes. Widgets created with version 1.0 keep their city, language and options and automatically get the new design.

Does the plugin use cookies or collect personal data?

No cookies are set. The visitor’s browser requests the forecast from the Vaeret1 weather service (weatherwp.com), which receives the city, the language, the plugin version and the address of the page that shows the widget.

I need a custom design, can I talk with someone?

Yes, mail us – we are highly responsive.

Screenshots

Changelog

2.0.0

  • New: completely redesigned widget – modern, fully responsive, with colours that follow the weather and Light, Dark and Custom styles
  • New: Været block with a live preview, which also works in block themes (Site Editor)
  • New: [vaeret] shortcode for page builders, the classic editor and text widgets
  • New: redesigned widget settings with a live preview, style swatches and switches
  • New: Været admin page with a live preview and a shortcode builder
  • New: daylight length, temperature range bars, up to 7 forecast days
  • Improved: no jQuery dependency; scripts and styles only load where the widget is shown
  • Improved: forecast is cached in the browser for 20 minutes and shared between widgets for the same city
  • Improved: friendly loading and error states
  • Improved: the widget keeps its design with CSS optimisers that remove “unused” CSS, such as LiteSpeed Cache
  • New: Celsius or Fahrenheit
  • Improved: the widget tells the weather service which plugin version it is
  • Security: all widget settings and weather data are now escaped on output
  • Existing widgets keep their settings

1.0.0

  • First release.