Setup modules from app

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
ollfa
Posts: 31
Joined: 12 Jul 2013 11:36

Setup modules from app

Post by ollfa »

Is it possible to configure modules from outside the UI? I currently making an app and it would be nice to be able to configure modules from it.

StatikPulse
Posts: 14
Joined: 06 Mar 2014 22:14

Re: Setup modules from app

Post by StatikPulse »

I'm not sure if there's a simpler way around it, but what if you create a simple API for the module to communicate with? I'm not sure if modules can reside outside of the modules folder.

ollfa
Posts: 31
Joined: 12 Jul 2013 11:36

Re: Setup modules from app

Post by ollfa »

I already have written a small webserver in python which delivers statistics to my app, maybe I can incorporate a API into the webserver. What I have in mind is a modules that turn lights on/off at sunset/sunrise or at a certain time, and I have to be able to monitor and change time from my app as I see fit.

The best solutions is perhaps not a module but an independent script.

StatikPulse
Posts: 14
Joined: 06 Mar 2014 22:14

Re: Setup modules from app

Post by StatikPulse »

If that's all you are looking to do, you app is probably what should be driving that and not a module. Have your app trigger an API call to the automation engine to turn the light on or off when it hits the time you specify in your app.

User avatar
PoltoS
Posts: 5635
Joined: 26 Jan 2011 19:36

Re: Setup modules from app

Post by PoltoS »

There is an API to configure modules. Just look into network packet sniffer playing with the UI.

Post Reply