PiDome Forum

PiDome platform forum.

You are not logged in.

#1 2015-03-07 19:07:19

Tevlon
Member
Registered: 2015-01-05
Posts: 117

triggers correct or not?

Since this question is a bit more specific than the previous thread, and it is about the execution of triggers, I thought I'd put it here.

My trigger looks like this:

sunsetrule.jpg

The triggers isn't fired though. In the log I see this every minute:

2015-03-07 19:00:00,580 [TriggerTimeRun::19:00] DEBUG org.pidome.server.services.triggerservice.TriggerEvent - Checking for value match: daytime_FIXED_ALL - 19:00 in trigger event 'Set Night'
2015-03-07 19:00:00,581 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 00:00(00:00)
2015-03-07 19:00:00,582 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 06:00(06:00)
2015-03-07 19:00:00,583 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 00:00(00:00)
2015-03-07 19:00:00,584 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 06:00(06:00)
2015-03-07 19:00:00,594 [TriggerTimeRun::19:00] DEBUG org.pidome.server.services.triggerservice.TriggerEvent - Checking for value match: daytime_FIXED_ALL - 19:00 in trigger event 'Set Morning'
2015-03-07 19:00:00,595 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 05:59(05:59)
2015-03-07 19:00:00,596 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 12:00(12:00)
2015-03-07 19:00:00,597 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 05:59(05:59)
2015-03-07 19:00:00,598 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 12:00(12:00)
2015-03-07 19:00:00,603 [TriggerTimeRun::19:00] DEBUG org.pidome.server.services.triggerservice.TriggerEvent - Checking for value match: daytime_FIXED_ALL - 19:00 in trigger event 'Set Afternoon'
2015-03-07 19:00:00,604 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 11:59(11:59)
2015-03-07 19:00:00,605 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 18:00(18:00)
2015-03-07 19:00:00,606 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 11:59(11:59)
2015-03-07 19:00:00,607 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: false for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 18:00(18:00)
2015-03-07 19:00:00,609 [TriggerTimeRun::19:00] DEBUG org.pidome.server.services.triggerservice.TriggerEvent - Checking for value match: daytime_FIXED_ALL - 19:00 in trigger event 'Set Evening'
2015-03-07 19:00:00,610 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype GREATERTHEN with matchsubject 17:59(17:59)
2015-03-07 19:00:00,611 [TriggerTimeRun::19:00] TRACE org.pidome.server.services.triggerservice.rules.RuleSubject - Returning new result: true for value 19:00 in equation daytime_FIXED_ALL with matchtype LESSTHEN with matchsubject 23:59(23:59)
2015-03-07 19:00:00,616 [TriggerTimeRun::19:00] DEBUG org.pidome.server.services.triggerservice.TriggerEvent - Checking for value match: daytime_SUNSET_ALL - 19:00 in trigger event 'sunset'

Nothing seems to get evaluated for the sunset trigger. What am I doing wrong?

Tevlon

[edit]

I changed my rule a bit, to start like all the other rules do:

sunsetrule.jpg

Even though it works, and I'm sure I will remember to do it like this, I don't quite understand why the structure should be like this. Why start with a "when a single one" part, why don't conditions get evaluated when I start with a "when all"?

Last edited by Tevlon (2015-03-07 19:16:57)

Offline

#2 2015-03-07 21:31:52

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: triggers correct or not?

It is evaluated at: Checking for value match: daytime_SUNSET_ALL - 19:00 in trigger event 'sunset'. Could you provide more info at that part?

Offline

#3 2015-03-07 21:42:15

Tevlon
Member
Registered: 2015-01-05
Posts: 117

Re: triggers correct or not?

Well, there is no more after that....
When I change the rule to include the first part (compare the 2 to see what I mean), then I do see the rulesubjects being evaluated. In the original rule, no rulesubjects get evaluated at all.

Offline

#4 2015-04-15 18:09:23

John
PiDome Dev
From: Netherland
Registered: 2015-01-07
Posts: 604
Website

Re: triggers correct or not?

It works as a double if statement, the very first initial block defines how the following rules should be determined.

You can have multiple blocks after this first block where you can have the upfollowing blocks as "AND", "OR", or just one rule. because of the multiple options there also exists "one", which also optimizes the rules as a single set.

Offline

#5 2017-06-05 12:22:19

Renjfdlavege
Member
Registered: 2017-06-05
Posts: 20

Re: triggers correct or not?

how do anabolic steroids work

anabolic androgenic steroids

http://mpunzana.co.za/index.php?option= … &id=814880

<a href="http://autocaravanastenerife.es/index.php?option=com_k2&view=itemlist&task=user&id=56228
">anabolic androgenic steroids
</a>
<a href="http://ekolumix.com/index.php?option=com_k2&view=itemlist&task=user&id=11506
#">anabolic androgenic steroids
</a>
how to get anabolic steroids

risks of anabolic steroids

http://msk024.ru/index.php?option=com_k … r&id=21045

<a href="http://anaisabelaparicio.com/index.php?option=com_k2&view=itemlist&task=user&id=127292
">anabolic steroids stats
</a>
<a href="http://druck-center-mg.de/index.php?option=com_k2&view=itemlist&task=user&id=11064
#">side effects of anabolic steroids
</a>
anabolic steroids are a type of quizlet

how to get anabolic steroids

http://vetcc.org/index.php?option=com_k … r&id=13220

<a href="http://nationalchurchresidences-edu.org/index.php?option=com_k2&view=itemlist&task=user&id=131135
">anabolic steroids types
</a>
<a href="http://www.miranico.com/index.php?option=com_k2&view=itemlist&task=user&id=1783604
#">legal anabolic steroids for sale
</a>
legal anabolic steroids

anabolic steroids facts

http://paints.md/index.php?option=com_k … r&id=93817

<a href="http://mbi.tomsk.ru/index.php?option=com_k2&view=itemlist&task=user&id=11586
">anabolic steroids online
</a>
<a href="http://fermisynergies.com/index.php?option=com_k2&view=itemlist&task=user&id=25571
#">anabolic steroids body building
</a>
steroids anabolic

anabolic steroids can be ingested in which ways

http://mobility-corp.com/index.php?opti … &id=708944

<a href="http://bintangwahyu.com/index.php?option=com_k2&view=itemlist&task=user&id=596316
">anabolic steroids stats
</a>
<a href="http://wonderland.od.ua/index.php?option=com_k2&view=itemlist&task=user&id=200294
#">where to buy anabolic steroids online forum
</a>
where to buy anabolic steroids online forum

anabolic steroids are which of the following

http://acl-ng.org/index.php?option=com_ … er&id=1993

<a href="http://zakupki.help/index.php?option=com_k2&view=itemlist&task=user&id=125676
">what would be the most likely outcome if a young man were using anabolic steroids?
</a>
<a href="http://www.handelimport.com/index.php?option=com_k2&view=itemlist&task=user&id=10949
#">dangers of anabolic steroids
</a>
anabolic-androgenic steroids

anabolic steroids can be ingested in which of the following ways

http://caffelatteitzimna.com/index.php? … &id=354846

<a href="http://fluideas.com/index.php?option=com_k2&view=itemlist&task=user&id=66501
">anabolic steroids buy
</a>
<a href="http://timurtemirov.com/index.php?option=com_k2&view=itemlist&task=user&id=436799
#">anabolic steroids definition
</a>

Offline

#6 2017-07-08 12:03:04

kpjgcnNof
Member
Registered: 2017-07-08
Posts: 20

Re: triggers correct or not?

online payday loans texas
<a href="http://payday1000loans3000online.com/#loan"> online payday loans </a>
online payday loans louisiana
&lt;a href=&quot;http://payday1000loans3000online.com/#loan&quot;&gt; bad credit loans &lt;/a&gt;
payday loans uk
loans online
payday loans richmond va

Offline

Board footer