Forum

Einloggen | Registrieren | RSS  

Raspberry und PIT (Computertechnik)

verfasst von bastelix(R), 30.10.2017, 23:55 Uhr

Hallo Luemar

» Habe wiederum das Script unter
» <https://gist.github.com/anonymous/5c25da72e1c24705d626c46a99a59b18>
» verwendet, bekomme aber folgende Fehlermeldung beim erstmaligen Auslösen
» des Sensors:
»
» Traceback (most recent call last):
» File "./PIR_V1.py", line 58, in <module>
» img = MIMEImage(f.read)
» File "/usr/lib/python3.5/email/mime/image.py", line 41, in __init__
» _subtype = imghdr.what(None, _imagedata)
» File "/usr/lib/python3.5/imghdr.py", line 21, in what
» res = tf(h, f)
» File "/usr/lib/python3.5/imghdr.py", line 37, in test_jpeg
» if h[6:10] in (b'JFIF', b'Exif'):
» TypeError: 'builtin_function_or_method' object is not subscriptable
»
» Kann damit absolut nichts anfangen. Könne es daran liegen, dass
» ich eine Nachsichtkamera (NoIR PiCamera) verwende anstelle der "normalen" ?
Im verlinkten Gist steht in Zeile 58

if last_count >= MAX_COUNT:

und im ganzen Script wird keine E-Mail verschickt. Das kann so nicht ganz stimmen. Ich schätze mal du hast auf Basis von dem Script weiterprogrammiert. Du müsstest den aktuellen Code von deinem Script hochladen, damit man den Fehler nachvollziehen kann - so aus dem Stacktrace alleine kann man da nicht so viel erkennen.

Gruß
Bastelix



Gesamter Thread:

Raspberry und PIT - luemar(R), 09.05.2017, 08:31
Raspberry und PIT - Gast, 09.05.2017, 11:33
Raspberry und PIT - bastelix(R), 09.05.2017, 21:33
Raspberry und PIT - bastelix(R), 09.05.2017, 21:47
Raspberry und PIT - luemar(R), 10.05.2017, 12:30
Raspberry und PIT - bastelix(R), 12.05.2017, 23:15
Raspberry und PIT - luemar(R), 03.06.2017, 16:34
Raspberry und PIT - bastelix(R), 03.06.2017, 23:38
Raspberry und PIT - luemar(R), 04.06.2017, 15:56
Raspberry und PIT - bastelix(R), 04.06.2017, 22:46
Raspberry und PIT - luemar(R), 05.06.2017, 11:26
Raspberry und PIT - luemar(R), 20.06.2017, 13:27
Raspberry und PIT - luemar(R), 20.06.2017, 14:18
Raspberry und PIT - bastelix(R), 22.06.2017, 01:01
Raspberry und PIT - luemar(R), 23.06.2017, 15:31
Raspberry und PIT - bastelix(R), 24.06.2017, 00:32
Raspberry und PIT - luemar(R), 18.09.2017, 10:27
Raspberry und PIT - luemar(R), 18.09.2017, 10:30
Raspberry und PIT - luemar(R), 29.10.2017, 15:52
Raspberry und PIT - luemar(R), 30.10.2017, 18:08
Raspberry und PIT - bastelix(R), 31.10.2017, 00:02
Raspberry und PIT - luemar(R), 31.10.2017, 15:56
Raspberry und PIT - bastelix(R), 30.10.2017, 23:55
Raspberry und PIT - luemar(R), 31.10.2017, 15:52
Raspberry und PIT - bastelix(R), 01.11.2017, 00:40
Raspberry und PIT - luemar(R), 02.11.2017, 10:15
Raspberry und PIT - bastelix(R), 03.11.2017, 01:08
Raspberry und PIT - luemar(R), 15.11.2017, 18:14
Raspberry und PIT - bastelix(R), 15.11.2017, 21:49
Raspberry und PIT - luemar(R), 16.11.2017, 17:01
Raspberry und PIT - luemar(R), 29.11.2017, 14:58
Raspberry und PIT - luemar(R), 22.12.2017, 14:21
Raspberry und PIT - luemar(R), 07.07.2017, 20:53
Raspberry und PIT - bastelix(R), 15.07.2017, 23:46
Raspberry und PIT - luemar(R), 07.07.2017, 21:00