Weather warnings
[madeira_weather_warnings] shows IPMA's yellow, orange and red weather warnings for Madeira as a banner, in the safety colours, whatever the look. With no warning in force, it shows nothing.
The banner names the worst warning (for example "Orange warning: heavy rain, Mountain regions") with when it runs, and lists the others under it. On a site in Portuguese it adds IPMA's own words.
| Attribute | Default | What it does |
|---|---|---|
areas | MCN,MCS,MRM,MPS | Which of Madeira's warning areas: MCN north coast, MCS south coast, MRM mountain regions, MPS Porto Santo |
show_areas | false | true adds the four areas under the banner, each with its level |
when_none | hide | message shows a small line saying there are no warnings |
dismissible | true | Visitors can close the banner. It stays closed for that warning, and comes back for a new one. |
On the cards and the map
Since 3.1 the cards and the map show IPMA's warnings themselves, in a strip above the cards or under the map's heading: a headline for the most severe level ("Red warning: heavy rain and strong wind"), then a row per warning in force or starting within twelve hours for the towns shown: its level, what, where and until when. Beyond three, a Show all button shows the rest. At the end, a link to IPMA's warnings page ("More on IPMA" when IPMA has warnings the strip does not list). It cannot be closed.
The strip shows once per page, on the first widget that would show it (or not at all when the warnings widget comes first). show_warnings="always" shows it on a widget anyway; show_warnings="false" never. Switch it off everywhere under Settings, Display, Weather warnings.
It is a card of the widget's look, with only the level's colour as the accent (the left edge, the dot and the pills), so it follows every look in light and dark. Your own CSS can restyle it with these properties on .mw-warnstrip (or any parent): --mw-warn-bg, --mw-warn-ink, --mw-warn-muted, --mw-warn-edge, --mw-warn-radius, and the level colours --mw-warn-yellow, --mw-warn-orange, --mw-warn-red.
The tips on the cards follow the warnings whatever that switch says: see What the cards recommend.
Where the data comes from
IPMA's open-data warnings file (api.ipma.pt/open-data/forecast/warnings/warnings_www.json): the level, the type (rough seas, rain, wind, thunderstorms, fog, hot or cold weather, snow), the area, and the start and end of each warning, up to three days ahead. Madeira's four area codes were checked against the live file in October 2026. The times are read as UTC, as IPMA's API documents its data, and shown in Madeira's time.
The file is fetched every 20 minutes in the background. Since 3.1 it is always fetched, because the cards' tips depend on it.