Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.
Daily Shows Scheduling. Based on Steve's original.
From SpacialAudio
Comments: This script is a rejigged version of the "multiple shows on multiple days' script put on the Knowledge Base by Steve Kunitzer http://www.festerhead.com I've taken out a lot of the text specific to Steve's location and made it a bit more generic. Also added lots of comments trying to explain what things do.
The fundamental concept of this script is as follows; Your normal Category Rotation operates. You might be using weighted or category rotation, and configured in the Config section as normal. This script when running, will at specific times clear the queue, and load in either an hours worth of material from selected categories, and in one case, it loads in half an hours worth. Actualy slightly less. 56 minutes and 28 minutes. This allows for some variation, as well as adding your own promos and station IDs which I haven't included in this script, but is easy enough to do. See the ChickenMan.pal script for an example.
I've changed all the Category calls to variables so you can easily change what is played in the various slots. I will eventually put promos and IDs in this script too I guess.
The script relies on there being an extra table in the SAMDB. Extract from Steve's script. I added a table to the SAMDB called showstatus and then added two fields. The first one is event varchar(255) and the second one is ID char(1). I added the number 1 into this field.
Because I'm causing ChickenMan.pal to use this same table, thus avoiding having the DB cluttered with little tables, I've also added a field called ChickenID, (multipleinit(9)) and a field called LegendID (multipleinit(9)) I guess they could be char too, but their contents are numeric, and change, where as the ID used for this script - does not change. If you plan on using other scripts likethis one, keep this in mind. ie:
Table: showstatus Fields:
event (varchar 255)
ID (char 1)
if other scripts chickenID (mediumint 9)
legendID (mediumint 9)
etc etc
You can then also add other fields to the table as you need them. KISS.
This script plays the following program
1. 8am, monday, tuesday, wednesday thursday or friday World Music 1h 2. 11am monday, wedneday or thursday Electronic 1h 3. 12 noon, monday, wednesday, thursday or friday World Music 0.5h 4. 4pm, on Monday or Wednseday Country Music 1h 5. 8pm, Monday, Tuesday or Wednesday Christian Music 1h
You can Download the script here. http://spacialaudio.com/knowledge/attachment.php?attId=62
