Hi, can a UDP command be sent to a device from an event in FPP 3.6.x?
If so, what is the format? I assume it would be a Run Script command, but have not had any success in figuring out the script text.
My use-case is to send a macro command to an ETC Paradigm controller. The controller is looking for IP address/port/message/carriage return.
Thanks in advance!
If you have the script executing via /bin/bash instead of /bin/sh (check the first line of the script), then you can likely do something like:
echo "MessageToSend" > /dev/udp/192.168.1.187/3000
just put your target IP address and port after the /dev/udp/ stuff. This is very bash specific.
We also have "netcat" installed so you could do:
echo "Message" | nc -u 192.168.1.187 3000
Daniel, thanks for your quick reply!
I can't seem to get FPP to output UDP after selecting an event and clicking on Trigger Event.
Attached is a screen shot of the Event window.
I'm sure it's something simple I'm missing.
Daniel, I finally was able to get back to this and it works well!
It turns out I needed to add the -e option and \r for it to work.
The whole script is:
echo -e "Show Start\r" > /dev/udp/192.168.0.180/1316