Feature Request: Trigger last triggered date

Posted on
Thu Dec 30, 2021 4:03 pm
t-star offline
Posts: 115
Joined: Oct 26, 2007

Feature Request: Trigger last triggered date

Not sure how practical this is but I know that I have a ton of triggers that I may not use anymore, but not sure how to easily tell. Maybe a field that tracks the last time a trigger was triggered. not sure if you would do this on an individual trigger basis or just all the time.

It might be nice to also do the action groups.

Posted on
Thu Dec 30, 2021 4:18 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Feature Request: Trigger last triggered date

You could just turn them off and see what breaks. ;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Dec 30, 2021 8:59 pm
t-star offline
Posts: 115
Joined: Oct 26, 2007

Re: Feature Request: Trigger last triggered date

LOL. That is certainly an option.

Posted on
Fri Dec 31, 2021 7:47 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Feature Request: Trigger last triggered date

It would involve some work, but you could add a script to each trigger to log its execution.

Code: Select all
trigger_name = "my trigger name"
with open('/Users/Dave/Temp/triggers/{0}.txt'.format(trigger_name), 'a') as outfile:
    outfile.write(u"{0}\t{1}\n".format(indigo.server.getTime(), trigger_name))

Change the name for each trigger and the target file name will match (the target folder must exist). If you use a separate folder for the files (I would recommend it), you can quickly scan the file names and modified dates (or lack thereof for triggers that haven't fired at all).

May not be the most elegant solution, but it should work pretty well.

Screen Shot 2021-12-31 at 7.35.15 PM.png
Screen Shot 2021-12-31 at 7.35.15 PM.png (97.92 KiB) Viewed 1050 times

Screen Shot 2021-12-31 at 7.39.01 PM.png
Screen Shot 2021-12-31 at 7.39.01 PM.png (139.03 KiB) Viewed 1050 times

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests