(07-14-2015, 08:05 AM)terrar Wrote: Do you implement all kinds of devices (also sensors, generic_ & gpio_devices)?
Currently the automatic add device page (one from the video), will only add devices that are detected by the receiver and being relayed trough the socket connection(This should also work for sensors). I could implement all other devices in the config editor however the user manually needs to enter the correct values like gpio pins ect.
(07-14-2015, 08:05 AM)terrar Wrote: Will creating rules be possible
Currently it parses the rules currently however I haven written a GUI capable of displaying the rules other then as a line of text. I could probbebly add a dummy proof GUI, which would have some basic rules like a IF statment.
example:
If {Select Device Here} is {action} then change {Select other Device here} to {action}
If "datetime.hour" is "22" then change "Outside Door Lamp" to "On"
(07-14-2015, 08:05 AM)terrar Wrote: Sorting & grouping devices in the gui would also be great
I could implement this later, however you can currently only change the order of the groups.
(07-14-2015, 08:05 AM)terrar Wrote: As I realized the service has to be stopped for making changes in the config.
So the inegrated webserver also does not work.
How did you solve this?
I currently hacked my way around it. What it does is writes the new config to a temporary file. After which it runs a bash script, which is being ran as root(security issue) then stops the pilight service, and if it's not shutdown in 10 sec it kills it. Then it overwrites the config file with the new config file, then it starts the service again.
It would be nice if there would be a better feature for this, maybe send the config trough the socket, then let pilight check if the config is valid and wouldn't prevent a startup, if not then write that config to file and continue using that.
(07-14-2015, 08:38 AM)curlymo Wrote: If it works well enough, we can host the scripts on pilight.org. So users can then upload their config, edit it, and download it again.
Some features would work on pilight.org, but most features require to connect to the socket port of pilight. So people would be required to port forward there socket port. Not even starting with the problem that the php files are only written to support 1 config at a time.
If you where talking about "Remote Access Without Port Forwarding & Static IP" It currently works by opening a reverse ssh connection on port 5001, which isn't the best way to do it, however I haven't though of a other way to forward there setup.