Feature: Save events as file

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Feature: Save events as file

Post by emme »

I use the internal event IDE to setup script.. test them and then copy/paste and save as file in the /home/pi/domoticz/scripts/lua folder

Unfortunately I use to connect remotely to domoticz from a site where I do not have access to ssh or (in general) to the file system...

Can be a solution to allow to save as file a lua script from the event editor directly to the file system?

The EventType will add the prefix script_trigger_ and the script name wil be added automatically...
Once saved the event can be turned off (and maybe add a comment line in the event script)
-- Saved as scitp_trigger_name.lua to LUA folder on timestamp

the file could be overwritten every time you save with the same name :P

it was just an idea :P :P
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest