News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16935
Latest: HangGlider
New This Month: 10
New This Week: 1
New Today: 1
Stats
Total Posts: 135621
Total Topics: 17021
Most Online Today: 102
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 45
Total: 45

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

PiCap V2 - newbie questions by allknowing2012
Today at 10:26:46 AM

possible interference: Solved by darylc
May 17, 2025, 10:28:48 PM

Newbie control panel build by jnealand
May 16, 2025, 09:54:18 AM

FPP Timezone/Sunset Inaccuracies by arl120384
May 15, 2025, 07:47:13 AM

How to use FPP with a defaut video? by encore
May 12, 2025, 08:10:36 AM

Could not contact signing website https://api.FalconPlayer.com by DrNeutron
May 10, 2025, 09:15:38 PM

Need Help on LEDvision, Colorlight card and P5 panels by emcee
May 10, 2025, 03:33:21 PM

FPP 8.5.1 on Pi 4B LAN and WAN UI access is odd by csmith
May 10, 2025, 02:43:29 PM

FPP 8.4 released! by dirknerkle
May 09, 2025, 08:26:22 PM

LED Single Panel Size Not Listed in Dropdown by breese
May 05, 2025, 04:05:31 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod