Jump to content

RemoteShow pal script error help!!!!!!!!


bmasti

Recommended Posts

Hi i have setup this script but its not playing on time even when i add it in it start auto and stop current songs in list and start playing which i dont want i want this link should work 7 to 9am everyday only also please remove song part playing if stream is down help please if its possible.

 

 

{ About:

This script will play a remote show inside SAM

The show starts at a specified time, and then ends at

another specified time.

 

The script also contains some error-correction code

that will attempt to connect to the stream up to 20 times

in case it goes down. We schedule one song between each attempt.

 

Usage:

a) Comple configuration below and start PAL script.

b) If this show is only in certain days you will need to modify the script to

only queue the show up during these days.

See the DayOfWeek function.

}

{ CONFIGURATION }

{==================================================}

const ShowURL = 'http://sgpc.net:8000/';

const StartTime = '7:00:00';

const EndTime = '9:00:00';

 

{ IMPLEMENTATION }

{--------------------------------------------------}

var T : Integer;

PAL.Loop := False;

 

{Wait for the show to start}

PAL.WaitForTime(StartTime);

 

{Add show to queue}

Queue.AddURL(ShowURL,ipTop);

 

{Fade to show}

ActivePlayer.FadeToNext;

 

{Precautions - if there is a brief disconnect or server problem,

then we would want to retry a few times to get back to the show.

To do this we place the URL quite a few times in the queue, followed

by some normal programmming. That way we will try and reconnect until

the end of the show}

 

T := 0;

while T

begin

Queue.AddURL(ShowURL,ipBottom);

CAT['Tracks'].QueueBottom(smLRP,EnforceRules);

T := T + 1;

end;

 

 

 

{Wait for show to end}

PAL.WaitForTime(EndTime);

 

{Clear queue}

Queue.Clear;

 

{Fade to normal programming}

ActivePlayer.FadeToNext;

 

{--------------------------------------------------}

Link to comment
Share on other sites

Seems like I wrote this script 8 years ago. Amazing how it changed.

 

Putting the song(s) and URL at the bottom is self defeating. It must be put at the top of the queue so in case the URL fails, it will try again. Putting them at the bottom won't have it repeat, but will continue with regular songs.

 

I changed it and I tested it and it works. Try this:

 

{ about:
This script will play a remote show inside SAM
The show starts at a specified time, and then ends at
another specified time.

The script also contains some error-correction code
that will attempt to connect to the stream up to 20 times
in case it goes down. We schedule one song between each attempt.

Usage:
a) Compile configuration below and start PAL script.
b) If this show is only in certain days you will need to modify the script to
only queue the show up during these days.
See the DayOfWeek function.
}
{ CONFIGURATION }
{================================================= =}
const ShowURL = 'http://sgpc.net:8000/';
const StartTime = '07:00:00';
const EndTime = '09:00:00';

{ IMPLEMENTATION }
{--------------------------------------------------}
var T : Integer;
PAL.Loop := False;

{Wait for the show to start}
PAL.WaitForTime(StartTime);

{Add show to queue}
Queue.AddURL(ShowURL,ipTop);

{Fade to show}
ActivePlayer.FadeToNext;

{Precautions - if there is a brief disconnect or server problem,
then we would want to retry a few times to get back to the show.
To do this we place the URL quite a few times in the queue, followed
by some normal programmming. That way we will try and reconnect until
the end of the show}

T := 0;
while T 
begin
Queue.AddURL(ShowURL,ipTop);
//
// You don't need to put songs in the queue.  You want the URL !!
//CAT['Tracks'].QueueBottom(smLRP,EnforceRules);

T := T + 1;
end;

{Wait for show to end}
PAL.WaitForTime(EndTime);

{Clear queue}
Queue.Clear;

{Fade to normal programming}
ActivePlayer.FadeToNext;

{--------------------------------------------------}

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

thanks for a big help can u please modify little bit more what i need it just add link on 7 to 9 in list and 9am it should stop and let play other songs which in list i dont want repeat it even stream link work or not please help when i compile it and click on run it start auto and add link in list why ? cos its 11am here not 7am it should run 7 to 9am sorry im new with scripts. please fix this issue
Link to comment
Share on other sites

hi sorry i was confused what i dont want is this

 

if there is a brief disconnect or server problem,

then we would want to retry a few times to get back to the show.

To do this we place the URL quite a few times in the queue

 

 

i dont want it put url in que more then one time even if stream not working let it play normal Que list

also i want to play this url 2 hours from 7am to 9 am but it was playing on night is something wrong ?

 

hope u understand what i mean

Link to comment
Share on other sites

Reverend Aquaman | Station Manager | andHow.FM

Where it's *ALL* about the music!

A world-class, always eclectic, commercial-free, alternative, modern, retro, indie rock radio station.

Jamming the free world, one person at a time since 1998. Got Indie?

Link to comment
Share on other sites

i just modify it can u pleas check is this what i need ?

 

 

 

{ about:

This script will play a remote show inside SAM

The show starts at a specified time, and then ends at

another specified time.

 

The script also contains some error-correction code

that will attempt to connect to the stream up to 20 times

in case it goes down. We schedule one song between each attempt.

 

Usage:

a) Comple configuration below and start PAL script.

b) If this show is only in certain days you will need to modify the script to

only queue the show up during these days.

See the DayOfWeek function.

}

{ CONFIGURATION }

{================================================= =}

const ShowURL = 'http://kirtan.punjabiradionorway.com';

const StartTime = '07:00:00';

const EndTime = '09:00:00';

 

{ IMPLEMENTATION }

{--------------------------------------------------}

var T : Integer;

PAL.Loop := False;

 

{Wait for the show to start}

PAL.WaitForTime(StartTime);

 

{Add show to queue}

Queue.AddURL(ShowURL,ipTop);

 

{Fade to show}

ActivePlayer.FadeToNext;

 

{Precautions - if there is a brief disconnect or server problem,

then we would want to retry a few times to get back to the show.

To do this we place the URL quite a few times in the queue, followed

by some normal programmming. That way we will try and reconnect until

the end of the show}

 

{Wait for show to end}

PAL.WaitForTime(EndTime);

 

{Fade to normal programming}

ActivePlayer.FadeToNext;

 

{--------------------------------------------------}

Link to comment
Share on other sites

 

 

hi dear friend i have problem in understanding so can u make me one or can u check what i just post is this ok ?

 

i dont want any loop , dont want to clear my song que list just want to stream one link 7am to 9am and it should stop 9 and continue with my song list after 9am

 

 

if link not working it let my songs list play normal just fade off to next songs if stream not working thanks

Link to comment
Share on other sites

@andhow .. there's no need to send him elsewhere. I was helping him out, and will continue to help him out.

 

Lovely. Good on ya mate.

Reverend Aquaman | Station Manager | andHow.FM

Where it's *ALL* about the music!

A world-class, always eclectic, commercial-free, alternative, modern, retro, indie rock radio station.

Jamming the free world, one person at a time since 1998. Got Indie?

Link to comment
Share on other sites

thanks friend for supporting me :D one last thing

 

const StartTime = '07:00:00';

const EndTime = '09:00:00';

 

 

what if i want to run it on 9 to 10 on night so how can i put the time

 

 

const StartTime = '21:00:00';

const EndTime = '22:00:00';

 

like this ?? or some other format

 

 

 

and how to do it if i want to put 2 stream time in one pal

 

 

like if i want to run this in the morning and in the night

 

same time 7 to 9am and 9 to 10pm is this possible ?

Link to comment
Share on other sites

its still not working i just added the pal to sam as soon i added it start playing i dunno why n it stop it should keep running and play on list 7 to 9am can look in pic

 

http://i51.tinypic.com/5mfyhf.png

 

this is the script im running

 

 

 

{ about:

This script will play a remote show inside SAM

The show starts at a specified time, and then ends at

another specified time.

 

The script also contains some error-correction code

that will attempt to connect to the stream up to 20 times

in case it goes down. We schedule one song between each attempt.

 

Usage:

a) Comple configuration below and start PAL script.

b) If this show is only in certain days you will need to modify the script to

only queue the show up during these days.

See the DayOfWeek function.

}

{ CONFIGURATION }

{================================================= =}

const ShowURL = 'http://kirtan.punjabiradionorway.com';

const StartTime = '07:00:00';

const EndTime = '09:00:00';

 

{ IMPLEMENTATION }

{--------------------------------------------------}

var T : Integer;

PAL.Loop := False;

 

{Wait for the show to start}

PAL.WaitForTime(StartTime);

 

{Add show to queue}

Queue.AddURL(ShowURL,ipTop);

 

{Fade to show}

ActivePlayer.FadeToNext;

 

{Precautions - if there is a brief disconnect or server problem,

then we would want to retry a few times to get back to the show.

To do this we place the URL quite a few times in the queue, followed

by some normal programmming. That way we will try and reconnect until

the end of the show}

 

{Wait for show to end}

PAL.WaitForTime(EndTime);

 

{Fade to normal programming}

ActivePlayer.FadeToNext;

 

{--------------------------------------------------}

Link to comment
Share on other sites

The time here matters. For example, if you issue a PAL.WaitForTime of 0900 hours (9 AM) and you run the script at 1130 hours (11:30 AM), the script will fail, as the time of 9 AM has past.

 

It will only wait for the time if you start the script BEFORE the wait time.

 

So, in your case, you must start it from 0001 hours through 0859 hours, or it will just fall through.

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...