# Lodur Einsatzapp "Loki - Nordischer Gott des Feuers" ## 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 ## TODO ### Version 1 * Lodur Connect * Fill in Einsatzprotokoll data * Much more error handling * Parse PDF * Store parsed data in Lodur text fields for copy/paste * Cleanup code into proper functions and classes * Lodur "API" class ### Known instabilities * Storing files with "current year" doesn't work well during end of year ### Future versions * Generalize * Documentation * IMAP idle * Display PDF on Dashboard * 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) * Webapp for chosing who was there during the Einsatz ## Lodur Information Gathering ### eins_stat_kantone _02. Einsatzart FKS_ ``` ``` ### emergency_concept_id / ver_sart _03. Verrechnungsart_ * `emergency_concept_id` = value * `ver_sart`= rc-id ``` ```