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.
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
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?
Moderator: mcrossley
-
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?
My understanding is the you put the Action in "set Action" and any parameters to that action in Action Param.
-
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?
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
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?
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
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?
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.
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.
- 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?
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.