[OZAPRS] ACARS <----> APRS

Andrew Rich vk4tec at tech-software.net
Sun May 21 03:40:01 EST 2006


For those who are intersted, I am playing with ACARS and APRS.

I will plot planes on my APRS screen.  Anyone good at xml in perl ? 

Here is a pre-lim perl script to connect and extract ACARS data.

#!/usr/bin/perl
use Net::Telnet;
my $host ="71.116.161.119";
my $user = "";
my $password = "";
my $prompt = "";
my (@data, $line);
my $t = new Net::Telnet(Timeout => '5',port => '2202');
$t->errmode('return');
$t->Net::Telnet::open($host);
while (<$t>)
{
open (outfile, ">> /maint/scripts/acars.dat");
print outfile $_;
close(outfile);
if (m/AircraftReg/)
{
print;
}
if (m/\<North\>/)
{
print;
}
if (m/\<West\>/)
{
print;
}
if (m/\<South\>/)
{
print;
}
if (m/\<East\>/)
{
print;
print "------------------------------ \n";
}
}                                                                


-----------------------------------------
Andrew Rich
Amateur radio callsign VK4TEC
email: vk4tec at tech-software.net
web: http://www.tech-software.net
Brisbane AUSTRALIA 

_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs



More information about the Ozaprs mailing list