remove $Id$ strings from everywhere that I can find
[spider.git] / cmd / show / wwv.pl
index a8e4992a9e896a30f66cab9d35c51225dd97cbe3..fbb7fac32cb10705debe5979c2b513d71e276122 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Copyright (c) 1998 - Dirk Koopman G1TLH
 #
-# $Id$
+#
 #
 my $self = shift;
 
@@ -21,13 +21,17 @@ while ($f = shift @f) {                 # next field
                next if $from && $to > $from;
        }
        if (!$to) {
-               ($to) = $f =~ /^(\d+)$/o if !$to;              # is it a to count?
+               ($to) = $f =~ /^(\d+)$/o;              # is it a to count?
                next if $to;
        }
 }
 
-$to = 10 if !$to;
+$from = 1 unless $from;
+$to = 5 unless $to;
 
-push @out, "Date        Hour   SFI   A   K Forecast                               Logger";
-push @out,  Geomag::print($from, $to, $main::systime);
+push @out, $self->msg('wwv3');
+my @in = Geomag::search($from, $to, $main::systime);
+for (@in) {
+       push @out, Geomag::print_item($_);
+}
 return (1, @out);