From 782ea08f44065fd48fdb406522f2f7458a798efd Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Mon, 14 Dec 2015 22:16:29 +0100 Subject: [PATCH] example mail and mqtt files --- notify/mqtt.pl | 10 ++++++++++ notify/sendMail.sh | 3 +++ 2 files changed, 13 insertions(+) create mode 100755 notify/mqtt.pl create mode 100755 notify/sendMail.sh diff --git a/notify/mqtt.pl b/notify/mqtt.pl new file mode 100755 index 0000000..e3e13df --- /dev/null +++ b/notify/mqtt.pl @@ -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"); + diff --git a/notify/sendMail.sh b/notify/sendMail.sh new file mode 100755 index 0000000..b53cc09 --- /dev/null +++ b/notify/sendMail.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "" | mailx -s "motion detected" -a $1 'motion@example.org'