example mail and mqtt files
This commit is contained in:
parent
22899cb604
commit
782ea08f44
10
notify/mqtt.pl
Executable file
10
notify/mqtt.pl
Executable 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
3
notify/sendMail.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "" | mailx -s "motion detected" -a $1 'motion@example.org'
|
Loading…
x
Reference in New Issue
Block a user