Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Email subject line

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

Post Reply
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Email subject line

Post by liddelljs »

Hi all,
Love the email function in the new release. A minor one I know but is there any way to customise the subject line? I have two weather stations and the generic mail doesn't alert me to which station it is coming from.

Cheers
Steve
User avatar
PaulMy
Posts: 3849
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: Email subject line

Post by PaulMy »

Hi,
I presume you have two instances of CumulusMX running.
The text "By default the email messages use UTF-8 plain text, but you can define your own in strings.ini and use HTML if you wish" in the Alarm settings indicates you can modify or create your own text. You could edit one or both so it would indicate which station.

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
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Email subject line

Post by jlmr731 »

I saw that on the bottom of alarms page but not sure what the format should be for string.ini would need a descriptor with in [ ] then also options for text to equal
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Email subject line

Post by liddelljs »

Thanks Both. I do run two instances of MX on two different RPi's, hence my desire to differentiate the emails. Thanks for the heads up on strings.ini file Paul. I thought it might only refer to text formatting but the samplestrings.ini file does contain an e-mail preamble line (subject?). I modified this line to add my station, selected to use html formatting (thinking this forces the strings.ini file(?) and forced an alarm. No change to the e-mail format. Still just quotes the generic "Cumulus MX Alarm" message.

Further update - I thought I could change that actual alarm message in strings.ini for my station. I tried it for the wind gust alarm (added my location to the message) and then forced a wind gust alarm. No change - still got the generic message. Doesn't seem to be reading from my strings.ini file for some reason. Clearly something I am missing.

Cheers
Steve
User avatar
mcrossley
Posts: 12766
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Email subject line

Post by mcrossley »

The subject can be defined in strings.ini

Code: Select all

[AlarmEmails]
subject=Cumulus MX Alarm
preamble=A Cumulus MX alarm has been triggered.
windGustAbove=A wind gust above {0} {1} has occurred.
pressureAbove=The pressure has risen above {0} {1}.
tempAbove=The temperature has risen above {0} {1}.
pressBelow=The pressure has fallen below {0} {1}.
tempBelow=The temperature has fallen below {0} {1}.
pressDown=The pressure has decreased by more than {0} {1}.
pressUp=The pressure has increased by more than {0} {1}.
rainAbove=The rainfall today has exceeded {0} {1}.
rainRateAbove=The rainfall rate has exceeded {0} {1}.
sensorLost=Contact has been lost with a remote sensor.
tempDown=The temperature decreased by more than {0} {1}.
tempUp=The temperature has increased by more than {0} {1}.
windAbove=The average wind speed has exceeded {0} {1}.
dataStopped=Cumulus has stopped receiving data from your weather station.
batteryLow=A low battery condition has been detected.
dataSpike=A data spike from your weather station has been suppressed.
upgrade=An upgrade to Cumulus MX is now available.
Where {0} will have the value substituted, and {1} will have the units substituted.

You need to restart Cumulus MX after changing strings.ini
liddelljs
Posts: 119
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Email subject line

Post by liddelljs »

Many thanks Mark. The MX restart got me. All good and working as you described.

Cheers
Steve
M1DUL
Posts: 347
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: Email subject line

Post by M1DUL »

liddelljs wrote: Sun 09 May 2021 9:42 am Many thanks Mark. The MX restart got me. All good and working as you described.

Cheers
Steve
Dear Steve and all,
Did you manage to get your Email subject line working? because mine is still saying the default Cumulus MX Alarm" message.
Here is a screen print of mine:
samplestrings.ini1.jpg
samplestrings.ini2.jpg
I have restarted Cumulus after I did the change, but that has made no diference. Do I need to add anything else to my code? if so what do I need to add.

Many Thanks for any help and Information

Cheers
Mike
You do not have the required permissions to view the files attached to this post.
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.3.28.6 build 3283
https://branksomeweather.co.uk/index.htm
freddie
Posts: 2477
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Email subject line

Post by freddie »

Aren't you meant to rename the file as strings.ini?
Freddie
Image
M1DUL
Posts: 347
Joined: Wed 31 Dec 2008 1:56 pm
Weather Station: Vantage Pro2 Plus Daytime FARS
Operating System: Windows 11 Pro Version
Location: Poole, Dorset UK
Contact:

Re: Email subject line

Post by M1DUL »

freddie wrote: Wed 19 May 2021 7:19 pm Aren't you meant to rename the file as strings.ini?
Thank you Freddie, you are right.

Many Thanks
Mike
Mike

OS : Windows 11 Professional
Weather Station : Davis Vantage PRO2 Plus Daytime Far's
Cumulus MX v.3.28.6 build 3283
https://branksomeweather.co.uk/index.htm
Post Reply