Exec node not working as expected

I was trying to create a flow on a Raspberry Pi to adjust the master volume of the Pi using an Exec node and the command amixer -q -M sset Master 50% which works as expected from the command line but errors when using the Exec node.

The device is running as a FlowFuse remote instance and when I run the command amixer controls directly from the command line to see the various sound interfaces, I get a completely different response than when I run the same command using the Exec node from Node-RED... any ideas?


Screenshot 2025-04-07 at 5.02.43 PM

Try this: Exec node - help with how it spawns - #3 by Steve-Mcl

Note: since it is a device agent instance, put the env in the device settings -> env vars and replace the 1000 with the Sid of the account that runs the device agent

1 Like

@Steve-Mcl this worked and allows me to adjust the volume from the device-agent flow :slight_smile:

Thanks for your help!

1 Like

OK, I was close with the DBUS and PULSE env vars, just needed XDG instead

1 Like