ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Send Action via HTTP Push/Android Tasker #45

Open beniroquai opened 10 years ago

beniroquai commented 10 years ago

Longstory Short: Awesome Project! It works and can control outputs of my Arduino via the Phone (even from outside of my flat).

Question: Is there any possibility to send a HTTP request to Switch on a Port/RC-Power-Socket? Like the RC-Switch does? I'm not that familiar with coding, maybe I've missed something. Would be awesome, becuase I'd love to automate somehting like: Entering my Wifi->Sending something to turn on the Stereo :)

beniroquai commented 10 years ago

Actually I found a way. I wrote a php-script via exec and pointed it to a duino-example. I've changed one of the rc.js to my needs. I can call it now via a the browser or a http request via Tasker. It's eiterh safe, nor does it really work with heimcontrol.js. Maybe there can be something implemented into the API? I just don't know much about the programming. Sorry.