News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16781
Latest: mdarlin2
New This Month: 44
New This Week: 17
New Today: 4
Stats
Total Posts: 134942
Total Topics: 16878
Most Online Today: 139
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 122
Total: 125

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

K32 & Soundblaster by ricardo
Today at 10:17:23 AM

Using FPP on the pi to extend wifi by Poporacer
Today at 10:17:00 AM

Adding additional PSU to R2R F16v5 by Gilrock
Today at 10:16:26 AM

Different sound levels by mdarlin2
Today at 09:03:56 AM

f16v4 expansion by K-State Fan
Today at 07:19:49 AM

Issue with FPP and WLED Not Displaying Effects over DDP by ricardo
Today at 02:48:39 AM

Length of pigtail before pixels by LedMutt
Today at 01:57:11 AM

K16 BBB CPU at 100% by Cosmo99
December 12, 2024, 05:28:26 PM

FPP connecting to network issue by Santacarl
December 12, 2024, 04:20:33 PM

GE Insane Cane Bars not following submodel in Xlights. by Suikoden
December 12, 2024, 09:16:20 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod