[SOLVED]How to run a simple script ?

Hi everyone,

I’m using a network amplifier to play my music.
I want to be able to execute a simple shell script through volumio webUI. This script works perfectly, it’s a simple http soap post via CURL which let me start/stop the amplifier without having to do it physically.
I don’t have enough skills to write a plugin and I’m searching a way to modify the UI in order to execute this script.

Any hint ?

Thx

The easiest way to run your own script is to install Python MPD on your system and write script on python. After then you’ll need to create startup service in in /usr/lib/systemd/system/ and enable it with systemctl command.

I would say that if you have a already working script, just create a systemd service calling it. No need imha to install something else.

Thanks.
I finally used Python and some system commands.

Do you mind sharing your code/instructions? I have a frankenstein car sub in my garage I power with a PS3 Power supply. I manually turn it off and on and would Love to have it sense when the music is playing, or even just when a music source is connected. I use the shairplay module exclusively.

Thank you in advance for the help!
AE094042-5FD5-494A-BDDC-76B4D14EB614.jpeg
BC4E0D19-6309-4407-8C39-233AC9C7EF0E.jpeg