Remote start stop

Juddge

Full time elf
Generous elf
Joined
Oct 15, 2023
Messages
218
Location
Glenmore Park - Penrith Area
ok guys, i hvae taken your ideas onboard and want to use only the one main player - to ensure it controls all the schedueling

i will still have the two layouts, with 2 diffirent sequences due to the layout and both being used for diffirent things
but can i have a main pi4 with FPP to run as the main player and control all others FPP instances

as i can see all players/remotes on the same network , can i use the main fpp to start the main scheduele and at the same time start the playlist on the secondary player ?
using FPP Commands ?

example

5PM - primary starts its scheduele
1. first run static sequence for main area
2. send command to secondary player to run squence "DC only lights"

5:30 pm change to a timed song sequence
1. music sequences randonly picked and runs once only ( runs for 1 random song only on main player)
2. send command to secondary player - Run Sequence "DC lights only 50% less brightness"

when primary playlist music finishes
run static sequnce on main player again ( background sequence)
send command to secondary to run DC only lights again at full brightness

and keeps looping every half hour until closing time ? ( 11-12pm)


reason for wanting to run this way is i have a walkthrough display in my side yard and the front yard will be the sequenced to songs as it is all RBG lights

and when the front yard is playing a Every half hour song - i want it to run a command to the side yard to run a new sequence ( the same one but with all set 50% less bright) so they wont bleed too much light into the front show

this seems doable when looking at the fpp schedueler and the fpp commands as the commands allow for control of other players

im assuming i would need to ensure the main player has a copy of all the sequences on it, so it knows what sequnce to tell the secondary player to run - (might not be player may just be remote)

im sure i can upload only the required sequences to the other devices, so they only have the sequence they require ( or do i need all sequences on all devices)
 
Instead of trying to fiddle with commands etc it would be easy to create separate sequences for a playlist.
babysharkRGB - RGB 100%, evil 2 wire 10%
WhatDoesTheFoxSayTwinkly- RGB 10%, evil 2 wire 100%
Setup the playlists for given times using the RGB and Twinkly as desired.
 
no twinkly here, good old dc2-24 controller ,
but i have my RPI28D+ setup as a player as it controls all the DMX and WS2811 for the older lights and there auxillary controllers dc2-24 and dc30-ws2811

i was hoping to have the one controller to tell all others when to start and stop even for seperate playlists

i was going to have DC lights 100% - sequence 1
DC light 50% sequence 2
as the two sequences i want avaialbe to remotely start and stop

and ask the main player to remotely start and stop each sequence for the RPI-28D+ for its dmx and other DC lights , so the side lighting wont bleed and overpower the front song shows

idea is, both shows seperate , but the main player tells the secondary controller what playlists to run when it is changing ?

or should i just setup the rpi-28D+ as a remote and just make it part of my main show, just via the sequences only ?

im worried that when i start introducing more songs and want to run more then every half hour for the main show, i will have to edit too many playlists,
so i thought have the side yard as a seperate player with only the full brightness and reduced brightness as a sequence option so all i have to do from the main player is start my playlist and ensure every start of a song, sends a remote command to the other player and the finish sends another
 
this way it will multicast a command to a dedicated Host - IE run playlist 50% Brightness
then when finished - it leads out with another multicast command to play playlist 100% brightness

so, FPP is amazing
 
this way all i have to do for any playlist is either add the lead in and lead out commands so it tells the side yard to either be full brightness or lower brightness whilst a song runs via a schedueled playlist
 
at the risk of causing outrage, Chat gpt should be able to help you set this up including a script if needed, to choose only one song.
If it gets something wrong tell it and it will try to come up with a solution. I have had some really good results with it.
 
does this look right ?

import random
import os

# List your sequence files here (full paths or relative to your scripts directory)
sequences = [
"/path/to/sequence1.fseq",
"/path/to/sequence2.fseq",
"/path/to/sequence3.fseq"
]

# Path to the FPP playlist file or command to run playlists
playlist_path = "/path/to/your/playlist.m3u"

def get_random_sequence(sequences):
return random.choice(sequences)

def create_playlist_with_single_sequence(sequence):
# Create a temporary playlist file with just the selected sequence
temp_playlist_path = "/tmp/random_sequence_playlist.m3u"
with open(temp_playlist_path, 'w') as f:
f.write(sequence + "\n")
return temp_playlist_path

def main():
selected_sequence = get_random_sequence(sequences)
temp_playlist = create_playlist_with_single_sequence(selected_sequence)

# Replace or trigger your playlist to play this temporary playlist
# For example, using 'mpv' or your preferred player:
os.system(f"mpv --playlist={temp_playlist} --loop=no")

# Or if you're triggering via FPP commands, you might need to adapt this part

if __name__ == "__main__":
main()
 
put it in the too hard basket for now
just added the remote start stop to a selection of playlists that each have only 1 diffirent song
 

Attachments

  • schedule.png
    schedule.png
    147.7 KB · Views: 3
Testing so far proves i can make the secondary player run the 50% brightness sequence whilst the song plays, and when it finishes, set the secondary player to the 100% brightness sequence - and force the main player back to the static sequence until the next song event

been working flawless all night in continued testing
 
Back
Top