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

Action on Alarm - how?

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
Ulric2
Posts: 47
Joined: Mon 21 Feb 2022 11:30 am
Weather Station: FineOffset
Operating System: Ubuntu 22.04

Action on Alarm - how?

Post by Ulric2 »

I'm running Cumulus MX 3.25.1 b3244 under Ubuntu 22.04 and I'm trying to configure an action to run on detection of a data spike.
I've created a shell script which performs the actions I want and that works from the terminal. Am I able to run it from the "Action" field on the alarms page in CumulusMX? I have tried different ways of configuring it but it does not seem to run the script? At the moment, I just have ~/myScript.sh typed into the Action box. What am I missing?

I can't find much help on this feature so, I'd be grateful for any guidance on how it works.
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: Action on Alarm - how?

Post by water01 »

My understanding is the you put the Action in "set Action" and any parameters to that action in Action Param.
David
Image
SamiS
Posts: 511
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Action on Alarm - how?

Post by SamiS »

I’m not a linux expert, but it might be necessary to refer the action to the shell you are using, eg.

bash /fullpath/to/the/script.sh
broadstairs
Posts: 1185
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: Action on Alarm - how?

Post by broadstairs »

I have a php script I run from alarms so I have php in action and the script name in action parms. I suggest you try bash in action and full path to the script in parms, if you put the script in the root cmx directory you should only need the script name. I hasten to add that I've not tried a bash script this way as I normally use php ;)

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
Ulric2
Posts: 47
Joined: Mon 21 Feb 2022 11:30 am
Weather Station: FineOffset
Operating System: Ubuntu 22.04

Re: Action on Alarm - how?

Post by Ulric2 »

Thanks for the suggestions. I'll try some different permutations and see if I can get it working.

The first thing I'll try is putting the script in the CumulusMX directory although, I thought providing the full path to the script would do it.
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: Action on Alarm - how?

Post by mcrossley »

As you are trying to run a bash script, you should specify "bash" as the executable, and the script (and path if applicable) should be the parameter.
Post Reply