Page 2 of 2

Re: Custom Alarm Function

Posted: Wed 05 Oct 2022 8:13 am
by dazza1223
it says this -bash: mail: command not found

Re: Custom Alarm Function

Posted: Wed 05 Oct 2022 10:01 am
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

Re: Custom Alarm Function

Posted: Wed 05 Oct 2022 11:29 am
by freddie
Look at the original command I shared - there is no colon (:) between the MX IP address and port number.

Re: Custom Alarm Function

Posted: Wed 05 Oct 2022 12:06 pm
by dazza1223
yes that was the error it is working now thank you

Re: Custom Alarm Function

Posted: Wed 05 Oct 2022 1:49 pm
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.

Re: Custom Alarm Function

Posted: Tue 17 Jan 2023 6:21 pm
by dazza1223
Is anyone else haveing a issue for sending mail on buster?