PDA

View Full Version : Echolink Status for Websites



N5UBY
06-04-2011, 09:43 PM
Anyone know of a way to display a current status of my echolink node on my web page?

K0RGR
06-06-2011, 02:11 AM
I looked on the EchoLink Addon website for anything that might work for this, and came up empty. I don't know if anything in the EchoLInk API's could be used for this purpose.

N5UBY
06-07-2011, 05:03 PM
Thanks .. I have been looking around for something like this but have not found it. I may throw it out on a yahoo forum for the addons and see if there's a programmer that knows API to look into it.

HB9EDI
09-02-2011, 11:36 AM
I have found this code a while ago and it works fine.


<?php

$node = $_GET["node"];
$callsign = $_GET["callsign"];


$suche = '<td>'.$callsign.'(.*)</td>';



echo 'Node: '.$node.' <br> Call: '.$callsign.'<br>';

$file = fopen ("http://www.echolink.org/logins.jsp", "r");
if (!$file) {
echo "<b>ERROR</b>";
exit;
}
$status = 'OFFLINE';
while (!feof ($file)) {
$line = fgets ($file, 1024);
if (eregi ($suche , $line, $out)) {
if(stristr($out[1], '>BUSY<') !== FALSE) {
$status = 'BUSY';
}
if(stristr($out[1], '>ON<') !== FALSE) {
$status = 'ONLINE';
}

break;
}
}
echo 'Status: <b>'.$status.'</b>';
fclose($file);
?>

call the script in this way : http://www/echolink.php?callsign=HB9AC-R&node=235967 and it will return the status of your Node.
allow_url_fopen needs to ba activated in PHP for the script to work and this is often disable by the hoster.

N5UBY
09-20-2011, 02:14 PM
OK, thanks for reply, however I am not overly PHP pro type.... I have created an echolink.php on my server with the code above. in the index.html I added


<script language="JavaScript" type="text/javascript" src="http://www/echolink.php?callsign=HB9AC-R&node=235967"
</script>

I also changed the http://www/echolink etc to my http://servername.org etc. .

Script works great from the browser command line.

allow_url_fopen is set to ON Am I calling it wrong? Thanks for the information.

If I can get it working on my "Play" server, I would like to then get it working on blogspot some how where my page is officially hosted. But for now just want to get it working on my Apache server I have at the house.

Jeffrey Worth. N5UBY

N5UBY
09-20-2011, 03:55 PM
<object width="400" height="300" type="text/html" data="http://www/echolink.php?callsign=HB9AC-R&node=235967"></object>

put in the index.html file works great! Thanks for all the help!

KB9HGI
09-23-2011, 06:11 AM
how would you add this to a webpage on qsl.net