News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 17226
Latest: IndyJoe
New This Month: 5
New This Week: 1
New Today: 1
Stats
Total Posts: 137009
Total Topics: 17316
Most Online Today: 1337
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 607
Total: 607

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 1 Guest 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 9.5 by alman4511
February 16, 2026, 09:53:32 AM

F16V5 FW 37 Fan settings by jnealand
February 14, 2026, 07:48:45 AM

Issues with firmware update by 2Couyon
February 11, 2026, 04:45:33 PM

FPP won't connect with F16v3 by patdepri
February 11, 2026, 05:25:33 AM

LoRa plugin. Is it worth pursuing in 2026 by csmith
February 10, 2026, 09:57:30 AM

Explanation of ED (Extended Data) by dkulp
February 09, 2026, 05:58:08 PM

E682 San Devices doesn't power up by ScaryJerry
February 03, 2026, 06:48:50 PM

F16v3 v2.58 by JonD
February 02, 2026, 09:03:41 AM

Retrofit and Simple Message Generation Software Recommendations by skyblaster
February 01, 2026, 07:23:25 PM

New Plugin by sctwohig
January 29, 2026, 12:46:55 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod