News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16876
Latest: Christmas_Man69
New This Month: 15
New This Week: 4
New Today: 0
Stats
Total Posts: 135411
Total Topics: 16972
Most Online Today: 134
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 4
Guests: 115
Total: 119

Start Stop playlist with 1 button event script.

Started by dreiman, November 07, 2019, 09:31:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dreiman

I am using FPP for the first time this year. I am in the planning stages and getting the software / hardware sorted out.

I was playing with input events to set up buttons to execute events. The first thing I did was make a button play a play list. That's got to be most people first thing with buttons. But it got me thinking. Instead of having a button for play, and a button for stop, why not play and stop with the same button.

So I wrote a simple shell script that allows you to do that.

You set up your button the normal way on a GPIO pin of your choice. Edit play.sh with the name of the playlist. Copy play.sh to FPP.  set up an even to execute play.sh.  Then setup an input to execute the even on a push button.

When you are done, push the button and the playlist starts. Push the button again and it stops.

Support FPP

+- Recent Topics

xlights controller config by bobnorris
Today at 09:59:54 AM

MQTT Disconnected issues in FPP-Using with Home Assistant,hope someone can help) by wtstreetglow
Today at 08:03:32 AM

8.5.1 broke ffpd on restart after upgrade by MikeKrebs
February 12, 2025, 10:08:03 PM

K2-Pi-Servo by breese
February 11, 2025, 01:50:52 PM

K32 only the pixels stopped outputting by AAH
February 10, 2025, 11:45:33 PM

Scoreboard Plugin by CaptainMurdoch
February 06, 2025, 04:34:30 PM

Power failure wreaked havoc by perigalacticon
February 05, 2025, 04:04:27 AM

What is the fanout capabilities of ws2811 controllers? by k6ccc
February 04, 2025, 05:53:10 PM

SPixels broken in version 6 and upwards by dkulp
February 04, 2025, 02:52:30 PM

FPP stopped working by crookedpriority
February 03, 2025, 10:45:17 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod