App to execute shell scripts ? SmartHome UI

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

App to execute shell scripts ? SmartHome UI

Post by LOCOSP » 16 Oct 2015 20:35

Hi, in my home setup i'm using not only z-wave but tellstick and lirc IR controler. And i wonder if is any app on the SmartHome UI list that can be used as a trigger to execute shell scripts like IF>then etc. I want to be able trigger z-wave motion sensor to turn on RF controller or TV via IR. Or if You can tell mi how to monitor this sensor via HTTP commands.

It can be as well "URL POST/GET" app to exec my php scripts...


Thank You in advance
LSP

AlphaX2
Posts: 110
Joined: 25 Jul 2015 15:03

Re: App to execute shell scripts ? SmartHome UI

Post by AlphaX2 » 23 Oct 2015 20:23

Maybe you can use the JS CodeDevice as toogleButton to call your PHP via JS. HTTP requests should be easy to do with JavaScript?!

LOCOSP
Posts: 29
Joined: 22 Sep 2013 02:33

Re: App to execute shell scripts ? SmartHome UI

Post by LOCOSP » 25 Oct 2015 20:19

AlphaX2 wrote:Maybe you can use the JS CodeDevice as toogleButton to call your PHP via JS. HTTP requests should be easy to do with JavaScript?!
Hi thank You for reply, but can You tell more details or something like step by step example :), I'm noob in js and have no idea how to use "Code Device" or "HTTP Device"...

i want to exec an command [/usr/local/bin/tdtool -n 1] everything in on the same machine or...
call http://localhost/interface/tasker/light ... rLight.php
what will be easier for me. That command or http post/get should be initiated from fibaro motion sensor - status on

Post Reply