News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15303
Latest: markuslott
New This Month: 6
New This Week: 4
New Today: 0
Stats
Total Posts: 125189
Total Topics: 15257
Most Online Today: 99
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 4
Guests: 57
Total: 61

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 Advanced Features Key has been used. by tfmacz
Today at 12:17:47 PM

DIY voucher request by steve123
Today at 09:14:32 AM

Written documentation for Differential Receivers v2.01 by JonD
Today at 09:04:50 AM

Docker Container - No Multisync Discovery by EricD
October 04, 2022, 10:51:15 PM

Unable to reconnect to BBB after network config by Stoshx
October 04, 2022, 06:33:05 PM

WTB F16v4 by Poporacer
October 04, 2022, 02:31:40 PM

F16V3s for Sale by Manuelpereyra78
October 04, 2022, 12:33:36 PM

F16V4 port 5 Lights flicker by Martin Lamers
October 04, 2022, 09:54:36 AM

House preview - full screen icon missing by JonD
October 03, 2022, 06:03:37 PM

F26V3 Unable to connect to network by JonD
October 03, 2022, 05:52:09 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod