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: 16868
Latest: Brycemessi
New This Month: 7
New This Week: 6
New Today: 0
Stats
Total Posts: 135397
Total Topics: 16969
Most Online Today: 54
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 46
Total: 47

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

Scoreboard Plugin by CaptainMurdoch
February 06, 2025, 04:34:30 PM

K32 only the pixels stopped outputting by tetleytealeaf
February 06, 2025, 02:03:40 PM

Power failure wreaked havoc by perigalacticon
February 05, 2025, 04:04:27 AM

What is the fanout capabilities of ws2811 controllers? by k6ccc
February 04, 2025, 05:53:10 PM

SPixels broken in version 6 and upwards by dkulp
February 04, 2025, 02:52:30 PM

FPP stopped working by crookedpriority
February 03, 2025, 10:45:17 AM

Setting up a wired on demand show on Pi/ FPP to push a show to Falcon Controller by breese
February 03, 2025, 04:54:44 AM

F16V4 Expansion Board Half of the board stop lighting up. by onlineshopper
February 03, 2025, 03:08:47 AM

Overlay Matrix: write more than one pixel at a time ? by niemy
February 02, 2025, 03:35:16 PM

FPP Spixels bug by Colg
January 31, 2025, 02:52:05 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod