Preset events

Zaid Abdulla zaid at genieacs.com
Thu Mar 23 13:54:01 EDT 2017


On Thu, 2017-03-23 at 08:51 -0800, Dan Morphis wrote:
> Is there anyway to send the event that caused a preset to execute to
> the provisioning script it executes? I can obviously use the args
> parameter, but I'd like it to be automated. Like some
> environment/context variable with the event list.

The parameters Events.* (e.g. Events.1_BOOT) give you the event time.
Compare the event timestamp against Date.now() to know if the event is
from the current session.

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list