News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 17267
Latest: Fernker
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 137229
Total Topics: 17367
Most Online Today: 583
Most Online Ever: 8375
(February 21, 2026, 03:58:04 AM)
Users Online
Members: 0
Guests: 114
Total: 114

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

Web Server Locks Up Repeatedly on Pi Zero 2 W by Fernker
July 16, 2026, 05:15:40 PM

FPP as Home Assistant Add-On by jessica12ryan
July 12, 2026, 02:39:51 PM

Control ANY Home Assistant Device From FPP or xLights Sequences by jessica12ryan
July 12, 2026, 11:13:29 AM

Simpleshow for xLights by sonic777
July 12, 2026, 07:00:12 AM

FPP install script on Ubuntu, no video by jessica12ryan
July 08, 2026, 06:44:26 PM

No Imagine on Digital Sign by MSHutchins
July 06, 2026, 03:41:30 PM

Manage Multiple Pi Players - Phone or Web by keithmarx
July 06, 2026, 08:29:49 AM

Helping a brother in time of need. by David Pitts
July 05, 2026, 09:15:27 PM

Skulltronix in xlights by Scaregroundspdx
July 03, 2026, 02:24:11 PM

Another StaticOn.sh Question by richardln2
July 03, 2026, 02:13:42 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod