Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Setting Up Alarms via email

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Setting Up Alarms via email

Post by Paul C »

Hi

Has anyone got this working ?

I am assuming you just put an email address in the two boxes and then one of the criteria is met, eg Temperature falls below zero and email is sent.

Is there more to it than that ? - mine keep returning an error message " Test email failed: Object reference not set to an instance of an object."

Ive looked and searched on the wiki and forum but cant see much if anything about Alarm and emails.

Any advice atall

cheers
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Setting Up Alarms via email

Post by PaulMy »

Hi,
Yes, it is working fine... got dozens of warnings last couple of days when I had set the alarm for when temperature goes below -20°C until I changed it to -25°C :D

You also need to do the Internet settings > Email Server Settings and this is the most important to get right.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Hi

Sorry for slow reply

email server settings ? - will take a look

many thanks
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Hi

I am still struggling - anyone managed to get this working with gmail and could share settings please - I keep getting error messages

thanks
You do not have the required permissions to view the files attached to this post.
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Setting Up Alarms via email

Post by freddie »

I may be barking up the wrong tree but isn't your username pacrabtree@gmail.com?
Freddie
Image
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Setting Up Alarms via email

Post by PaulMy »

As freddie mentioned
but isn't your username pacrabtree@gmail.com
My email for this is GoDaddy who now use Microsoft 365 for their mail service and for me is me@domainname.com. As I had mentioned it is most important to get the settings right. For CMX I ended with the following, which works very well:

Code: Select all

Server Name:  smtpout.secureserver.net
 The hostname (and domain) or IP address of your SMTP server

Network Port: 80
 The SMTP port used by your SMTP server

Use SSL/TLS: None
 Select the protocol required by your email server: 
None - No SSL or TLS encryption will be used 
Auto - Cumulus decides which TLS/unencrypted options to use (default). Use this option unless you have good reason not to 
TlsOnConnect - The connection should use TLS encryption immediately 
StartTls - Use TLS encryption immediately. If the server does not support the STARTTLS extension then the connection will fail 
StartTlsWhenAvailable - use TLS encryption immediately, but only if the server supports the STARTTLS extension

Authentication: Enable server authentication
 Does your SMTP server require username/password authentication

Username:  {my domain at GoDaddy email address}
 The username to connect to your SMTP server

Password:  •••••••••
 The password used to authenticate with your SMTP server
I have learned that the correct Port number is very important for it to work, and only certain number will work with an email service.

I recently set up another email notification when installing my Reolink camera, and it was a struggle. I couldn't get that GoDaddy email service I had setup for CMX to work with the Reolink. Reolink Support was very helpful including this link: https://support.reolink.com/hc/en-us/ar ... rce=search so ended up using the gmail service.
SMTP Server - smtp.gmail.com
SMTP port - 465
and the applicable email addresses and password.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Setting Up Alarms via email

Post by mcrossley »

Gmail uses two factor authentication which obviously will not work with applications.

So in your gmail security settings you will have to create an "Application password" which will bypass the two factor auth.

Then in the settings, from you screen shot...
- change the authentication back to the default "Auto"
- change the username to your email address
- enter the application password you created above

Test - and it should work OK.
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Thanks for all the advice !!

Will try again in the morning

Noted re user name, had tried in full and just name but I think the key is the app password, which is something I hadn't heard of before. Will check this out
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Morning

All now working, setting up the Gmail App password was easier than I thought. Test email sent and working :D

Couple of questions please - what does "latches" mean in the alarms ?

At the bottom of the alarm/email section it says you can edit the "strings.ini" can you add text to that in the body of the email sent out ?

cheers
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Setting Up Alarms via email

Post by mcrossley »

Latches prevent you being flooded with alarms if a value is bouncing around a threshold value. So if you set a temperature alarm above 30C say, and the temperature is hovering at 30, getting readings of 29.9, 30.1, 30.0, 30.1, etc you don't want an email every time it transitions from below 30 to above. The latch says if the alarm occurs, don't send another email for an hour (or whatever) if the same alarm occurs again within the timeframe.

Yes you can change the email subject and body content by editing the strings.ini file. The first variable in the message is the value, the second the units.
The Wiki is slightly out of date, but explains it: https://cumuluswiki.org/a/Strings.ini
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Hi

Am I right that a strings.ini file doesnt exsist ?

Its something you add on reading the above article. Proabley on the tricky side to create with no working knowledge ?

Having now read an email it produces, I maybe dont need to add anything, apart from a signature or similar ?

Latches and Latch hours

I understand that you dont want email alarms being sent every 2 minutes if your variable goes above or below the threshold, but the word "latch" I havent heard of before.

So I I just wanted to send one email once the temperature threshold had fallen below 0.0c, what would you display in latches ?

cheers
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Setting Up Alarms via email

Post by water01 »

So I I just wanted to send one email once the temperature threshold had fallen below 0.0c, what would you display in latches ?
So assuming you wanted one email on each day that goes below zero you would tick the latch and set the hrs to 24 i.e. you get 1 email in any 24 hours. Once the latch is set it sends nothing else, then after 24hrs when the latch is released if temperature dropped below zero again you would get another email etc.
David
Image
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Setting Up Alarms via email

Post by Paul C »

Cheers David

Thanks for the explanation
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Setting Up Alarms via email

Post by water01 »

Am I right that a strings.ini file doesnt exsist ?
Forgot to say that it does in sample form and you have to rename it to strings.ini. In every MX release there is a samplestrings.ini file that can be used as the basis for your strings.ini.
David
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Setting Up Alarms via email

Post by mcrossley »

water01 wrote: Wed 02 Feb 2022 11:46 pm
So I I just wanted to send one email once the temperature threshold had fallen below 0.0c, what would you display in latches ?
So assuming you wanted one email on each day that goes below zero you would tick the latch and set the hrs to 24 i.e. you get 1 email in any 24 hours. Once the latch is set it sends nothing else, then after 24hrs when the latch is released if temperature dropped below zero again you would get another email etc.
I wouldn't use 24 hours though. you would potentially miss alarms. Say it went below zero today at 07:30, then again at 07:10 tomorrow. There would be no alarm tomorrow because it is within the 24 hour window ending at 07:30. It would be better to reset after something like 12 hours.
Post Reply