News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16442
Latest: Rubbermonster
New This Month: 12
New This Week: 0
New Today: 0
Stats
Total Posts: 132528
Total Topics: 16430
Most Online Today: 111
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 68
Total: 68

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

FPP 8 ui issues by Poporacer
Today at 08:59:34 PM

No RPIW281x on FPP 7.5? by MikeKrebs
Today at 08:27:07 PM

Does FPP only suport panels listed in the single panel size drop down list? by Rubbermonster
May 18, 2024, 07:54:19 AM

Second WS* strand not working? by MikeKrebs
May 17, 2024, 09:25:24 PM

Linsn receiver card setup by darylc
May 17, 2024, 05:55:46 AM

Control ESPixelStick with FPP (it's work with xligth) by Sawdust
May 15, 2024, 08:39:34 AM

Falcon F16V4 not receiving FPP data by tbone321
May 14, 2024, 09:43:33 PM

Power Draw for Board by darylc
May 11, 2024, 08:47:52 PM

Ethernet ports stopped communicating with pc by StickyWicket
May 10, 2024, 06:00:58 PM

Big Buttons update! by ScaryJerry
May 10, 2024, 11:49:11 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod