[Eisfair_dev] [E1 motion: motionmail.pl sendet nicht

Wolfgang Loefstedt oliaros at web.de
Di Mär 14 18:24:14 CET 2017


Hallo NG,

es gelingt mir nicht, motion mittels motionmail.pl zum Versenden einer
E-Mail mit einer Bildcollage des gespeicherten Ereignisses zu überreden.

perl, perl_addons_01 und imagemagick sind installiert, die folgenden
Parameter in der motion.conf eingetragen:

MOTION_DEF_ON_EVENTSTART='motionmail.pl -start -e %v -i %t -t %S -q'
MOTION_DEF_ON_EVENTEND='motionmail.pl -end -e %v -i %t -q'


Inhalt der motionmail.conf:
#------------------------------------------------------------------------------
# /var/motion/motionmail.conf - configuration file for motionmail.pl
#
# Copyright (c) 2005-2010 Taco Scheltema, taco(at)scheltema(dot)org
# Copyright (c)      2011 The Eisfair Team, team(at)eisfair(dot)org
#
# Creation:     2005-09-01 Taco Scheltema
# Last Update:  $Id: motionmail.conf.EXAMPLE 29646 2012-01-24 19:50:20Z
jed $
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version..
#------------------------------------------------------------------------------
# see motionmail.pl -man for instructions
# comment lines start with blank lines, lines starting with a space and
lines
# starting with # will be ignored
#------------------------------------------------------------------------------

# author of motionmail script
author       = 'The Eisfair Team <team\@eisfair.org>'

# comma separated list of email addresses
send_to      = root at localhost

# directory where event images are stored by motion
# (see the 'target_dir' setting in motion.conf)
file_dir     = /var/www/htdocs/motion/camera-1/

# server url to access montage file on server
server_url   = http://eisfair/motion/camera-1/

# make the montage.png image (1=yes,0=no)
# (nothing will be sent if this is set to 0)
make_montage = 1

# set desired image count per montage
# (0=send only the event images, >0=if possible send montage_image_count)
montage_image_count = 0

# keep event images (1=yes,0=no)
# this will store all event images in a subdir of file_dir called 'history'
keep_history = 1

# application name which will appear in the 'From' field of all email
app_name     = Motion

# application email
# this will be the sender address of all email the 'From:' field will be
# formed like this: From: app_name <app_email>
app_email    = root at localhost

# for each weekday an exclusion time can be set
# this is done in 24h notation in the form of <begin time hhmm>-<end
time hhmm>,
# events will only be sent outside the defined time block, when left empty
# events will be sent for the full 24 hours. see example below

monday   =
tuesday  =
wednesday=
thursday =
friday   =
saturday =
sunday   =
#------------------------------------------------------------------------------


Mit
MOTION_DEF_ON_EVENTSTART='echo test | mail -s "motion detected"
root at localhst'
wird bei Auftreten eines events eine Test-Mail verschickt, motion
erkennt offenbar die events.

motionmail.pl scheint keine syslog-Einträge zu schreiben (auch mit der
Option -debug finde ich nichts.

Was kann ich machen?

Gruss, w


Mehr Informationen über die Mailingliste Eisfair_dev