Hello guys,
I followed the
webcam tutorial and need a bit help please.
Text Emails are working but when I try to send photos this error appears in 'alarm.py':
Traceback (most recent call last):
File "/home/alarmfunctionsr.py", line 411, in SendEmailAlertThread
part = MIMEApplication(open(latestphoto,"rb").read())
IOError: [Errno 21] Is a directory: '/home/webcam'
I'm missing following entry's from the tutorial in /etc/motion/motion.conf:
gap 10
max_mpeg_time 30
output_normal center
webcam_motion on
webcam_maxrate 30
webcam_port 8085
webcam_localhost off
there are others like:
event_gap 60
and stream_* instead of webcam_*
Maybe the tutorial is a bit outdated but Motion is working and pictures are in '/home/webcam'.
I can upload log and config files, just let me know what is needed.
______________________________
Raspberry Pi B
Raspberry Pi flatcable camera (Kuman SC15-1)
2xDoor contacts working.
Temperatur gauge working.
Motionsensor working.
LED working.
2xSwitch RuntimeError.
Siren probably dead.