Skip to Content
It is currently June 20th, 2018, 1:16 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: September 26th, 2008, 9:28 am 
Offline
Senior User
Senior User

Joined: February 21st, 2008, 1:16 pm
Posts: 198
Location: south eastern TN
Hi Everyone
i know i am probably not wording this correctly otherwise i would have found it in the search topics
but here goes... any direction would be helpful

last night i lost internet access for 11 hours
i was able to call my partner in another state and get her to putmusic into rotation where she is and play that
until i was back up again

wondering if there is a pal script that will recognize when a stream is down and starts the encoders at a remote location
( i am guessing that script has to be on the machine at the remote location)
if there is another way to do this outside of SAM
i am okay with that solution too!
just needing a push in the right direction
thanks in advance to any one taking the time to look and comment :D

_________________
talk, music, rants, raves, poetry.. LIFE!
http://www.radiodentata.com


Top
 Profile  
Reply with quote  
PostPosted: September 26th, 2008, 11:34 am 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
I'm pretty sure there's nothing built in to SAM that will do that.

Here's a thought...
Maybe you could test the status of the encoders and write that information to a text file or to some web app that would then trigger an e-mail. Or some web-like app could then use a WaitForEvent script to start the encoders.

It's a roundabout solution that I have no idea how to implement but it might give you some ideas.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
Reply with quote  
PostPosted: September 26th, 2008, 11:58 am 
Offline
Senior User
Senior User

Joined: February 21st, 2008, 1:16 pm
Posts: 198
Location: south eastern TN
hmmm interesting thought thanks Stan

so what does everyone do if they lose power?
how do they keep their stations live?

_________________
talk, music, rants, raves, poetry.. LIFE!
http://www.radiodentata.com


Top
 Profile  
Reply with quote  
PostPosted: September 26th, 2008, 12:37 pm 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
UPS until the battery dies. :) But odds are the power's out to the modem so you're pretty much off the air anyway you hack it.

The solution I suggested, btw, only works if your SAM is running and an encoder stops for some reason. If SAM is down hard you're somewhat out luck.

Another thought would be to have something at your backup station periodically ping the "regular" SAM machine. If it can't get through, it assumes SAM is down and makes the switch. This has obvious drawbacks as the SAM machine being down is not the only reason you might not get through. Just another weird potential solution.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
Reply with quote  
PostPosted: September 26th, 2008, 1:02 pm 
Offline
Alumni
Alumni

Joined: March 11th, 2003, 1:34 pm
Posts: 9959
Location: Maui, HI
Quote:
so what does everyone do if they lose power?
how do they keep their stations live?

Try looking for a co-location host; they don't have to be local but it helps.
One that has generator backup power and is a data-center for one or more ISPs is useful.

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
Reply with quote  
PostPosted: September 27th, 2008, 3:23 am 
Offline
Senior User
Senior User

Joined: May 31st, 2007, 4:13 pm
Posts: 198
Radiotoolbox utility has email notification when your stream goes down ;)


It works fairly quick.


I realize that this will not restart your stream for you but it at least let's you know that there is a problem.

_________________
www.RockRadio1.Com


Top
 Profile  
Reply with quote  
PostPosted: October 3rd, 2008, 10:08 am 
Offline
Senior User
Senior User

Joined: February 21st, 2008, 1:16 pm
Posts: 198
Location: south eastern TN
hi guys
the problem was that internet was out for the entire area
so the call to my partner in KS got us up again quickly
i was told from calling support that i could try another location with content loaded

so synchronizing will be an issue
also grabbing the station back

i am guessing i would need remote access to that comptuer to stop the encoders

_________________
talk, music, rants, raves, poetry.. LIFE!
http://www.radiodentata.com


Top
 Profile  
Reply with quote  
PostPosted: October 4th, 2008, 6:03 pm 
Offline
Junior User
Junior User

