Newbie - Send mail script when event occurs

Discussions about RaZberry - Z-Wave board for Raspberry computer
Locked
simonc
Posts: 16
Joined: 16 Aug 2015 18:43

Newbie - Send mail script when event occurs

Post by simonc »

Hi , newbie here...

I have a Razberry card installed in a Raspberry Pi 2 with latest Raspbian distro.
First of all Razberry.img is not working for me with Pi2: cannot boot ...so I installed Raspbian (7.8) and Razberry software manually (2.0.1)

I've tried to read the developer Guide, but I'm not a programmer and I have not understand the base mechanism for triggering an event and launch a custom script.

In this moment I have a Fibaro door sensor connected to Razberry, everything seems to be ok I see the device in the dashboard correctly.
What I want now is to create a script to send an email when the sensor is triggered.
I see there is a directory under /opt/z-way-server/automation where I can put a script , I searched the forum but I haven't find a clear guide or solution to explain it. I have zero knowledge of Java&c , only bash scripting.
Anyone can explain me step by step how to create a script that is executed when a sensor is triggered?

thank you all in advance
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Newbie - Send mail script when event occurs

Post by pz1 »

simonc
Posts: 16
Joined: 16 Aug 2015 18:43

Re: Newbie - Send mail script when event occurs

Post by simonc »

Hi,

thank you for the reply.
I've already made some searches and looked at that and other posts but I was searching for something for newbies to this platform in a step by step form...however I've already find a solution I will write in the other thread for problems

Simone
Locked