News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16528
Latest: fugley
New This Month: 16
New This Week: 1
New Today: 1
Stats
Total Posts: 133171
Total Topics: 16554
Most Online Today: 24
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 17
Total: 17

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

K2-Pi0 Unable to Start FPPD by k6ccc
September 15, 2024, 10:45:21 PM

Control lights directly from the GPIO of a PI by Poporacer
September 15, 2024, 12:25:42 PM

New K16s by dkulp
September 15, 2024, 08:23:40 AM

FPP After Hours Music Plugin has been updated by jcross
September 14, 2024, 08:49:51 PM

Intermittent Test Pattern failure on Channel Outputs > LED Panel by k6ccc
September 14, 2024, 08:11:30 PM

P5 Matrix on FPP 8.0 help by darylc
September 14, 2024, 07:09:50 PM

Does the Falcon f16v4 support TM1814 RGBW LEDs? by JonD
September 14, 2024, 03:12:11 PM

Does the Falcon f16v3 support TM1814 RGBW LEDs? by ric878
September 14, 2024, 01:53:57 PM

USB Monitor (AIDA64 Style) by jnealand
September 14, 2024, 08:39:50 AM

What am I missing - FPP 8 artnet input configuration by jnealand
September 14, 2024, 08:32:21 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod