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: 15527
Latest: Murfdog510
New This Month: 35
New This Week: 23
New Today: 1
Stats
Total Posts: 127426
Total Topics: 15642
Most Online Today: 39
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 20
Total: 20

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

snmpd interference with FPP by Setarcos
Today at 12:31:26 AM

FPP Connect Limiting Uploads to 16V4 by darylc
Today at 12:07:03 AM

Issues with Falcon Differential Smart Receiver v2.01 (Blue) by Poporacer
December 08, 2022, 10:03:22 PM

FPP 6.2 ColorLight Issues by dennismccreery
December 08, 2022, 08:10:07 PM

Falcon V4 Player by drpiotro
December 08, 2022, 05:29:09 PM

f16v4 wont play in Player or Master Mode by Poporacer
December 08, 2022, 05:07:37 PM

FPP v6.2 Beaglebone Black/Green WiFi at startup by egenoup
December 08, 2022, 03:46:11 PM

I can't get FPP to work with F16v4 by aquinones3
December 08, 2022, 03:08:26 PM

K8-PB does not recognize SB Play 3 by Poporacer
December 08, 2022, 01:58:46 PM

K40D-PB by dkulp
December 08, 2022, 01:04:36 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod