News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15930
Latest: mmoulder
New This Month: 20
New This Week: 0
New Today: 0
Stats
Total Posts: 129646
Total Topics: 15982
Most Online Today: 108
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 84
Total: 84

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

Wifi Antenna by MikeKrebs
September 22, 2023, 10:03:51 PM

Integrating Twilio with Google Sheets by Nufernandes
September 22, 2023, 01:54:52 PM

MegaTree + Faces kit for sale by dkroz
September 21, 2023, 12:39:28 PM

DMX problem with F4v3 by JonD
September 21, 2023, 11:00:35 AM

Maximum Number of Schedules by Poporacer
September 20, 2023, 10:53:53 PM

K16A-B Expansion Board by vttinman
September 20, 2023, 12:39:02 PM

FPP Colorlight config by Wayne Laagewaard
September 20, 2023, 10:57:35 AM

New Falcon F16v4 Troubles with Pixel Output Page by JonB256
September 19, 2023, 08:01:23 PM

GIF or MP4 display on a matrix? by tbone321
September 18, 2023, 01:15:45 PM

F16V4 LCD Screen not working by Timmy
September 18, 2023, 05:35:19 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod