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: 16520
Latest: tanyadai
New This Month: 8
New This Week: 8
New Today: 2
Stats
Total Posts: 133087
Total Topics: 16541
Most Online Today: 106
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 49
Total: 49

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

LED Panel issue after upgrade to v8 by k6ccc
September 06, 2024, 05:54:33 PM

Leave eth0 Gateway blank by colonelcline
September 06, 2024, 09:19:53 AM

FPP After Hours Music Plugin has been updated by ckuhner
September 06, 2024, 07:58:54 AM

HELP - Panels Blown or PocketScroller messed up by DaSarge
September 06, 2024, 07:38:55 AM

PiCap-V2 String port webpage display issue by JonD
September 06, 2024, 06:00:13 AM

Recent update broke ArtNet Advanced Plugin on RasPi only by k6ccc
September 05, 2024, 04:28:51 PM

REST API: Start playlist and set repeat flag to true by Pweazle
September 05, 2024, 02:46:33 AM

Overlaying 2 or 3 videos in falcon player by darylc
September 05, 2024, 01:05:52 AM

Control lights directly from the GPIO of a PI by tbone321
September 04, 2024, 12:40:13 AM

FPP 8.0 Released! by dkulp
September 03, 2024, 07:05:20 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod