Setup modules from app
Setup modules from app
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.
-
- Posts: 14
- Joined: 06 Mar 2014 22:14
Re: Setup modules from app
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.
Re: Setup modules from app
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.
The best solutions is perhaps not a module but an independent script.
-
- Posts: 14
- Joined: 06 Mar 2014 22:14
Re: Setup modules from app
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.
Re: Setup modules from app
There is an API to configure modules. Just look into network packet sniffer playing with the UI.