Plugin: saunaheater
Author: DIVELUX
Included in ikiwiki: no
Enabled by default: no
Included in goodstuff: no
Currently enabled: yes

This plugin adds two directives for wikis about building or running a sauna (a cabin build log, a club or spa wiki, a maintenance notebook):

  • saunaheater shows the electric heater size (a kW range) or, for a wood-burning stove, the room volume the stove must be rated for;
  • saunatemp shows a sauna temperature in both scales.

The result is computed when the page is built and written into the page as plain HTML: no JavaScript, no network access, no extra Perl modules.

Usage

[[!saunaheater  length=6 width=5 height=7 unit=ft glass=12]]

renders as

Sauna heater: 5.1–7.3 kW electric heater

Room 6 × 5 × 7 ft: 210 cu ft. Glass and stone 12 sq ft count as 47 cu ft more. Volume to heat: 257 cu ft (7.3 m³).

Heater makers' published sizing rules (Harvia, HUUM). Confirm with the heater manufacturer; have an electrician check the circuit.

Parameters:

  • length, width, height – inside size of the hot room (required)
  • unit – ft (default) or m
  • glass – uninsulated glass area (sq ft with ft, m² with m)
  • stone – uninsulated stone, tile or brick area, same units
  • log=yes – bare log walls
  • heater=wood – wood-burning stove: the answer is a room volume, not kW

[[!saunaheater 6 5 7 ft]] (bare values) works too. Sizes outside 3 ft to 19 ft 8 in (0.9 to 6 m) a side, or ceilings outside 5 ft 7 in to 9 ft 10 in (1.7 to 3 m), give the usual ikiwiki error with the reason.

[[!saunatemp  194F]]       -> 194 °F (90 °C)
[[!saunatemp  80C]]        -> 80 °C (176 °F)
[[!saunatemp  80C only]]   -> 176 °F

Method

The numbers follow heater manufacturers' published sizing guidance: 1 kW per cubic metre of room (Harvia, HUUM); each m² of glass, stone or other uninsulated surface adds 1.2 m³ (Harvia); bare log walls multiply the volume by 1.5 (Harvia); the low end of the range is 1 kW per 50 cu ft, which matches Harvia's worked example (8.5 m³, at least 6 kW). A directive cannot see the room, so confirm with the heater manufacturer and an electrician.

Download and install

Code, tests and a screenshot: https://github.com/divelux/ikiwiki-saunaheater (MIT licence). Put saunaheater.pm in ~/.ikiwiki/IkiWiki/Plugin/ (or anywhere in your libdir) and add saunaheater to add_plugins; see install. Optional CSS for local.css is in the repository.

The Perl code is a port of the JavaScript calculator behind the DIVELUX sauna tools; the tests (prove t/) compare it with the original on about 91 000 rooms and build a small wiki with the real ikiwiki. Checked with the Debian packages of ikiwiki 3.20250501 and 3.20200202.3.

The plugin was written with the help of an AI coding assistant (Claude, by Anthropic) and checked by running those tests.