Newbie - Send mail script when event occurs
Posted: 16 Aug 2015 19:20
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
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