Das Beispiel zeigt mir genau das gleiche an, was ich bisher mit meinem code auch schon habe...
Die Suche ergab 12 Treffer
- Montag 25. März 2024, 16:00
- Forum: Allgemeine Fragen
- Thema: Webuntis API
- Antworten: 11
- Zugriffe: 5918
- Montag 25. März 2024, 15:55
- Forum: Allgemeine Fragen
- Thema: Webuntis API
- Antworten: 11
- Zugriffe: 5918
Re: Webuntis API
[(datetime.time(8, 0), [(datetime.date(2024, 3, 4), {PeriodObject({'id': 499297, 'date': 20240304, 'startTime': 800, 'endTime': 845, 'kl': [{'id': 340}], 'te': [{'id': 408}], 'su': [{'id': 288}], 'ro': [{'id': 32}], 'activityType': 'Unterricht'})}), (datetime.date(2024, 3, 5), {PeriodObject({'id ...
- Montag 25. März 2024, 15:09
- Forum: Allgemeine Fragen
- Thema: Webuntis API
- Antworten: 11
- Zugriffe: 5918
Re: Webuntis API
Leider funktioniert das nicht, da dort dann ein Haufen Müll ausgespuckt wird…noisefloor hat geschrieben: Samstag 23. März 2024, 20:22 Hallo,
naheliegend wäre, die Variablen mit ˋprintˋ ausgeben zu lassen.
Gruß, noisefloor
- Mittwoch 12. Oktober 2022, 15:50
- Forum: Allgemeine Fragen
- Thema: Mehrere Auswahlmöglichkeiten
- Antworten: 4
- Zugriffe: 788
Re: Mehrere Auswahlmöglichkeiten
Danke für die Antwort? Aber jetzt bin ich nur um ein Teil schlauer und weis immer noch nicht, wie das geht...
- Mittwoch 12. Oktober 2022, 15:03
- Forum: Allgemeine Fragen
- Thema: Mehrere Auswahlmöglichkeiten
- Antworten: 4
- Zugriffe: 788
Mehrere Auswahlmöglichkeiten
Hey, ich möchte etwas programmieren, bei dem man 1 von verschiedene Dingen auswählen kann.
Das Sollte z.B. so aussehen:
——————————————————————————————————|
⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀Willkommen⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ |
1: Programm1⠀ ⠀ ⠀ ⠀ ⠀ ⠀ 2: Programm2 ...
Das Sollte z.B. so aussehen:
——————————————————————————————————|
⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀Willkommen⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ ⠀ |
1: Programm1⠀ ⠀ ⠀ ⠀ ⠀ ⠀ 2: Programm2 ...
- Dienstag 11. Oktober 2022, 18:03
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
Guck den Edit von meinem Kommentar auf die Antwort von Sirius3, dann weißt du Bescheid. 
- Dienstag 11. Oktober 2022, 17:59
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
Du hast doch gerade eben selbst den Code reingeschickt... Dann brauch ich ihn doch nicht noch einmal reinschicken.
Edit: Habs jetzt selbst herausgefunden.
Edit: Habs jetzt selbst herausgefunden.
- Dienstag 11. Oktober 2022, 17:41
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
Vielen Dank! Aber jetzt kommt ein kleines Problem...
Code: Alles auswählen
NameError: name 'name' is not defined
- Dienstag 11. Oktober 2022, 17:34
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
Wärst du so lieb und schreibst mir das fix um? Ich denke mal das ich zu doof dazu bin 
- Dienstag 11. Oktober 2022, 17:29
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
import serial, time
def serial_def():
ser = serial.Serial()
ser.port = "COM7"
ser.baudrate = 9600
ser.bytesize = serial.EIGHTBITS
ser.parity = serial.PARITY_NONE
ser.stopbits = serial.STOPBITS_ONE
ser.timeout = 2
ser.xonxoff = False
ser.rtscts = False
ser.dsrdtr = False
ser.write ...
- Dienstag 11. Oktober 2022, 17:20
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
Re: "Can only concatenate str (not "bytes") to str"
narpfel hat geschrieben: Dienstag 11. Oktober 2022, 17:04
Außerdem: Methoden ruft man normalerweise auf einem Objekt auf, alsostattCode: Alles auswählen
"AT\r\n".encode()Hab jetzt deine Variante ausprobiert, und es kommt immer noch die selbe Nachricht. Mach ich irgendwie etwas falsch oder liegts doch am Code?Code: Alles auswählen
str.encode("AT\r\n")
- Dienstag 11. Oktober 2022, 16:10
- Forum: Raspberry Pi und Co.
- Thema: "Can only concatenate str (not "bytes") to str"
- Antworten: 14
- Zugriffe: 5364
"Can only concatenate str (not "bytes") to str"
Moin,
ich bin aktuell dabei, ein GSM Modul über Python anzusteuern. Nun aber bekomme ich eine Fehler beim ausführen des Programmes ausgespuckt. Das Programm soll an "COM7" den Befehl "AT" senden, und soll vorher noch ausgeben, ob der Port offen ist. Das Programm gibt noch an "COM7 ist offen ...
ich bin aktuell dabei, ein GSM Modul über Python anzusteuern. Nun aber bekomme ich eine Fehler beim ausführen des Programmes ausgespuckt. Das Programm soll an "COM7" den Befehl "AT" senden, und soll vorher noch ausgeben, ob der Port offen ist. Das Programm gibt noch an "COM7 ist offen ...
