From 42d28fb3fb6c5ea4b727b0e47d883bcc1d0c4224 Mon Sep 17 00:00:00 2001 From: Daniel Schlapa Date: Tue, 9 Jan 2024 17:31:25 +0100 Subject: [PATCH] Dateien nach "/" hochladen --- MaxMustermann.png | Bin 0 -> 2123 bytes README.md | 11 ++++++ Registrierung.py | 88 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 MaxMustermann.png create mode 100644 README.md create mode 100644 Registrierung.py diff --git a/MaxMustermann.png b/MaxMustermann.png new file mode 100644 index 0000000000000000000000000000000000000000..39755483fd4f0f55c78053b59a1bc0a13a2fe203 GIT binary patch literal 2123 zcmeAS@N?(olHy`uVBq!ia0y~yU~~Xs4kiW$2B%L(e;F7UI14-?iy0XBj({-ZRBb+K z1_t)Oo-U3d6?5L+^)6C&6>+#|c93g^ams)0q!V*=O^n$YMc=LRd;0v=b00^o$Zx%` zE(E9TtNs7)uk?j4r{9S){IOwlp3$J_b3i~XfkW7!g;U}X3r`|bn*oM!UG1-i?c29Y zu1|JJ_5A#Id)^22sBhN0YUVbF$A7#1N2dPdJ9I-f98X^2&0hDV{%8F;iSuv%-qc@T z_h9|wf8J6xliB6#9z=gPEJwHXM)om}>EG6Q&DTlH%ju^+{t*qYpG-N z`p*ZKjv+MnV#SLjOFZM|;-nX}1`fj?ZP=POMV(35aF+J^# zrCIXfEvf2X-u&&Hw)TYOha-y}o8MphHU9*r$7UH`;(7g@{r5u2$20dnXV#7WReXQb z(h&A@tLq-AV!BvuUhkGS2J=#@``-RFWS6ywp0&{?d*)v5$M-PRCM7S~t8N@?Rj}>L zPro#)4@VaN&dFkrK~4QP9{axiR_C)n=jZ9h)1B{b|DLq(#IIGq`S+&;TRR*GK+Y}e zBYVF*s9K%o&F3a6U_jiY+Ubr{+-L~KVU(YXmb^dAbvi>Wx3cr@4WvhO1J= z^_aW%PwZ+z|NYCiz6pNu`_g=;|3`}b{%EB>UHo5iX}oRf?cI!b@BO>~ zQ{4nDd*^)ZlR16N*!YY@`O^ zCHf|F|I|J2pX8S#hv;kzH>;HE>*cLJY@X0{@cjR@J)ftZ*Ni`k6rnc+tCN=QKV$Rw zRr;=<^K^a}WE>Mq{Vw}S{1G2dqWc{Fn43)Ro`h;f>-=u}yj1dj<9W=qYb&SBTc=e2 zK+>}LQt<-!yng|w)!gbdmo2Bw z7Ob}UbKr2rw|SOdeu}lnZj$1xa6nDz&)2!_+LAN#+~4-|GbGMR>^dXCcXo#6y?RgM zCuU!YF|ws^Os`4C&7@_L`kH?~q`rU7!>;$!$cI|H_%`xMZbOa>NCH;N%PK#yE?$32x#Ri2tHb+N%}RX#q3D?RuNfHSQO?(!9;dIZ z5Al0pS@6Q>$2HlCh$~AEPT%rf{QEhi2!zxR-zs`cel-5uH1lka|4(*zO=B4giQW0f zn&utk=8dcU`}-wkh}pPVr3fC|e^x?B#)94IgTkUOd_~4;1+V{4yVHmgTP!?@`Tq8g z*YU)%&HsFo)l_FfcH9y85}Sb4q9e0Q?7@{{R30 literal 0 HcmV?d00001 diff --git a/README.md b/README.md new file mode 100644 index 0000000..bbc3bb1 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Registrierung + +Registrierung ist ein in Python geschriebenes Programm zur Ein- & Aus- registrierung +von Einsatzkräften mit Hilfe von QR-Codes. + + +## Authors + +- [@Dtrieb](https://github.com/Dtrieb) +- [@Schrottfresse](https://www.github.com/Schrottfresse) + diff --git a/Registrierung.py b/Registrierung.py new file mode 100644 index 0000000..9f2109e --- /dev/null +++ b/Registrierung.py @@ -0,0 +1,88 @@ +# Registrierung BY DANIEL SCHLAPA + +# Bsp. QRCODE: Mustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;; +# qrcode = "ustermann;Max;01.01.1982;m;40000;Musterdorf;deutsch;Musterstrasse;;Düsseldorf;Deutsches Rotes Kreuz ;;;;" + +import time +import qrcode + +# print(time.strftime("%d%H%M%b%y")) +# print(time.strftime("%d.%m.%Y %H:%M:%S")) + +""" +try: + +except : + + +if ';' in string: + +else: + +""" + + +def input_code(): + scancode = input("Scan den Code: ").strip() + + if ';' in scancode: + kompletter_qrcode = scancode + nachname, vorname, geburtsdatum, geschlecht, plz, ort, nationalitaet, strasse, helferid, null, hiorg, null, null, null,null = kompletter_qrcode.split(";") + kompletter_name = nachname + ", " + vorname + + print("AUSGABE DER DATEN") + print("-----------------\n") + print("Kompletter Name: " + kompletter_name) + print("Vorname: " + vorname) + print("Nachname: " + nachname) + print("Straße: " + strasse) + print("Postleitzzahl + Ort: " + plz + " " + ort) + print("Geburtsdatum: " + geburtsdatum) + print("Geschlecht: " + geschlecht) + print("Nationalität: " + nationalitaet) + print("Hilfsorganisation: " + hiorg) + start_datum = time.strftime("%d.%m.%Y") + start_uhrzeit = time.strftime("%H:%M:%S") + print (start_datum + " " + start_uhrzeit) + else: + print("Code: " + scancode) + +def make_qrcode(): + dateinname_qrcode = input("Dateiname: ").strip() + img = qrcode.make('Daniel') + type(img) + img.save(dateinname_qrcode + ".png") + print("QR-Code " + dateinname_qrcode + ".png" + " wurde erstellt.") + +def main(): + print("""Menü +---- +1 - Einregistrieren +2 - Ausregistrieren + +3 - QR-Code erstellen + +4 - Test + +5 - Ende""") + + while True: + menu_auswahl = int(input("Menüpunkt: ")) + + if (menu_auswahl == 1): + input_code() + elif (menu_auswahl == 2): + print("SORRY - 2") + elif (menu_auswahl == 3): + make_qrcode() + elif (menu_auswahl == 4): + print("SORRY - 4") + elif (menu_auswahl == 5): + return + else: + print("Auswahl ist ungültig!") + + +if __name__ == '__main__': + main() + \ No newline at end of file