example mail and mqtt files

This commit is contained in:
Arne Baeumler 2015-12-14 22:16:29 +01:00
parent 22899cb604
commit 782ea08f44
2 changed files with 13 additions and 0 deletions

10
notify/mqtt.pl Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/perl
use strict;
use warnings;
use Net::MQTT::Simple;
my $mqtt = Net::MQTT::Simple->new("br0tkasten.de");
$mqtt->publish("test/foo" => "hobaguagal");

3
notify/sendMail.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo "" | mailx -s "motion detected" -a $1 'motion@example.org'