|
Silvayn Beginner
Joined: 11 May 2002 Posts: 13 Location: Slovakia
|
Posted: Sat May 11, 2002 6:37 pm
Clueless on #ALARM |
Greetings, I have the following situation: I set trigger to look for a certain sentence. When this is triggered, an #ALARM trigger is (supposed to be) set, which should execute itself 10mins after this. This is how my starting trigger looks like (could most likely be written simplier):
#VAR tmp2 %time( "hh")
#MATH tmp 10+%time( "nn")
#IF (@tmp>59) {
#MATH tmp @tmp-60
#ADD tmp2 1
}
#IF (@tmp2>23) {#VAR tmp2 0}
#VAR tmp2 +@tmp2:@tmp:%time( "ss")
#ALARM @tmp2 {#ECHO TEST}
So, I'm using RL time +10 mins as the pattern for the #ALARM (also making sure it won't produce weird time like 69 min). All works fine until the #ALARM command, which (for whatever reason) sets "@tmp2" as the pattern instead of the string that is stored in it.
Help? |
|
|
|
Gandorf Novice
Joined: 28 Oct 2000 Posts: 38 Location: Sweden
|
Posted: Sat May 11, 2002 7:39 pm |
I might be wrong but wouldn't it be simply to do it like this
#tr {the sentence you would like triggered} {#alarm +10:00 {#ECHO TEST}}
Out in the night they laugh about me and my knowledge |
|
|
|
Silvayn Beginner
Joined: 11 May 2002 Posts: 13 Location: Slovakia
|
Posted: Sun May 12, 2002 10:16 am |
Unfortunatelly, this didn't work. For whatever reason, the TEST message appeared 1 or 2 seconds after the triggering sentence appeared. Maybe I have just configured something in the wrong way but I can't find out what.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun May 12, 2002 3:16 pm |
First, clear out all your old alarms.
Then use
#TR {the sentence you would like triggered} {#ALArm (+600) {#ECHO TEST}}
It appears that the + syntax only works with seconds.
LightBulb
Vague questions get vague answers |
|
|
|
Silvayn Beginner
Joined: 11 May 2002 Posts: 13 Location: Slovakia
|
Posted: Tue May 14, 2002 12:47 am |
Many thanks! This worked :)
|
|
|
|
|
|