News:

LATEST RELEASE:  FPP 6.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/6.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15492
Latest: Robnation13
New This Month: 5
New This Week: 28
New Today: 5
Stats
Total Posts: 127036
Total Topics: 15585
Most Online Today: 67
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 53
Total: 56

Can UDP command be sent from an Event?

Started by falknerlights, April 12, 2020, 02:29:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

falknerlights

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!

dkulp

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 Kulp - https://kulplights.com

falknerlights

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.

falknerlights

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:

#! /bin/bash

echo -e "Show Start\r" > /dev/udp/192.168.0.180/1316

Support FPP

+- Recent Topics

Remote Pi connection issues by JonD
Today at 07:30:57 AM

FS Kulp K-8B Controller, Complete by ybjr38@yahoo.com
Today at 06:28:08 AM

Fpp 6.2 ui password by Sawdust
Today at 06:19:14 AM

FPP RPi 4 GPIO Big Button question by tynmar
Today at 06:08:16 AM

FPP not releasing control to WLED when idle by dkulp
Today at 05:27:12 AM

Remote Relay Control by MGHaff007
Today at 05:03:25 AM

Unable to donate on PayPal by darylc
Today at 04:15:05 AM

Pi zero 2w by Sawdust
Today at 12:25:33 AM

I'm Stumped by saleencb
November 30, 2022, 11:49:40 PM

BRP Voting Plugin - Allow others to vote for your songs! by plaberge
November 30, 2022, 09:27:58 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod