Incremental Alarm Issue **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post by assenzuid »

Will try it again
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post by admin »

two missing brackets!
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post by admin »

yes, but one more missing "(" at the beginning and needs "==" instead of "=".
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue

Post 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 ))
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue

Post by admin »

Should be solved with latest release.
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue **solved**

Post 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)
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue **solved**

Post 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 ;-)
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue **solved**

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue **solved**

Post 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.
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue **solved**

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue **solved**

Post by admin »

Yes, add another or clause like the one for 7:00.
User avatar
assenzuid
Expert Boarder
Expert Boarder
Posts: 94
Joined: Sat May 03, 2014 10:15 pm
Location: The Netherlands
Contact:

Re: Incremental Alarm Issue **solved**

Post 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))
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Incremental Alarm Issue **solved**

Post 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.
Post Reply