News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16851
Latest: mikebrowder
New This Month: 29
New This Week: 2
New Today: 1
Stats
Total Posts: 135318
Total Topics: 16953
Most Online Today: 98
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 28
Total: 30

How can I play one random playlist, selected from a playlist of playlists?

Started by jedimasta, December 10, 2024, 04:52:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jedimasta

Hopefully that subject makes sense. I have a half dozen playlists or so that each have multiple sequences in them, no, nested. I run my show every 15 minutes and I'd like FPP to pick ONE playlist, at random, from that larger array to play. Then do it again every quarter hour.

I found this older thread https://falconchristmas.com/forum/index.php?topic=12126.msg113963#msg113963 and grabbed the script from @CaptainMurdoch 's reply, but nothing seems to happen. Maybe it's because FPP has gone through a lot more upgrades since then (for example: there is no 'wait for completion' checkbox). I don't know enough about shell scripts to determine what, if anything, is happening when I run the script, though I checked the logs and didn't see anything tracing back to the script. Is there an established way to do this?

breese

Content Setup / Scheduler
Add
Under Content Type choose Command
Under Playlist /Command choose Start Playlist at Random Item

jedimasta

Thanks, but this only sort of works. Each of the embedded playlists has multiple items (intro, main song, outro, script, etc). This command does a random item from the compiled list of everything - so sometimes it JUST does an intro or just does the script at the end.

jedimasta

I decided to try my hand at scripting and attached is what I came up with.

Support FPP

+- Recent Topics

FPP Connection Question by JonD
Today at 03:50:30 PM

Does the Falcon PiCap v2 support Renard Output? by dakingus
Today at 09:17:28 AM

F48 v1 & F16v5 by Mark_M
January 19, 2025, 09:34:10 PM

No Fuses and No Expansion Port by MikeKrebs
January 19, 2025, 08:05:23 PM

Swapped PiCap V1 with V2 - Pixels will not light in test by CaptainMurdoch
January 19, 2025, 05:29:18 PM

FPP 8.4 released! by lrhorer
January 19, 2025, 11:30:42 AM

K2-Pi-Servo by breese
January 17, 2025, 01:47:06 PM

Big button url question by darylc
January 14, 2025, 05:54:32 PM

Display TEXT to LED Panels form REST API by CaptainMurdoch
January 14, 2025, 11:55:25 AM

Differential Board: PSU & Enclosure by jnealand
January 14, 2025, 07:42:55 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod