+28Oct00=======================================================================
+1. updated show/sun and show/moon from stuff sent by Steve Franke K9
+2. added show/call which queries jeifer.pineknot.com for any call in the
+world (as opposed to UALR which only does US calls). Inspired by a bit of
+perl sent to me by Steve Franke (again!) and also Angel EA7WA who gave me the
+pineknot ip address.
27Oct00=======================================================================
1. alter the code in clean_old of DXMsg system to see if we get some different
behaviour with random crashing
--- /dev/null
+#
+# Query the PineKnot Database server for a callsign
+#
+# from an idea by Steve Franke K9AN and information from Angel EA7WA
+#
+# $Id$
+#
+my ($self, $line) = @_;
+my @list = split /\s+/, $line; # generate a list of callsigns
+my $l;
+my @out;
+
+use Net::Telnet;
+
+my $t = new Net::Telnet;
+
+push @out, $self->msg('call1');
+foreach $l (@list) {
+ $t->open(Host => "jeifer.pineknot.com",
+ Port => 1235,
+ Timeout => 5);
+ if ($t) {
+ $t->print(uc $l);
+ while (my $result = $t->getline) {
+ push @out,$result;
+ }
+ $t->close;
+ } else {
+ push @out, $self->msg('e18', 'PineKnot');
+ }
+}
+
+return (1, @out);
#!/usr/bin/perl
#
-# show sunrise and sunset times for each callsign or prefix entered
+# show moonrise and moonset times for each callsign or prefix entered
#
# 1999/11/9 Steve Franke K9AN
-#
+# 2000/10/27 fixed bug involving degree to radian conversion.
my ($self, $line) = @_;
my @list = split /\s+/, $line;
foreach $l (@list) {
my $user = DXUser->get_current(uc $l);
if ($user && $user->lat && $user->long) {
- push @in, [$user->qth, $user->lat * $d2r, $user->long * -$d2r, uc $l ];
+ push @in, [$user->qth, $user->lat, -$user->long, uc $l ];
} else {
# prefixes --->
my @ans = Prefix::extract($l);
# show sunrise and sunset times for each callsign or prefix entered
#
# 1999/11/9 Steve Franke K9AN
-#
+# 2000/10/27 fixed bug involving degree to radian conversion.
my ($self, $line) = @_;
my @list = split /\s+/, $line;
foreach $l (@list) {
my $user = DXUser->get_current(uc $l);
if ($user && $user->lat && $user->long) {
- push @in, [$user->qth, $user->lat * $d2r, $user->long * -$d2r, uc $l ];
+ push @in, [$user->qth, $user->lat, -$user->long, uc $l ];
} else {
# prefixes --->
my @ans = Prefix::extract($l);
bbs => 'Your BBS Address is now \"$_[0]\"',
beepoff => 'Beeps are now off',
beepon => 'Beeps are now on',
+ call1 => 'Callsign lookup via Pineknot:',
conother => 'Sorry $_[0] you are connected on another port',
concluster => 'Sorry $_[0] you are already connected elsewhere on the cluster',
conscript => 'no connect script called \"$_[0]\" found in $main::root/connect',
e15 => 'invalid qualifier \"$_[0]\"',
e16 => 'File \"$_[0]\" exists',
e17 => 'Please don\'t use the words: @_ on here',
+ e18 => 'Cannot connect to $_[0] ($!)',
echoon => 'Echoing enabled',
echooff => 'Echoing disabled',