Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Lagebuch ist das digitale Einsatztagebuch für den Einsatzleitwagen: eine
Desktop-Anwendung, die auch ohne Netz, ohne Cloud und ohne Abo funktioniert.
Ein Einsatz ist eine Datei auf dem ELW-Laptop – mit Einsatztagebuch, Kräften,
Atemschutzüberwachung, Aufgaben, CO-Messprotokoll und PDF-Bericht.
Atemschutzüberwachung, Aufgaben, Gasmessprotokoll und PDF-Bericht.

**Alles auf einer Seite:** [codeforfire.github.io](https://codeforfire.github.io/) –
Übersicht, Probefahrt, Download und Datenschutz, ohne GitHub-Konto und ohne
Expand Down Expand Up @@ -70,7 +70,7 @@ Markdown.
| **Ausgabeliste** | Ausgegebene Geräte (Mobilteil, Westen, AED …) aus den Stammdaten: an wen, Telefon, Organisation, mit Uhrzeit; Rückgabe mit einem Klick – was noch draußen ist, steht oben, und „Einsatz abschließen“ warnt davor; im PDF, ohne ETB-Eintrag |
| **Atemschutzüberwachung** | Trupps mit Einstiegsdruck, Einsatzzeit-Countdown, Druckabfrage-Intervall, Rückzugsdruck und Rückzugsalarm – mit Sprachansage und Sirene; Sicherheitstrupp je Trupp zugeordnet und im ETB protokolliert |
| **Rückmeldung an ILS** | Erinnerung nach konfigurierbarer Zeit, danach im Intervall, mit ERLEDIGT-Quittierung; überlebt Neustart und Absturz |
| **CO-Messprotokoll** | Haus, Stockwerk, Wohnung: Status (offen / durchsucht / betroffen), Messreihe je Wohnung mit Uhrzeit und ppm-Wert in Gefahrenfarbe, Bewohnername, Schlüssel vorhanden – wie die Türmarkierung vor Ort; der Verlauf steht im ETB und im PDF |
| **Gasmessprotokoll** | Haus, Stockwerk, Wohnung: Status (offen / durchsucht / betroffen), bis zu acht Gase aus den Stammdaten (CO, CO₂, H₂S, CH₄, O₂ …) mit eigener Einheit und eigenen Grenzwerten, Messreihe je Wohnung mit Uhrzeit und Wert in Gefahrenfarbe – die Kachel zeigt das schlimmste Gas, Bewohnername, Schlüssel vorhanden – wie die Türmarkierung vor Ort; der Verlauf steht im ETB und im PDF |
| **Checklisten** | Beliebig viele eigene Checklisten aus den Stammdaten – benannt, in frei wählbarer Reihenfolge in der Seitenleiste, Pflichtpunkte markiert, Abschluss im ETB protokolliert |
| **Dateien & Links** | Fotos und PDFs an den Einsatz hängen (landen im Bericht); Schnellzugriff auf Wetter, Karten, Hydrantenplan |
| **PDF-Bericht** | Ein Klick, Abschnitte wählbar, Anhänge eingebettet – fertig für Akte und Kreisbrandinspektion |
Expand Down Expand Up @@ -126,11 +126,11 @@ Alle Beispieldaten sind frei erfunden.
([Direktlink](https://github.com/CodeForFire/lagebuch/raw/main/docs/samples/uebung.lagebuch)),
in Lagebuch **ÖFFNEN** wählen. Der Einsatz „B 3 – Zimmerbrand“ hat schon
ETB-Einträge, vier Fahrzeuge, einen Angriffstrupp unter Atemschutz mit
zugeordnetem Sicherheitstrupp, Aufgaben und ein CO-Messprotokoll, in dem
zugeordnetem Sicherheitstrupp, Aufgaben und ein Gasmessprotokoll, in dem
eine Wohnung schon dreimal gemessen wurde. Über **WEITER BEARBEITEN** könnt ihr selbst eingreifen.
4. **Ausprobieren** – einen ETB-Eintrag schreiben, im Tab **ATEMSCHUTZ** einen
Trupp bereitstellen, einen Sicherheitstrupp zuordnen und starten, eine
Aufgabe mit Timer anlegen, in der **CO-MESSUNG** eine Wohnung markieren oder
Aufgabe mit Timer anlegen, in der **GASMESSUNG** eine Wohnung markieren oder
einen weiteren Messwert eintragen.
5. **PDF EXPORTIEREN** – der fertige Einsatzbericht liegt nach ein paar
Sekunden auf der Platte.
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+gasmessung-messgase.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gasmessung: the former CO-Messung records up to eight gases per Wohnung, each with its own unit and bands taken from a new Messgase list in the Stammdaten and copied into the Einsatz, so CO₂, H₂S, CH₄ and a falling O₂ reach the matrix, the ETB and the PDF, the tile shows the worst gas, a Stammdaten without Messgase measures CO at the DGUV alarm thresholds 20 / 60 / 200 ppm while an Einsatz from before keeps its 30 / 200 / 800 (#410).
8 changes: 4 additions & 4 deletions docs/datenschutz-und-sicherheit.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ einzelne Datei gespeichert wird.
| Einsatztagebuch (ETB) | Freitext bis 4000 Zeichen, Von/An, Richtung, „erfasst von“ | Einsatzdatei |
| ETB-Korrekturen | **jede überschriebene Fassung bleibt erhalten**, mit Zeitpunkt und Bearbeiter | Einsatzdatei |
| Einsatzdaten | Stichwort, Einsatznummer, **Straße und Ortsteil**, „abgeschlossen von“ | Einsatzdatei |
| CO-Messprotokoll | **Name der Bewohnerin oder des Bewohners je Wohnung**, ppm-Wert, Status, Schlüssel vorhanden | Einsatzdatei |
| Gasmessprotokoll | **Name der Bewohnerin oder des Bewohners je Wohnung**, Messwerte der Gase, Status, Schlüssel vorhanden | Einsatzdatei |
| Kräfte | Wache, Funkrufname, Stärke als Zahlen (ZF/GF/Mann, AGT), Status, Bemerkung – **keine Namen** | Einsatzdatei |
| Aufgaben | Auftrag, Zuständiger (Freitext), „angelegt von“, „erledigt von“, Zeiten | Einsatzdatei |
| Beteiligte | **Name, Telefonnummer, Notiz und Aufenthaltsort** (z. B. „im RTW …“, mit Uhrzeit) von Personen außerhalb der Feuerwehr (z. B. Eigentümer, Fahrzeughalter, Polizei), die Wohnung, in der sie angetroffen wurden, „angelegt von“ | Einsatzdatei |
Expand All @@ -54,7 +54,7 @@ einzelne Datei gespeichert wird.

Drei Punkte verdienen besondere Aufmerksamkeit:

**Das CO-Messprotokoll enthält Daten Dritter.** Erfasst werden hier Namen von
**Das Gasmessprotokoll enthält Daten Dritter.** Erfasst werden hier Namen von
Personen, die nicht der Feuerwehr angehören und die der Erfassung nicht
zugestimmt haben. Die Verarbeitung erfolgt zur Einsatzdurchführung, und genau
dieser Teil der Einsatzdatei sollte bei der Festlegung von Löschfristen zuerst
Expand All @@ -67,7 +67,7 @@ oder die Ansprechperson der Polizei werden mit Name, Telefonnummer und Notiz
erfasst. Diese Angaben stehen bewusst nur in dieser Liste und im PDF-Bericht –
das ETB erhält beim Anlegen, Ändern oder Entfernen keinen Eintrag. Ein
entfernter Eintrag ist damit aus der Einsatzdatei verschwunden; für
Löschfristen gilt dasselbe wie für das CO-Messprotokoll. Für die Ausgabeliste
Löschfristen gilt dasselbe wie für das Gasmessprotokoll. Für die Ausgabeliste
gilt dasselbe: Wer ein Gerät erhalten hat – etwa die Presse oder eine
Nachbarwehr –, steht mit Name und Telefonnummer nur dort und im PDF-Bericht,
nicht im ETB.
Expand Down Expand Up @@ -268,7 +268,7 @@ vollständigen Stand des Einsatzes: Einsatzdaten, das gesamte ETB einschließlic
der aufbewahrten Korrekturfassungen, Funktionen **mit Namen und
Telefonnummern**, Kräfte, Atemschutztrupps mit den Namen der Truppmitglieder,
Aufgaben, Beteiligte **mit Namen und Telefonnummern**, die Ausgabeliste
**mit Namen und Telefonnummern**, CO-Messprotokoll, Änderungsprotokoll und die
**mit Namen und Telefonnummern**, Gasmessprotokoll, Änderungsprotokoll und die
Liste der Anhänge.
Anhänge selbst werden nur auf Anforderung übertragen (höchstens 25 MB je Datei).

Expand Down
7 changes: 7 additions & 0 deletions docs/master-data.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
},
{ "name": "Haus A", "street": "Hauptstraße", "houseNumber": "5", "postalCode": "12345", "place": "Musterstadt", "floors": 3, "apartmentsPerFloor": 2, "undergroundFloors": 0, "apartmentLabels": {} }
],
"gases": [
{ "name": "CO", "unit": "ppm", "direction": "steigend", "elevated": 30, "dangerous": 200, "lethal": 800, "plausibleUpTo": 2000 },
{ "name": "CO2", "unit": "Vol-%", "direction": "steigend", "elevated": 0.5, "dangerous": 4, "lethal": 8, "plausibleUpTo": 20 },
{ "name": "H2S", "unit": "ppm", "direction": "steigend", "elevated": 5, "dangerous": 10, "lethal": 100, "plausibleUpTo": 500 },
{ "name": "CH4", "unit": "%UEG", "direction": "steigend", "elevated": 10, "dangerous": 20, "lethal": 40, "plausibleUpTo": 100 },
{ "name": "O2", "unit": "Vol-%", "direction": "fallend", "elevated": 19, "dangerous": 17, "lethal": 10, "plausibleUpTo": 25 }
],
"settings": {
"ilsReminderIntervalMinutes": 15,
"ilsReminderFollowUpIntervalMinutes": 30,
Expand Down
52 changes: 49 additions & 3 deletions docs/master-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ is plain text in the entry: changing a Textbaustein later changes no entry.
Ausrückebereich whose structure is known long before the call, such as a
recurring Wohnanlage. Each Objekt has a `name`, an optional address (`street`,
`houseNumber`, `postalCode`, `place`) and the structure a Haus in the
CO-Messprotokoll starts with:
Gasmessprotokoll starts with:

| Field | JSON | Range | Missing reads as |
|---|---|---|---|
Expand All @@ -81,17 +81,63 @@ gives it (`Links`/`Mitte`/`Rechts` on a floor of three, `Whg. N` otherwise). A
label is cut to 60 characters, and a key that names no floor or Wohnung of the
Objekt is dropped.

Typing in **BEZEICHNUNG** in the CO-Messprotokoll's **HAUS HINZUFÜGEN** dialog
Typing in **BEZEICHNUNG** in the Gasmessprotokoll's **HAUS HINZUFÜGEN** dialog
suggests the Objekte. Picking one fills Geschosse, Wohnungen/Geschoss and
Untergeschosse, unless one of them was already changed by hand, and the Haus is
created with the Objekt's Wohnungsbezeichnungen. These values are **copied**
into the Einsatz. Editing or deleting the Objekt later changes no Haus already
in an Einsatzdatei. A name that matches no Objekt adds a Haus exactly as before.

The address is not copied, because a Haus in the CO-Messprotokoll has none. It
The address is not copied, because a Haus in the Gasmessprotokoll has none. It
tells two Objekte apart in the list. Out-of-range numbers are clamped, rows
without a name are skipped, a second Objekt of the same name (ignoring case) is
dropped, and a list holds at most 500 Objekte.

## Messgase

`gases` is the list **Messgase**: the gases a crew reads off its multi-gas meter
in the **Gasmessung**, at most eight, in the order every Einsatz shows them.

| Field | JSON | Meaning |
|---|---|---|
| Gas | `name` | the label on the tile, in the editor, the ETB and the PDF; at most 12 characters |
| Einheit | `unit` | free text, e.g. `ppm`, `%UEG`, `Vol-%`, `mg/m³`; at most 10 characters |
| Richtung | `direction` | `"steigend"` (higher is worse) or `"fallend"` (lower is worse, for O₂); anything else reads as steigend |
| Erhöht / Gefährlich / Lebensgefährlich | `elevated` / `dangerous` / `lethal` | the bands, each optional, ordered in the gas's direction |
| Plausibel bis | `plausibleUpTo` | optional; a reading above it gets the "bitte auf Tippfehler prüfen" hint and is still recorded |

Numbers may carry decimals (`20.9` in the file, `20,9` on screen). A gas without
any band is recorded and shown without colour. A Stammdaten file without `gases`,
or with an empty list, measures `CO` in `ppm`, steigend, 20 / 60 / 200, plausible
up to 2000. Those are the alarm thresholds A1 / A2 / A3 that DGUV FBFHB-021 gives a
three-threshold CO meter (Dräger, *Alarmschwellen BOS*, 08/2024), so the tile turns
when the crew's meter alarms. An Einsatzdatei from before the Messgase list keeps
the bands the app used then, 30 / 200 / 800, so reopening it recolours nothing.

The bands are meant to match the crew's own meters:

| Band | Meter | Means |
|---|---|---|
| Erhöht | A1 | first alarm |
| Gefährlich | A2 | second alarm |
| Lebensgefährlich | A3, the highest threshold | Rückzug |

A two-threshold meter alarms at A1 and A2 only (DGUV: 20 and 200 ppm for CO). Its
A2 is the Rückzug threshold, so set Lebensgefährlich to it and leave Gefährlich
empty: 20 / — / 200. Check the values against your own devices and Dienstanweisung
before relying on them.

The import rejects a file whose bands are out of order for their gas, because
guessing which of them was meant would colour a Wohnung wrongly; a band that is
not a number, negative or above 100 000 rejects it too. More than eight gases are
cut at eight, an overlong name or unit is cut, and a second gas of the same name
(ignoring case) is dropped. The editor names the same problems and does not save
until they are fixed.

The list is **copied** into an Einsatz when the Gasmessung opens its first Haus.
From then on the Einsatz keeps its own copy: editing the Messgase later changes
no Einsatzdatei, and a joined device shows the host's list.

## Funkgruppen and the Führungstafel slot of a Funktion

`talkGroups` lists the Funkgruppen a Führungsstelle works on: each has a `name`, an
Expand Down
Binary file modified docs/samples/uebung.lagebuch
Binary file not shown.
17 changes: 14 additions & 3 deletions src/LageBuch.App.Shared/Theme/Styles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="clr-namespace:LageBuch.App.Shared.Behaviors"
xmlns:ctrl="clr-namespace:LageBuch.App.Shared.Controls"
xmlns:vm="clr-namespace:LageBuch.AppLogic.ViewModels;assembly=LageBuch.AppLogic">
xmlns:vm="clr-namespace:LageBuch.AppLogic.ViewModels;assembly=LageBuch.AppLogic"
xmlns:domain="clr-namespace:LageBuch.Domain;assembly=LageBuch.Domain">

<Styles.Resources>
<ResourceDictionary>
Expand Down Expand Up @@ -676,8 +677,8 @@
Any, no FormatString) a typed "3.5" is kept as 3.5 by the control and displayed as such,
while the int-typed view-model property rounds it to 4: the number on screen is not the
number written into the Einsatz record. Integer parsing refuses the fraction outright, and
FormatString pins the display to whole numbers. A future input that genuinely needs decimals
can override both locally. -->
FormatString pins the display to whole numbers. An input that genuinely needs decimals takes
the decimal class below. -->
<Style Selector="NumericUpDown">
<Setter Property="ParsingNumberStyle" Value="Integer" />
<Setter Property="FormatString" Value="0" />
Expand All @@ -693,6 +694,16 @@
<Setter Property="ShowButtonSpinner" Value="False" />
</Style>

<!-- A gas reading (#410) is the one input with a fractional meaning: 20,9 Vol-% O2. It parses in
de-DE whatever the device's culture, so the comma is the decimal separator. Float, not
Number: Number accepts the German thousands dot too, which would read a typed "20.9" as 209;
Float refuses it instead. Two decimals, like the domain keeps. -->
<Style Selector="NumericUpDown.decimal">
<Setter Property="ParsingNumberStyle" Value="Float" />
<Setter Property="FormatString" Value="0.##" />
<Setter Property="NumberFormat" Value="{x:Static domain:Formatting.NumberFormat}" />
</Style>

<!-- Labeled field wrapper (#137): caption above an arbitrary input control. Styling the
built-in HeaderedContentControl rather than a bespoke control means a field can't be added
without a Header showing up somewhere in the tree — an empty label slot is visually obvious
Expand Down
Loading
Loading