Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 6th May 2012, 04:01   #1
NitrofishRadio
Junior Member
 
Join Date: May 2012
Posts: 17
Calendar Problems

I am trying to use the sc_trans_playlist.conf so that I can fire jingles at specified times, but the problem is that the jingles never fire. So I ran the debug and this output is below. Below that is the pl_calendar.xml. Can someone please help me work this out?

code:

2012-05-06 11:36:24 D msg:[CALENDARMGR] timeSlice
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=1 is not active. running activation check.
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=1 start date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=1 end date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=1 is a repeating event
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=1 is not active. Checking for removal
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 is not active. running activation check.
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 start date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 end date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 is a repeating event
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 repeating event day of week matches
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 repeating event not yet run today
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=2 repeating event activating.
2012-05-06 11:36:24 I msg:[PLAYLISTMGR] Playlist load from file playlists/main.lst
2012-05-06 11:36:24 I msg:[PLAYLISTMGR] Loading playlist from cache
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=3 is not active. running activation check.
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=3 start date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=3 end date range is ok
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=3 is a time periodic event
2012-05-06 11:36:24 D msg:[CALENDARMGR] id=3 time periodic event day of week matches




PL_CALENDAR.XML
code:

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>

<!-- if more playlists are required in the system then we just add in
more event blocks making sure to have entered a 'playlistfilename'
and 'playlistfilepath' entry into the sc_trans configuration file -->

<!-- this should activate the specified playlist at 18:00:00 (based on
the time of the machine sc_trans is running on) and keep playing
until 06:00:00 (as specified by the duration field from 18:00:00
and is applied only to weekdays

remember: playlist events are queued up so the transition is not
likely to happen until the currently playing file ends -->
<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="1" >main</playlist>
<calendar starttime="18:00:00" duration="12:00:00" repeat="62" />
</event>

<!-- this should activate the specified playlist at 06:00:00 (based on
the time of the machine sc_trans is running on) and keep playing
it over the weekend until 06:00:00 on monday morning instead of the
main playlist as specified by 'playlistfile' in sc_trans_basic.conf

remember: playlist events are queued up so the transition is not
likely to happen until the currently playing file ends -->
<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="1" >main</playlist>
<calendar starttime="06:00:00" duration="48:00:00" repeat="65" />
</event>

<!-- here we setup time periodic events which allow us to queue a jingle
type event to play approximately at 20 and 40 minutes past the hour

remember: playlist events are queued up so the transition is not
likely to happen until the currently playing file ends -->
<event type="playlist">
<playlist loopatend="0" shuffle="1" priority="2" >jingles</playlist>
<calendar starttime="00:00:00" timeoffset="00:20:00" repeat="128" />
</event>

<event type="playlist">
<playlist loopatend="0" shuffle="1" priority="2" >jingles</playlist>
<calendar starttime="00:00:00" timeoffset="00:40:00" repeat="128" />
</event>

NitrofishRadio is offline   Reply With Quote
Old 6th May 2012, 05:05   #2
jaromanda
Major Dude
 
jaromanda's Avatar
 
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
starttime needs to be 01:00:00 ... meaning the event is repeated every hour

I also thought playlist names should be unique ... though, I can't find any documentation to either support no refute this

General Shoutcast troubleshooting guide
  1. Ask a teenager
That should do it
jaromanda is offline   Reply With Quote
Old 6th May 2012, 07:50   #3
NitrofishRadio
Junior Member
 
Join Date: May 2012
Posts: 17
Thanks for the quick response... That worked to make the file play at the specified times, but I thought the start time was 00:00:00 Midnight. then continue to repeat?
NitrofishRadio is offline   Reply With Quote
Old 6th May 2012, 08:22   #4
jaromanda
Major Dude
 
jaromanda's Avatar
 
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
reading the "manual", it says, in the case of periodic repeat, starttime is the period, offset is the offset from midnight of the first trigger

General Shoutcast troubleshooting guide
  1. Ask a teenager
That should do it
jaromanda is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump