Page 1 of 1

Newbie - Send mail script when event occurs

Posted: 16 Aug 2015 19:20
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

Re: Newbie - Send mail script when event occurs

Posted: 17 Aug 2015 10:44
by pz1

Re: Newbie - Send mail script when event occurs

Posted: 19 Aug 2015 15:03
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