Documentation metering computes the quantities of the German energy market — kWh, m³ and kW — with no I/O, no async and no clock. These guides explain the domain knowledge the type signatures cannot carry, and cite the clause behind each rule. The full API is on docs.rs/metering .
Start with a first series and the end-to-end example. Concepts are the three things everything else rests on: the calendar, the series, the identifiers. Tasks are the everyday pipeline; Specialised covers the grid, allocation and EEG quantities. Reference holds the design constraints and the regulatory basis.Start Getting started — Install the crate and do the five everyday things: build a series, validate and substitute it, aggregate it, derive it from readings, and convert gas.The whole pipeline — A tour of examples/pipeline.rs: one Liefertag from the Zählerstandsgang to the § 14a register split, on the 25-hour autumn day.Concepts Time and the calendar — Why a German day is 23, 24 or 25 hours, why the Gastag starts at 06:00, and the one API — DayBoundary to Period — that answers both.Series and readings — MeterInterval and Series, the validated input of the pipeline; Zählerstände differenced into a Lastgang; resampling onto a coarser grid.Identifiers — MaLo-ID, MeLo-ID, BDEW-Codenummer, EIC and OBIS as types: parsed at the boundary, check characters verified, one canonical string each.Tasks Validation and substitution — Plausibilisierung and Ersatzwertbildung: the rules, the grade, and the substitution policy — interpolation up to 2 h, comparable days beyond, a register anchor — with their sources and MSCONS codes.Billing quantities — Arbeitsmenge, Spitzenleistung and Benutzungsstundenzahl; tariff registers and § 14a Modul 3; Blindmehrarbeit, Mehr-/Mindermengen, network losses and the annual forecast.Gas, units and load profiles — m³ to kWh_Hs per DVGW G 685, the Zustandszahl, unit normalisation that refuses to guess, and the standard load profiles: BDEW SLP Strom and SigLinDe SLP Gas.Heat — HeizkostenV quantities: the § 6a monthly consumption information, the § 9 warm-water heat and fuel quantity, and the § 9a estimate with its 25 % limit.Specialised Grid: § 14a, Ausfallarbeit, rollout — The § 14a EnWG Mindestleistung with the Ziff. 2.4.2 grouping and the netzwirksamer Leistungsbezug; Redispatch 2.0 Ausfallarbeit including the fluctuating Spitzabrechnung; the § 29 MsbG rollout duty.Power quality — EN 50160 as the statistical test it is — per ISO week and per phase — and the VDE-AR-N 4100 Unsymmetrieleistung of a customer installation.Allocation — The UTILTS Berechnungsformel, the § 42b community allocation, § 42c Energy Sharing eligibility, and charging sessions placed on the settlement grid.EEG and EnFG — MiSpeL (BNetzA 618-25-02, adopted 01.10.2026) for storage and charge points, the EEG § 51/§ 51a negative-price quarter-hours, and EnFG § 46 Zeitgleichheit.Reference Design constraints — The rules every module follows: purity, exact arithmetic with one float boundary and a named rounding for every cut, determinism, one string per code, the serde representation, and the non_exhaustive policy.Regulatory basis — Every provision this library implements, cited from the published text and dated — and the ones it deliberately does not claim.