News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15653
Latest: Kairus
New This Month: 3
New This Week: 4
New Today: 0
Stats
Total Posts: 128399
Total Topics: 15787
Most Online Today: 36
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 26
Total: 26

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

FPP6.2 universes by darylc
February 03, 2023, 08:48:57 PM

help getting started, next step? by netfan
February 03, 2023, 11:27:52 AM

F16v4 Ports vs Universe Configuration Question by k6ccc
February 03, 2023, 09:32:48 AM

Need Expert Advise on F16v4 Ports vs Universe Configuration by Kairus
February 03, 2023, 09:32:33 AM

Set Time/Date by darylc
February 02, 2023, 06:09:40 PM

We moved and are and selling everything (in Boise, ID) by ybjr38@yahoo.com
February 02, 2023, 02:14:59 PM

K8-PB No network on first run by rharrington76
February 02, 2023, 01:39:47 PM

Help How I use Orange Pi with FPP by tbone321
February 01, 2023, 02:41:58 PM

No network by Steve_63
January 31, 2023, 08:17:21 PM

F48V4-NS Pixel Controller using all 12 Differential SmartReceiver ports by BirdingPix
January 31, 2023, 02:26:30 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod