[Problem] 'Email photo' Error: Is a directory: '/home/webcam'

39 views
Skip to first unread message

Bender Rodríguez

unread,
Nov 17, 2017, 3:12:00 AM11/17/17
to PrivateEyePi
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.

Bender Rodríguez

unread,
Nov 23, 2017, 3:51:04 PM11/23/17
to PrivateEyePi
Just installed Sec Pi https://github.com/SecPi/SecPi and use mails as well as twitter, dropbox and sms alarm :) OpenSource and so^^
Reply all
Reply to author
Forward
0 new messages