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: 15736
Latest: richardrons076
New This Month: 3
New This Week: 3
New Today: 1
Stats
Total Posts: 129006
Total Topics: 15889
Most Online Today: 122
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 99
Total: 100

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

Raspberry PI 4 b fan by JonB256
June 07, 2023, 09:30:09 AM

Advatek Vortex 48 channel DC controller by k6ccc
June 06, 2023, 09:31:41 AM

RS485 CAN HAT for DMX by MikeKrebs
June 05, 2023, 09:18:04 PM

colorlight 5a-75b not working with raspberry pi4B fpp by Kensington Graves
June 05, 2023, 10:09:36 AM

Multi Channel Audio by dkulp
June 05, 2023, 09:30:24 AM

Wifi help by dkulp
June 04, 2023, 12:24:56 PM

MMAL error 2 "ENOSPC" by MikeKrebs
June 03, 2023, 09:34:36 PM

Dmx by MikeKrebs
June 03, 2023, 08:53:35 PM

F48V4-NS at 40 fps using all 48 pixel output ports? by MikeKrebs
June 02, 2023, 09:36:11 PM

EEEPROM Files by shanebou24
June 01, 2023, 01:27:06 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod