News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16460
Latest: tripleblack
New This Month: 10
New This Week: 1
New Today: 0
Stats
Total Posts: 132598
Total Topics: 16443
Most Online Today: 221
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 164
Total: 165

1 button several playlist/sequence

Started by Tomtom29, May 05, 2024, 02:58:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tomtom29

Hi,

new to FPP, I read and tried a lot of manipulation with the scripts, command without success

I want to play an initial playlist (which we will call "1")

I have a push button and I would like that when pressed, a sequence of the "musical playlist" starts, once the sequence is finished, "1" restarts


Diagram:
▪️ Playlist 1 from 6 p.m. to 10 p.m.
▪️ If BP = 1 sequence from playlist 2
Then return to playlist 1
▪️ If BP = 1 sequence (different from the previous one) from playlist 2
Then return to playlist 1
...

Poporacer

Scripts is probably not the best solution. Use FPP Commands. On your pushbutton event, use the FPP Command Insert Random Item from Playlist and select your Playlist 2. 
If to err is human, I am more human than most people.

Tomtom29

#2
thank you for your reply

Tomtom29

Quote from: Poporacer on May 05, 2024, 06:58:19 PMScripts is probably not the best solution. Use FPP Commands. On your pushbutton event, use the FPP Command Insert Random Item from Playlist and select your Playlist 2.
thank you for your reply

However I tried, this is what works best

but I would like to deactivate pressing the button when playlist 2 is in progress, that's the only condition I would like (sorry I forgot to specify... )

as in the start playlist command with the option "if it's running"

Poporacer

Quote from: Tomtom29 on May 06, 2024, 02:16:09 AMas in the start playlist command with the option "if it's running"
Then you can make your Playlist 2 a random playlist and use the Insert Playlist command to select one item with the If Not Running option.
If to err is human, I am more human than most people.

Tomtom29

Quote from: Poporacer on May 06, 2024, 08:27:54 AM
Quote from: Tomtom29 on May 06, 2024, 02:16:09 AMas in the start playlist command with the option "if it's running"
Then you can make your Playlist 2 a random playlist and use the Insert Playlist command to select one item with the If Not Running option.
I've already tried but it doesn't meet my expectations.

 by doing this, playlist 2 will be played entirely.

I would like to take only one sequence from playlist 2 then return to the initial

ideally you would need the command:
"Insert random item from playlist" with the option 'if not running'

but I don't know if it's possible without a script?




CaptainMurdoch

You can use one of the existing "start playlist if not playing" scripts and update it to use the REST API call to trigger the FPP Command to insert a random item from Playlist #2.
-
Chris

Poporacer

Quote from: Tomtom29 on May 06, 2024, 11:08:53 AMby doing this, playlist 2 will be played entirely.
Did you set the Start and end Item index to 1? It only played one song when I tried it.
If to err is human, I am more human than most people.

Tomtom29

Quote from: Poporacer on May 07, 2024, 07:30:43 AM
Quote from: Tomtom29 on May 06, 2024, 11:08:53 AMby doing this, playlist 2 will be played entirely.
Did you set the Start and end Item index to 1? It only played one song when I tried it.
yes I just tried but it only chooses sequence 1

Tomtom29

Quote from: CaptainMurdoch on May 06, 2024, 03:01:51 PMYou can use one of the existing "start playlist if not playing" scripts and update it to use the REST API call to trigger the FPP Command to insert a random item from Playlist #2.
I looked but I'm on FPP so it's complicated for me but thank you for your answer

Support FPP

+- Recent Topics

Did the the latest upgrade tonight and it failed. by MikeKrebs
June 10, 2024, 09:19:42 PM

No Audio by Steve
June 07, 2024, 02:10:47 PM

Video IP Capture -> sound by MikeKrebs
June 06, 2024, 09:00:17 PM

Control Channel Output by zj023
June 03, 2024, 06:23:35 AM

Compatibility question by John_82
June 02, 2024, 04:23:25 PM

Virtual Display not working? by colonelcline
June 01, 2024, 04:55:41 PM

Help for my LED Pit board project by Octonath
May 31, 2024, 06:15:17 PM

Help, can't get PCA9685 working with xLights and FPP by dkulp
May 30, 2024, 08:54:53 AM

HELP Did something dumb - turned on Tethering by The Engineer
May 27, 2024, 06:39:38 PM

First Time User - Can't open GUI only Terminal by k6ccc
May 27, 2024, 09:51:34 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod