Page 2 of 3

Re: Incremental Alarm Issue

Posted: Thu Sep 25, 2014 9:30 am
by assenzuid
Will try it again

Re: Incremental Alarm Issue

Posted: Thu Sep 25, 2014 9:38 am
by assenzuid
I have, as test, changed the value to clear the alarm at 9:32:

[th10temp-act=c.1:0] > 15 ) || ( ( [hh] == 9 ) && ( [mm] == 32 )

But not luck, alarm not cleared.

Re: Incremental Alarm Issue

Posted: Thu Sep 25, 2014 10:00 pm
by admin
two missing brackets!

Re: Incremental Alarm Issue

Posted: Sun Sep 28, 2014 11:04 pm
by assenzuid
Ok,

I have this:
Raise: [th10temp-act=c.1:0] < 15 ) && ( ( [hh] != 0 ) || ( [mm] != 0 ))
Clear: [th10temp-act=c.1:0] > 15 ) || ( ( [hh] = 7 ) && ( [mm] = 0 ))

The alarm will be cleared if the temp. raise above 15 degree or at 7:00 hours if I'm correct?

Re: Incremental Alarm Issue

Posted: Sun Sep 28, 2014 11:44 pm
by admin
yes, but one more missing "(" at the beginning and needs "==" instead of "=".

Re: Incremental Alarm Issue

Posted: Tue Sep 30, 2014 8:42 pm
by assenzuid
Ok,

Then it will:

Raise: ( [th10temp-act=c.1:0] < 15 ) && ( ( [hh] !== 0 ) || ( [mm] !== 0 ))
Clear: ( [th10temp-act=c.1:0] > 15 ) || ( ( [hh] == 7 ) && ( [mm] == 0 ))

Re: Incremental Alarm Issue

Posted: Fri Oct 03, 2014 1:09 am
by admin
Should be solved with latest release.

Re: Incremental Alarm Issue **solved**

Posted: Fri Oct 03, 2014 10:53 am
by assenzuid
I updated my MB to the latest version, but when I use below alarm conditions the trigger isn't working.

Raise: ([th10temp-act=c.1:0] < 15) && (([hh] !== 0) || ([mm] !== 0))
Clear: ([th10temp-act=c.1:0] > 15) || (([hh] == 7) && ([mm] == 0))

When I use this, whitout the daily reset at 7:00 hours the alarm will be raised and cleared when the temp raises above 15 degree.
Looks like that there somthing is not ok with the (([hh] == 7) && ([mm] == 0)) string?

Raise: (th10temp-act=c.1:0 < 15)
Clear: (th10temp-act=c.1:0 > 15)

Re: Incremental Alarm Issue **solved**

Posted: Fri Oct 03, 2014 10:36 pm
by admin
Please make use of the "i" icon to understand how the conditions have been evaluated and paste this here.

Btw: "!==" is not defined, I guess the "i" icon will render a syntax error and on "live data"
also an error in evaluation is displayed. Please use this new debugging options, it is rather
unlikely you draft a formular correct first time, at least valid for me ;-)

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 08, 2014 8:33 pm
by assenzuid
I'm still struggling with this alarm event.

What I want to achieve is that when the outside temperature falls below, for example 10 degrees, an email is sent.
If the temperature raise above 10 degrees the alarm is cleared.

Above works fine with this:
Raise: (th10temp-act=c.1:0)< 10
Clear: (th10temp-act=c.1:0) > 10

But what I also want is that the alarm is cleared every 24 hours (day swicht) or at 7:00 hours in the morning.
When I set below conditions the alarm is raised, but not cleared.
I the worst case, meteobridge will crashed (reset) multiple times in sequence and the connections to my datalogger is lost.

Raise: ([th10temp-act=c.1:0] < 15) && (([hh] != 0) || ([mm] !=0))
Clear: ([th10temp-act=c.1:0] > 15) || (([hh] = 7) && ([mm] = 0))

I have tried multiple settings, but no luck unfortunately.

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 08, 2014 11:50 pm
by admin
With new update (brand new version 2.4) the following lines worked fine with my rig:

Raise: ([th10temp-act=c.1:0] < 15)
Clear: ([th10temp-act=c.1:0] > 15) || (([hh] = 7) && ([mm] = 0))

When clear condition is true, raise condition is no longer checked, therefore, masking of reset time is no longer needed.

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 22, 2014 9:41 pm
by assenzuid
This works good now.
Raise: ([th10temp-act=c.1:0] < 10)
Clear: ([th10temp-act=c.1:0] > 10) || (([hh] = 7) && ([mm] = 0))

Is it also possible to clear the alarm at mutiple times?
Now it will be cleared at 7 hours, but is it also possible to for example at 7 hours and 19 hours?

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 22, 2014 9:52 pm
by admin
Yes, add another or clause like the one for 7:00.

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 22, 2014 9:59 pm
by assenzuid
Can it be combined into one alarm condition?

Clear: ([th10temp-act=c.1:0] > 15) || (([hh] = 7) && ([mm] = 0)) || (([hh] = 19) && ([mm] = 0))

Re: Incremental Alarm Issue **solved**

Posted: Wed Oct 22, 2014 10:11 pm
by admin
yes, exactly.

The modulus operator "%" would also allow to clear in regular intervals like:

Code: Select all

clear: ([th10temp-act=c.1:0] > 15) || (([hh] % 4 = 0) && ([mm] = 0))
will clear at 0:00, 4:00, 8:00, ...

Code: Select all

clear: ([th10temp-act=c.1:0] > 15) || (([hh] % 12 = 7) && ([mm] = 0))
will clear at 7:00 and 19:00.