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

Alarms/Emails

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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

Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Alarms/Emails

Post by Mapantz »

I hit a high gust threshold 3 times in a matter of a minute, but CMX won't stop sending emails. Currently at 25, and counting.

Also, sound's won't play, despite them being enabled.
Screenshot 2024-11-23 235525.png
You do not have the required permissions to view the files attached to this post.
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

Do you have a latch set on the alarm?

Sounds, yep problematic, most browsers now block them. Putting up the prompt button and agreeing it is supposed to allow them but it seems to be unreliable, if the page is refreshed you have to go through the process again with some browsers. I was toying with the idea of dropping them at some point.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

I'll have another look at the code though, seeing the permissions via user integration *should* work!
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

Tested it again and it works for me in Edge. The problem is it does not prompt you for the permission until an alarm sounds.

The best solution though is to permanently enable the permissions in the site manager of your browser for the dashboard page. You need to enable permissions to show notifications and play sounds.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Alarms/Emails

Post by Mapantz »

Sounds are already enabled for the dashboard, but notifications are greyed out, and there's no way to change that. I suspect it's because it's not https.

You can't even use [*.] to add it, as it has to be a secure url.
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

The increasing restrictions on non-https sites are a bit of pain. Especially as a lot of IoT devices are http as well. There really ought to be a way of relaxing the requirements for connections on your local LAN.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

Intersting - a W3C proposal dating back to 2019 acknowledges and provides possible solutions to the problem. Nothing much seems to have happened since :(
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Alarms/Emails

Post by ConligWX »

is there any browser extension that could handle this?

have you tried to run Chrome with a flag like so:

chrome --unsafely-treat-insecure-origin-as-secure="http://example.com"

not saying it will work, but just a thought. I think the is a chrome flag too using this method. or try firefox perhaps.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Alarms/Emails

Post by Mapantz »

ConligWX wrote: Mon 25 Nov 2024 2:49 pm is there any browser extension that could handle this?

have you tried to run Chrome with a flag like so:

chrome --unsafely-treat-insecure-origin-as-secure="http://example.com"

not saying it will work, but just a thought. I think the is a chrome flag too using this method. or try firefox perhaps.
Yeah, that worked! Nice one.
Image
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Alarms/Emails

Post by ConligWX »

excellent. glad it worked. I known its not perfect, but a workaround is better than none.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Alarms/Emails

Post by Mapantz »

Now that desktop notifications are working for me, is it possible to add the value of achieved threshold to the notification toast?

Would it be possible to add an alarm notification option for lightning?
Image
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Alarms/Emails

Post by HansR »

ConligWX wrote: Mon 25 Nov 2024 2:49 pm chrome --unsafely-treat-insecure-origin-as-secure="http://example.com"
You may start searching again in some months: that is an experiment, a volatile useless part of chrome if you are just a user.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
ConligWX
Posts: 1835
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: Alarms/Emails

Post by ConligWX »

HansR wrote: Tue 26 Nov 2024 5:41 am
ConligWX wrote: Mon 25 Nov 2024 2:49 pm chrome --unsafely-treat-insecure-origin-as-secure="http://example.com"
You may start searching again in some months: that is an experiment, a volatile useless part of chrome if you are just a user.
I dont have to start searching. I'm not the one using it :lol:
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Alarms/Emails

Post by Mapantz »

Well, I decided to just to have sounds enabled for my gust alarm, but it's a bit of a nothing burger, because the sound doesn't play if the tab is not in focus. Not only that, it doesn't seem to trigger properly either. I had the tab in focus and the gust speed went above the threshold, and nothing happened. As soon as I refreshed the tab, it played the sound.
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Alarms/Emails

Post by mcrossley »

I found a bug that prevents an alarm triggering more than once, updated script attached if you want to try it.

I can't do anything about browsers hibernating tabs that have lost focus. If they are still active but in the background, then I found the sounds still play if I toggle the alarm values in another window - using this updated script anyway.

One of the original intents of the alarms is for people who use the display full time on say a tablet.
You do not have the required permissions to view the files attached to this post.
Post Reply