PFP and scheduling

This forum can be used to post any topics related to general broadcast questions, tech stuff, informations etc.
This forum is unmoderated!
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PFP and scheduling

Post by radio42 »

okay, now i got you.

So in this case (pick 2 top40 playlists) you want to pick 2 of the existing .pfp playlist files randomly each time..
To do this you can use the following script-line:

Code: Select all

LoadFolder, C:\Your Folder\Week ($week})|6|*.pfp, Count=2
The LoadFolder mode allows you to specify a folder (in my case I used the ${week} macro already) and to specify the sorting mode (in my case I selected Random (=6)). The Count=2 value means 2 entries are picked randomly from that folder.
Infact embedded playlist entries are created, which means the whole .pfp playlist is played as one entry...

I hope this is what you are looking for...
SiriusRadio
Posts: 96
Joined: 25 Dec 2014 11:51
Contact:
Re: PFP and scheduling

Post by SiriusRadio »

radio42 wrote:okay, now i got you.

So in this case (pick 2 top40 playlists) you want to pick 2 of the existing .pfp playlist files randomly each time..
To do this you can use the following script-line:

Code: Select all

LoadFolder, C:\Your Folder\Week ($week})|6|*.pfp, Count=2
The LoadFolder mode allows you to specify a folder (in my case I used the ${week} macro already) and to specify the sorting mode (in my case I selected Random (=6)). The Count=2 value means 2 entries are picked randomly from that folder.
Infact embedded playlist entries are created, which means the whole .pfp playlist is played as one entry.
I'm gonna try, but how does this code sort the week? Does PF scheduler know what week we are? Or do i have to input every week in the scheduler? It seems that PF lets me have only one schedluer?
Thxs
Will
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PFP and scheduling

Post by radio42 »

The week folder itself is picked by the macro:
"C:\Your Folder\Week ($week})"
which might resolve for the 12th week number to:
"C:\Your Folder\Week (12)"

The content (of one of these folders; meaning your .pfp files) are then sorted randomly!
Count=2 then means, the first 2 are picked - if sorted randomly - the first two are picked randomly...

I am not sure what you mean by "having only one scheduler"?
Yes, there is of course only one program scheduler, but it can have as many program scheduler entries as needed ?!
SiriusRadio
Posts: 96
Joined: 25 Dec 2014 11:51
Contact:
Re: PFP and scheduling

Post by SiriusRadio »

Unfortunally i'm not as brilliant as you. Can u please take me by the hand and show it? I haven't any clou were to put the scriptline, and what to change? Is this line oké,

LoadFolder, H:\1.Weeklijsten top 40\Week ($week})|6|*.pfp, Count=2
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PFP and scheduling

Post by radio42 »

Yes, that looks okay.
Here are the steps to create such a script-line from within the Script Editor:
ScriptSelectLoadFolder-1.jpg
ScriptSelectLoadFolder-1.jpg (129.3 KiB) Viewed 10854 times
1. Select the LoadFolder mode and then 2. click on the '...' button next to the Entry cell.
ScriptSelectLoadFolder-2.jpg
ScriptSelectLoadFolder-2.jpg (18.6 KiB) Viewed 10854 times
Select a sample folder, set the sorting to Random and specify *.pfp as the Filter.
ScriptSelectLoadFolder-3.jpg
ScriptSelectLoadFolder-3.jpg (18.72 KiB) Viewed 10854 times
Replace the week number with the ${week} macro in the folder path and click OK
ScriptSelectLoadFolder-4.jpg
ScriptSelectLoadFolder-4.jpg (116.6 KiB) Viewed 10854 times
Select 2 as the Count value.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PFP and scheduling

Post by radio42 »

I do not know your script, so I can not tell what it is doing or not doing ;-)

But...
In your script editor (per script-line) you can e.g. select the LoadPlaylist mode and then as the Entry you need to specify a filename of the playlist file to full play....
Instead of using a fixed filename you can also use macros (e.g. the ${week} macro would resolve to the current week number).
Thus you can make your scripts pretty dynamic this way.

Look at the User Manual Appendix to get a full list of available global macros you might use.

Is it this what you are looking for?
Else please describe in detail what the script should do...
SiriusRadio
Posts: 96
Joined: 25 Dec 2014 11:51
Contact:
Re: PFP and scheduling

Post by SiriusRadio »

Thxs 4 the info, but,..... it doesn't work.
PFP 2.jpg
PFP 2.jpg (127.1 KiB) Viewed 10852 times
We set the time and did everything but the script is not running.
Might there be a possiblity that the map structure or even the media library structure is not working?
But on the other hand is that strange, after all the script overruls all librarys etc, is that correct? Anyway,.... i need your help again. :roll:
SiriusRadio
Posts: 96
Joined: 25 Dec 2014 11:51
Contact:
Re: PFP and scheduling

Post by SiriusRadio »

Hereby, ohh that info. A lot to process :D
Script
script.jpg
script.jpg (138.74 KiB) Viewed 10849 times
Scheduler
Program editor.jpg
Program editor.jpg (70.32 KiB) Viewed 10849 times
SiriusRadio
Posts: 96
Joined: 25 Dec 2014 11:51
Contact:
Re: PFP and scheduling

Post by SiriusRadio »

Sorry, but i guess i'm not autorized. There is no difference between the pop-ups for check the updates and BETA versions. So :?
You are running the most recent version.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: PFP and scheduling

Post by radio42 »

Then please so post your script AND program scheduler entries (e.g all your related screen shots), as you probably did something wrong in your setup!
Also read/see this to understand how the scheduler is working:
viewtopic.php?f=9&t=10&p=15
viewtopic.php?f=5&t=1018

Post Reply