Page 1 of 1

ALARMA POR EMAIL

Posted: Mon Jul 08, 2024 8:19 pm
by FedeMasso
Hola, soy nuevo en este foro, hablo en español, luego lo traduzco al ingles..

Quiero poner Alerta por Email por ejemplo,
"Alta temperatura" cuando supere los 30 °C
y otra alerta por
"Baja Temperatura" cuando baje de 5°C

estuve viendo esta web: https://www.meteobridge.com/wiki/index. ... h_Services pero no logro por hacerlo..

¿Alguien sabe como poder hacerlo ? el servidor del email ya lo probé y funciona ok, solo me falta estos datos de las imágenes

INGLES:

Hello, I am new to this forum, I speak in Spanish, then I translate it into English.

I want to set Email Alert for example,
"High temperature" when it exceeds 30 °C
and another alert for
"Low Temperature" when it drops below 5°C

I was looking at this website: https://www.meteobridge.com/wiki/index. ... h_Services but I can't do it..

Does anyone know how to do it? I already tested the email server and it works ok, I only need this image data

Re: ALARMA POR EMAIL

Posted: Tue Jul 09, 2024 1:32 am
by Mattk
It is covered in that link https://www.meteobridge.com/wiki/index. ... h_Services

High temperature Raise flag could simply be something like [th0temp-act]>30
Low Temp Raise flag [th0temp-act]<5

Depending on your intent and use of Incremental or One-Time Alarm then you would need to decide when to Clear? For example you could clear a raised flag daily at midnight hour 00 using ([hh]==0)

Re: ALARMA POR EMAIL

Posted: Tue Jul 09, 2024 1:55 am
by FedeMasso
Yes, I already went to that link, but I don't understand how to do it.. :(

I want to do this that I marked in the image...

Re: ALARMA POR EMAIL

Posted: Wed Jul 10, 2024 12:12 am
by admin
Mattk proposed a solution for your request. Did you try it?

Here the hint a bit more explicit:

High-Warning
Raise: [th0temp-act.0:0]>30
Clear: [th0temp-act.0:30]<25

Low Warning
Raise: [th0temp-act.0:30]<5
Clear: [th0temp-act.0:0]>10

Re: ALARMA POR EMAIL

Posted: Thu Jul 11, 2024 1:07 am
by FedeMasso
thanks for answering.. :D

I placed it there as they told me and it doesn't work either. :cry: :cry:

Re: ALARMA POR EMAIL

Posted: Thu Jul 11, 2024 1:29 am
by Mattk
Below was your original example so has the Temperature or do you expect the Temp to drop below -5 (minus 5 degrees C)?

I want to set Email Alert for example,
"High temperature" when it exceeds 30 °C
and another alert for
"Low Temperature" when it drops below 5°C

Re: ALARMA POR EMAIL

Posted: Thu Jul 11, 2024 6:00 am
by FedeMasso
Of course, they are 2 different alarms.

-I want an alarm to sound when: for example, it is 10°C and drops to -2°C.

-I want another alarm to sound when: for example, it is 15°C and it rises to 23°C.

Re: ALARMA POR EMAIL

Posted: Thu Jul 11, 2024 7:03 pm
by admin
When you want to go with incremental alarms you cannot use comparisons but need to state an arithmetic expression that evaluates to greater zero when to raise an alarm. When next time evaluation results in an even bigger number, then the alarm is sent again. Clear condition can be a classical comparison.

You find an example in the wiki (first example at the end of the paragraph): https://meteobridge.com/wiki/index.php/ ... Conditions

Re: ALARMA POR EMAIL

Posted: Sat Jul 13, 2024 11:49 pm
by FedeMasso
I was looking at that WIKI... but I can't figure it out... :? :?

Can't you give me an example of how I have to place it, let's see if I can figure it out...? :)

thank you so much

Re: ALARMA POR EMAIL

Posted: Sun Jul 14, 2024 12:27 am
by Mattk
Lets concentrate on one alarm at a time.

So to clarify what you mean in regard the following, when the Temp is rising and it gets to 15°C you want the alarm to be raised/flagged and then flag the Temp rise (by email) above 15°C and beyond. What is the relation of the 23°C? What is the expectation when it reaches 23°C?

- I want another alarm to sound when: for example, it is 15°C and it rises to 23°C.

Re: ALARMA POR EMAIL

Posted: Sun Jul 14, 2024 12:45 am
by FedeMasso
Thanks for answering.. :)

very good,
Alarm by email, for example, when it reaches 15°C. let me know,
then until reaching 20°C.

But I would also like to receive a message about reaching 16°C, one about reaching 17°, one about reaching 18°C, one about reaching 19°C and one about reaching the 20°C threshold. This gives me the opportunity to observe how much the given threshold was exceeded.

That would be an example...

I do not know if I explain myself very well.. :?

Re: ALARMA POR EMAIL

Posted: Sun Jul 14, 2024 3:13 am
by Mattk
This may help you understand how this works and you may require to fine tune an expression to achieve what you expect. However the part where you expect to say stop when reaching 20°C is beyond this. A simple raise expression based on integer values could be

[th0temp-act.0] - 15

Now this will trigger/raise @ 15.5 °C and then keep raising @ 16.5°C, 17.5°C, 18.5°C, 19.5°C, 20.5°C etc increments of 1 and will not stop beyond 20.5°C until the temp starts to drop below the previous/last highest temp.

Why 15.5°C in this example? Because @15°C (real) the expression 15-15=0 (false), @15.1°C(real) actual (act.0) is 15 rounded down whole integer 15-15=0 (false), @15.5°C (real) actual (act.0) is 16°C rounded up and expression 16-15=1 (true) hence alarm is raised and email is sent. Temp will need to reach 16.5°C (real) to trigger next email and so on until the expression resolves to 0 or negative (false)


Using the following expression which compares the real temperature to 1 decimal place will make the resolution 0.1°C and increment every 0.1°C producing an email every 0.1°C increase. The flag will not be raised @ 15.0°C as 15.0-15=0 (false), @15.1°C 15.1-15=+0.1 (true) will raise flag
[th0temp-act.1] - 15

The other condition you need to control is when to clear the flag which might depend on exactly how, why and when you want to do that and based on what condition?