Startup lua - functions etc

Hi Richard,

wonder if you can advise, within pleg logic actions, it is possible to use functions to check date/time values?

Thanks
Tony

I am not sure exactly what you are asking …

Hi Richard,

Essentially, I?m considering writing a boolean function, which uses dates and times. Can this be put into the startup lua box, and used throughout that particular PLEG device.

Thanks
Tony

Yes, you can define a function in the Startup lua and call the function in the lua section of any action. The Startup Lua is specific to that Pleg device and can only be called from actions within that Pleg device.