ALARMA POR EMAIL

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

Moderator: Mattk

Post Reply
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

ALARMA POR EMAIL

Post 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
Attachments
Baja temp.jpg
Baja temp.jpg (28.26 KiB) Viewed 3311 times
Alta temp.jpg
Alta temp.jpg (24.11 KiB) Viewed 3311 times
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1395
Joined: Mon Sep 22, 2014 3:24 am

Re: ALARMA POR EMAIL

Post 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)
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

Re: ALARMA POR EMAIL

Post 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...
Attachments
esto.jpg
esto.jpg (226.68 KiB) Viewed 3292 times
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: ALARMA POR EMAIL

Post 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
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

Re: ALARMA POR EMAIL

Post by FedeMasso »

thanks for answering.. :D

I placed it there as they told me and it doesn't work either. :cry: :cry:
Attachments
ninguna alarma.jpg
ninguna alarma.jpg (4.06 KiB) Viewed 3245 times
no anda.jpg
no anda.jpg (28.43 KiB) Viewed 3245 times
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1395
Joined: Mon Sep 22, 2014 3:24 am

Re: ALARMA POR EMAIL

Post 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
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

Re: ALARMA POR EMAIL

Post 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.
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: ALARMA POR EMAIL

Post 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
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

Re: ALARMA POR EMAIL

Post 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
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1395
Joined: Mon Sep 22, 2014 3:24 am

Re: ALARMA POR EMAIL

Post 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.
User avatar
FedeMasso
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Mon Jul 08, 2024 7:43 pm
Location: Chivilcoy, Buenos Aires, Argentina
Contact:

Re: ALARMA POR EMAIL

Post 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.. :?
Meteorology enthusiast, from the city of Chivilcoy, Buenos Aires Province...
LIVE DATA FROM MY EMA:
Image

https://climachivilcoy.com.ar
https://www.facebook.com/climachivilcoy
https://twitter.com/ClimaChivilcoy
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1395
Joined: Mon Sep 22, 2014 3:24 am

Re: ALARMA POR EMAIL

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