bmasti Posted June 6, 2011 Share Posted June 6, 2011 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 More sharing options...
countrywesterndj Posted June 7, 2011 Share Posted June 7, 2011 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 More sharing options...
bmasti Posted June 7, 2011 Author Share Posted June 7, 2011 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 More sharing options...
countrywesterndj Posted June 7, 2011 Share Posted June 7, 2011 I have no clue what you just said. 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 More sharing options...
bmasti Posted June 7, 2011 Author Share Posted June 7, 2011 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 More sharing options...
andhow Posted June 7, 2011 Share Posted June 7, 2011 Bmasti, you might be better off checking here: http://support.spacialnet.com/forums/viewtopic.php?f=23&t=33586&hilit=remote 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 More sharing options...
bmasti Posted June 7, 2011 Author Share Posted June 7, 2011 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 More sharing options...
bmasti Posted June 7, 2011 Author Share Posted June 7, 2011 Bmasti, you might be better off checking here: http://support.spacialnet.com/forums/viewtopic.php?f=23&t=33586&hilit=remote 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 More sharing options...
countrywesterndj Posted June 8, 2011 Share Posted June 8, 2011 @bmasti .. yes, your corrections are good, it should work. @andhow .. there's no need to send him elsewhere. I was helping him out, and will continue to help him out. 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 More sharing options...
andhow Posted June 8, 2011 Share Posted June 8, 2011 @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 More sharing options...
bmasti Posted June 8, 2011 Author Share Posted June 8, 2011 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 More sharing options...
SmoothJazz Posted June 8, 2011 Share Posted June 8, 2011 Yes SAM uses the 24 hour clock so your 9-10PM times are correct. It would be easier to maintian if you Just saved another verion of the PAL with different times and call it something else. http://5280jazz.com/nowplaying_image/5280jazz.png Rob Oyler 5280 Jazz Link to comment Share on other sites More sharing options...
bmasti Posted June 8, 2011 Author Share Posted June 8, 2011 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 More sharing options...
countrywesterndj Posted June 8, 2011 Share Posted June 8, 2011 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 More sharing options...
bmasti Posted June 13, 2011 Author Share Posted June 13, 2011 thanks for help my dear friend u save my life heheh the best support i get on BW thanks CWDJ :D Link to comment Share on other sites More sharing options...
bmasti Posted June 13, 2011 Author Share Posted June 13, 2011 will it work everyday ? cos im going out for few days and want it to work on same time everyday Link to comment Share on other sites More sharing options...
countrywesterndj Posted June 13, 2011 Share Posted June 13, 2011 Use the Event Scheduler to have it run multiple times. 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 More sharing options...
bmasti Posted June 15, 2011 Author Share Posted June 15, 2011 thankyou very much is there anything i can do for u? or donation or anything els ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.