Joined: October 4th, 2008, 12:35 pm
Posts: 39
Location: Kaufbeuren, Germany
I once wrote a little PAL for situations like that. The basic idea is that you have a »backup SAM« ready for operation sitting somewhere in the world that watches your stream and kicks in if the stream stops.

We mainly used that for unplanned interruptions and for the (unmanned) »night shifts«—the late night presenter had the option to continue his show as long as he wanted after midnight, then stop his encoder and the »backup SAM« would continue with some automated program until the »morning guy« came in and took over.

In order for all this to work we also used a little PHP on the station's server that could kick the stream and would be triggered by my PAL script. (This only needed for a multi-DJ setup since we didn't want to give a presenter/DJ the passwords for the stream server.)

If you know a little PAL, the basic idea was to have the backup SAM running at all times (with a good radio automation setup), have a »Statistics Relay« set up for your main stream that it watches permanently and if that goes down, kick the stream (just to be sure, or to also stop sub-streams), start it's own encoder, setup a playlist, start the decks, and voilà! Here we go 24/7.

Here’s part of the »watch code« to give you an idea:
Code:
var RelaysToWatch : Array of Integer = [1]; // Statistic Relay numbers as shown in SAM
PAL.Loop := True; // auto restart script when finished

var i : Integer;
var Failed : Integer = 0;

PAL.LockExecution;
writeln('*** StreamWatcher active. ***');

// Watch specified Relay(s) for inactivity

while Failed = 0 do
begin
  PAL.WaitForTime(T['+00:02:00']); // Wait 2 minutes
  if RelaysToWatch.Length > 0 then
  begin
    for i := RelaysToWatch.Low to RelaysToWatch.High do
    begin
      if Relays[RelaysToWatch[i]-1].Active = false then
      begin
        Failed := RelaysToWatch[i];
      end;
      writeln('Relay #' + IntToStr(RelaysToWatch[i]) + ': ' + Relays[RelaysToWatch[i]-1].Status);
    end;
  end;
end;

writeln('*** Relay #' + IntToStr(Failed) + ' inactive, trying to go On Air ***');

_________________
Moonbase: The Problem Solver
I will not give any support for unlicensed or pirated software.


Top
 Profile  
Reply with quote  
PostPosted: May 8th, 2012, 10:02 pm 
Offline
New User
New User

Joined: May 8th, 2012, 9:55 pm
Posts: 1
Hello I need help with exactly this script. Can u post the complete working version please.

I need to pick radio when a dj finishes their show, but automatically using a pal script (without me being there).

please please please ( :| :| )

Regards,
Nas.


Top
 Profile  
Reply with quote  
PostPosted: May 9th, 2012, 12:32 am 
Offline
Junior User
Junior User

Joined: November 25th, 2010, 9:37 am
Posts: 46
I dont think a solution written in PAL could give a good help because SAM machine could be one of the reasons.
In my case having a broadcaster infrastructure behind a firewall on a local network. Also have a broadcaster server somewhere in a server park to relay my stream for listeners. In total it means 4 servers. We have the luck having more machines for backup purposes, so I included one of them to this "check" cycle. So, finally 5 servers are playing together behind 3 different internet connections. Each server doing checks in every minutes, checks wether the rest of the infrastructure works properly or not. In case of any problem sending a mail to my mobile. I found that solution good enough to have exact info in time if anything happens with the stream or machines.
Of course, I know that not everyone could have such a complex infrastructure. What I wanted to point to, is not more than a PAL solution probably not enough, a third party solution (sitting outside of your broadcasting infrastructure) is really needed. If this can not be done "within the house" is better to search for a servive, even if is not free.


Top
 Profile  
Reply with quote  
PostPosted: May 9th, 2012, 12:40 am 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4690
Location: Los Angeles - A Little West Of Nashville
A few ways to do this:
  • If you use Centovacast, it can be configured to automatically pick up the stream (switch to remote Auto DJ) if it detects dead air
  • Your can use Radio Tool Box to send you a message if your stream goes down
  • You can use Stream Verify to send you a SMS and / or e-mail if your stream goes south

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group