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'