Triggerlinc to run a script between certain morning hours?

Posted on
Wed Nov 16, 2011 10:06 am
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Triggerlinc to run a script between certain morning hours?

Hello All,

I could use some more help if anyone can spare a moment.
I have installed a triggerlinc on an interior door. I would like a script to run in the morning when the triggerlinc is activated between the hours of 7am-7:45am.
I'm doing something wrong cause the script runs on its own without the triggerlinc being activated. Almost there but need some help with this first one:)

T.I.A.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Nov 16, 2011 10:42 am
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Triggerlinc to run a script between certain morning hour

Create a new Trigger that fires when the TriggerLinc becomes ON. On the Conditions tab, select "If current time" in the rule editor and enter 7:00am and 7:45am. On the Actions tab, select whatever actions you want to occur (including Execute Script if you have an AppleScript or Python script that you want to execute).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Nov 16, 2011 3:50 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

Hello Jay,

Thanks for the response!
I can complete the 1st and 3rd sentence but the 2nd one I am having difficulty with.

On the Conditions tab, select "If current time" in the rule editor and enter 7:00am and 7:45am.
On the Conditions tab I do not see "If current time" in the rule editor. Would I need to create a variable or something?

Thanks

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Nov 16, 2011 3:53 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Triggerlinc to run a script between certain morning hour

That is an Indigo v5 feature (just released out of public beta yesterday). Are you running v4? If so, you should definitely check out v5. :-)

Image

Posted on
Wed Nov 16, 2011 3:58 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

I just upgraded to 4.x Pro last week.
Can I try v5 without the additional expense now?

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Nov 16, 2011 4:08 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Triggerlinc to run a script between certain morning hour

Yep - request a 30-day trial key (note the limitations at the top) and install Indigo 5 - it won't disturb your Indigo 4 install (you may need to specifically quit the Indigo 5 server when you want to switch back to 4).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Nov 16, 2011 4:17 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

I will try the v5
Feels like trial will limit my setup since the recent v4 Pro update from the v4 Lite.


Was there another way to meet my original object?

Thanks

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Nov 16, 2011 4:32 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Triggerlinc to run a script between certain morning hour

The trial version limits the number of Devices you can create, but almost all of the Pro functionality is enabled in the Trial.

In version 4 you could create the logic to do it by roughly:

1) Creating 2 Time/Date Actions, 1 for 7AM and 1 for 7:45 AM. Have the actions for each set an Indigo Variable Value you create to true and false.

2) Use the Condition tab of your Trigger Action (for the incoming TriggerLinc message) to only fire when the variable value is true.

Image

Posted on
Wed Nov 16, 2011 7:40 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

Hello Matt,

Thank you for the response.
Sometimes I really get it and a few times I really don't see the obvious. So please accept my apology for nearly asking the same question over.

"Have the actions for each set an Indigo Variable Value you create to true and false."
This is brain freeze, I read the help section and still cannot properly get my head around how to setup a variable, and it's proper usage.
Would you please be so kind to walk me through such a variable? Once I get the first one I know it will be smooth sailing from there:)

T.I.A.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Nov 16, 2011 7:44 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Triggerlinc to run a script between certain morning hour

Actually, let's do this a bit differently without variables. Instead create the 2 Time/Date Actions like I mentioned above, but inside the Action panel one you will use the action type Enable Trigger Action and for the other you will use Disable Trigger Action. Then choose your TriggerLinc's Trigger Action as the target for both of those actions. So you have now created 2 schedule actions that enable/disable your TriggerLinc trigger action for a specific window of time.

Image

Posted on
Wed Nov 16, 2011 7:53 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

Hello Matt,

Thanks you so much!

And when my hands get a bit sweaty from typing a question I have to remember that is why Jay and you are smiling in your avatars as a welcome!

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Thu Nov 17, 2011 8:21 pm
tomvardon offline
Posts: 23
Joined: Jan 10, 2011

Re: Triggerlinc to run a script between certain morning hour

This is more of a question than a post
I was trying to set up a condition rule in a trigger and found no AM or PM if i use the between times
I had to create a variable to use in the meantime

Posted on
Thu Nov 17, 2011 10:01 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Triggerlinc to run a script between certain morning hour

It's there - you may need to make the Trigger Edit window wider to see all the field options.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Nov 17, 2011 10:04 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Triggerlinc to run a script between certain morning hour

Ghost in the machine!
It was working great last nite, this morning it got funky and run the script beyond the hours set.
What gives?

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Thu Nov 17, 2011 10:27 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Triggerlinc to run a script between certain morning hour

Are you talking about the v4 technique (2 Schedules + 1 Trigger) or the simpler v4 technique (1 Trigger with a conditional)?

Image

Who is online

Users browsing this forum: No registered users and 11 guests