2017-12-27 18:40:01 +00:00
|
|
|
# From Mail to Lodur - all automated
|
2017-12-21 21:12:44 +00:00
|
|
|
|
|
|
|
"Loki - Nordischer Gott des Feuers"
|
|
|
|
|
2017-12-27 18:40:01 +00:00
|
|
|
This app helps a Feuerwehr Fourier from the Canton of Zurich
|
|
|
|
in Switzerland to ease the pain of the huge work for getting
|
|
|
|
Einsätze correctly into [Lodur](https://www.lodur.ch/lodur.html).
|
|
|
|
|
2017-12-21 21:12:44 +00:00
|
|
|
## Idea
|
|
|
|
|
|
|
|
* Get mails sent by ELZ with subjects
|
|
|
|
"Einsatzausdruck_FW" and "Einsatzprotokoll"
|
|
|
|
* Store attached PDF in Feuerwehr Cloud (WebDAV)
|
|
|
|
* Publish new message over MQTT
|
|
|
|
* Parse PDFs and try to get information about Einsatz
|
|
|
|
* Connect to Lodur and create a new Einsatzrapport with
|
|
|
|
as much information as possible
|
|
|
|
|
2017-12-24 14:35:16 +00:00
|
|
|
## TODO
|
2017-12-21 21:12:44 +00:00
|
|
|
|
2017-12-24 14:35:16 +00:00
|
|
|
### Version 1
|
|
|
|
|
2018-01-02 15:45:37 +00:00
|
|
|
* IMAP IDLE
|
|
|
|
* Parse Form
|
2018-01-02 16:49:08 +00:00
|
|
|
* README / Docs
|
2017-12-27 18:40:01 +00:00
|
|
|
|
|
|
|
Before version 1 can be tagged, it must have processed at least 5 real
|
|
|
|
Einsätze!
|
2017-12-24 14:35:16 +00:00
|
|
|
|
2017-12-25 12:52:43 +00:00
|
|
|
### Known instabilities
|
|
|
|
|
|
|
|
* Storing files with "current year" doesn't work well during end of year
|
|
|
|
|
2017-12-24 14:35:16 +00:00
|
|
|
### Future versions
|
|
|
|
|
|
|
|
* Generalize
|
|
|
|
* Display PDF on Dashboard
|
2018-01-02 14:20:44 +00:00
|
|
|
* Send statistics to InfluxDB
|
2017-12-24 14:35:16 +00:00
|
|
|
* Webapp to see what's going on
|
|
|
|
* Get as many data out of the PDFs as possible
|
|
|
|
* Simple webform to fill-in missing data (skipping Lodur completely)
|
2017-12-27 18:40:01 +00:00
|
|
|
* Webapp for chosing who was there during the Einsatz (tablet ready)
|
2017-12-24 14:35:16 +00:00
|
|
|
|
|
|
|
## Lodur Information Gathering
|
|
|
|
|
|
|
|
### eins_stat_kantone
|
|
|
|
|
|
|
|
_02. Einsatzart FKS_
|
|
|
|
|
|
|
|
```
|
|
|
|
<option value="1">Brandbekämpfung</option>
|
|
|
|
<option value="2">Elementarereignisse</option>
|
|
|
|
<option value="3">Strassenrettung</option>
|
|
|
|
<option value="4">Technische Hilfeleistungen</option>
|
|
|
|
<option value="5">Ölwehr</option>
|
|
|
|
<option value="6">Chemierwehr inkl. B-Einsätze</option>
|
|
|
|
<option value="7">Strahlenwehr</option>
|
|
|
|
<option value="8">Einsätze auf Bahnanlagen</option>
|
|
|
|
<option value="9">BMA Unechte Alarme</option>
|
|
|
|
<option value="10">Verschiedene Einsätze</option>
|
|
|
|
<option value="11">Keine alarmmässigen Einsätze</option>
|
|
|
|
```
|
|
|
|
|
|
|
|
### emergency_concept_id / ver_sart
|
|
|
|
|
|
|
|
_03. Verrechnungsart_
|
|
|
|
|
|
|
|
* `emergency_concept_id` = value
|
|
|
|
* `ver_sart`= rc-id
|
|
|
|
|
|
|
|
```
|
|
|
|
<option value="2" rc-id="ab">ABC-Einsatz inkl. Oel (Ortsfeuerwehr)</option>
|
|
|
|
<option value="3" rc-id="ab">ABC-Einsätze inkl. Oel (Stützpunkte)</option>
|
|
|
|
<option value="4" rc-id="ab">ABC-Messwagen (Stützpunkte)</option>
|
|
|
|
<option value="5" rc-id="ab">Gaseinsätze (Ortsfeuerwehr)</option>
|
|
|
|
<option value="6" rc-id="ab">Verkehrsunfälle (ohne Strassenrettung)</option>
|
|
|
|
<option value="7" rc-id="ab">Strassenrettung (Ortsfeuerwehr)</option>
|
|
|
|
<option value="8" rc-id="ab">Strassenrettung (Stützpunkt)</option>
|
|
|
|
<option value="9" rc-id="ab">Fahrzeugbrände (ohne Brandstiftung)</option>
|
|
|
|
|
|
|
|
<option value="10" rc-id="th">BMA-Alarm</option>
|
|
|
|
<option value="18" rc-id="th">Hilfeleistungs-Einsätze, verrechenbar durch OFW</option>
|
|
|
|
<option value="19" rc-id="th">Unterstützung Rettungsdienst (ADL/Hilfskräfte)</option>
|
|
|
|
|
|
|
|
<option value="11" rc-id="uh">Dienstleistungen, Verrechenbar durch OFW</option>
|
|
|
|
<option value="12" rc-id="uh">Stützpunkteinsatz (Grossereignisse)</option>
|
|
|
|
<option value="14" rc-id="uh">Nachbarschaftshilfe Ortsfeuerwehr</option>
|
|
|
|
<option value="20" rc-id="uh">Kernaufgaben (Brand, Explosion, Elementar, Erdbeben)</option>
|
|
|
|
<option value="21" rc-id="uh">ADL-/HRF-Einsatz BRAND (ADL = Stüpt-Fahrzeug)</option>
|
|
|
|
|
|
|
|
<option value="13" rc-id="ak">ADL-/HRF-Einsatz BRAND (ADL = OFW-Fahrzeug)</option>
|
|
|
|
<option value="15" rc-id="tt">Grosstierrettung Stützpunkt (PIF mit Kran)</option>
|
2017-12-26 13:27:02 +00:00
|
|
|
```
|