Can someone tell me if there is a place where I can place global functions to be reused in multiple scenes?
The reason for this is because I want to write an email function, and I want to stop duplicating the same function in every one of my scenes.
Does this thread help?
Also, have you seen the SND plug-in?
I had the same question, posted in Prog/General and saw this one…so removed mine…thx oTi@
oTi@ -
Thanks! Just tried it and it works like a charm!
It’s kind of annoying that I have to SCP my updates via the terminal. Is there a way of making a plugin out of this so that it can be updated via the UI4 interface?
I ask because I usually don’t have access to my LAN, but have access to the web interface.
That’s a good plugin idea: an interface for uploading Lua files to /usr/lib/lua. Let’s see if I can make one quickly.
Edit: It appears that it would take longer than I first thought, so I won’t make the plugin now.
Possibly as workaround for now, upload via the existing interface, then:
[tt]https://<fwd1|fwd2>.mios.com////data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunLua&Code=os.execute(“mv /etc/cmh-ludl/ /usr/lib/lua”)
[/tt]
oTi-
Nice. Does that mean I can access a http-formed link to arm my vista20p alarm as well?