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

Custom Alarm Function

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
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Custom Alarm Function

Post by dazza1223 »

it says this -bash: mail: command not found
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Custom Alarm Function

Post by dazza1223 »

ok i got the mail set up right now ive test a dummy email from the pi and it work when i run this command when cmx is running it email me saying cmx is down even if i stop cmx it still says the same

this is the out put off the command

pi@Cumulusmx:~ $ nc -zw 2 10.0.0.60:8998 && { echo "CumulusMX up" ; } || { `mail -r darren@davisworthing.co.uk -s "[LAN monitor]: CumulusMX check" darren@davisworthing.co.uk <<< 'CumulusMX is down'` ; }

nc: missing port number
Have fun and keep learning

dazza :D

https://www.davisworthing.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: Custom Alarm Function

Post by freddie »

Look at the original command I shared - there is no colon (:) between the MX IP address and port number.
Freddie
Image
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Custom Alarm Function

Post by dazza1223 »

yes that was the error it is working now thank you
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Custom Alarm Function

Post by watsonm »

Just for information if it helps anyone with sending messages:
I use an application called Pushover
(disclosure I have no association with this app other than as a user)

This allows me to send messages that end up on the status bar of my mobile phone as well as saved into the app. I have one Raspberry PI that tracks aircraft and I have written Python code to ping me when particular aircraft are close by (Aircraft Photography another Hobby/obsession ! :roll: ) so it needs to be real time.

My second Raspberry Pi is the CMX system which is driven by my Python code due to dead console and the fact I am a retired programmer who can't let go! This receives the data from the sensors and the code includes heart beat monitoring and I get "pinged" when a sensor hasn't reported in (configurable time) . I have six different transmitters so one could fail and I may not notice. It also pings my phone with the data from the WH57 when lightning is detected.

I appreciate that most people don't use python to drive their system but users could add some python/perl/php code to do there own monitoring of realtime.txt or whatever (not got around to looking for alarms yet!). Integrating it into CMX code could well incur subscription costs I believe so that is probably a no-no whereas individual users would pay a one off cost of $4.99.
For individuals, after a 30-day free trial, it costs $4.99 USD once, per-platform (iPhone/iPad, Android, Desktop), to use on all of your own devices on that platform as you want. There are no monthly or yearly fees and you can receive as many notifications as you can handle.
Hope it's of use to someone... :geek:


Edit: Looked at the Alarms settings in CMX and produced a script to send specific alarms to phone using Pushover. Will describe in more detail if required.
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
dazza1223
Posts: 910
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: Custom Alarm Function

Post by dazza1223 »

Is anyone else haveing a issue for sending mail on buster?
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
Post Reply