Ciao a tutti.
Avrei un problema...ancora con motion.
Tutto funziona perfettamente. Adesso pero volevo configurare il sistema per inviare una mail all'evento di motion_detection.
Nel file motion.conf ho inserito il percorso del file cam_event.sh che dovrebbe inviare la mail.
Poi ho creato il file cam_event seguendo alcune guide ma credo che sia proprio qui il problema.
Cosa è necessario per inviare la mail? E' necessario avere un server di posta?
Io come client uso Thunderbird.
Vi allego lo script:
#!/bin/sh
# Motion sample script to send an e-mail at start of an event.
# Replaces the former 'mail' option.
# Just define this script as 'on_event_start'-script in motion.conf like that:
# on_event_start send_mail "%Y-%m-%d %T"
#change to suit your needs:
#location of 'mail' binary
MAIL="/usr/bin/thunderbird"
#Destination e-mail address
TO="giampiero.guzzio@neviga.com"
#Subject of the e-mail
SUBJECT="Motion detected"
#Don't change anything below this line
echo -e "This is an automated message generated by motion.\n\nMotion detected: $1\n\n" | $MAIL -s "$SUBJECT" $TO
AIUTATEMI
INVIARE MAIL DI ALERT CON MOTION
Re: INVIARE MAIL DI ALERT CON MOTION
anche a me interessa
speriamo qualcuno risponda
speriamo qualcuno risponda
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti