ndfd.pl File Reference

Go to the source code of this file.

Functions

 our ($opt_v, $opt_t, $opt_T, $opt_l, $opt_u, $opt_d)
 getopts ('Tvtlu:d:')
 if (defined $opt_v)
 my ($latitude, $longitude)
 if (!(defined $opt_u &&defined $latitude &&defined $longitude &&$latitude ne""&&$longitude ne""))
 if (open(CACHE,"$dir/ndfd_cache_${latitude}_${longitude}"))
 if ($getData)
printf updatetime::Last
Updated on s 
UnixDate ($creationdate,"%b %d, %I:%M %p %Z")
foreach $time (sort(keys(%$result)))
 return ($lat, $lon)
 if ($lat eq 'NA'||$lon eq 'NA')

Variables

package main
use strict
use NDFDParser
use NWSLocation
my $name = 'NDFD-6_day'
my $version = 0.1
my $author = 'Lucien Dunning'
my $email = 'ldunning@gmail.com'
my $updateTimeout = 15*60
my $retrieveTimeout = 30
my types
my $dir = './'
my $locstr = shift
my $units = $opt_u
my $param
my $d1 = UnixDate("8am tomorrow", "%O")
my $d2 = UnixDate(DateCalc($d1, "+ 168 hours"), "%O")
my $result
my $creationdate
my $nextupdate
my $getData = 1
my $lowindex = 0
my $hiindex = 0
my $dateindex = 0
my $iconindex = 0
my dates
my $time
my $date
printf updatetime::Last
Updated on s 
n
my $location = $results->[0]
 $lat = $location->{latitude}
 $lon = $location->{longitude}


Function Documentation

our ( opt_v,
opt_t,
opt_T,
opt_l,
opt_u,
opt_d 
)

getopts ( 'Tvtlu:d:'   ) 

if ( defined $  opt_v  ) 

Definition at line 30 of file ndfd.pl.

my ( latitude,
longitude 
)

if ( defined $opt_u &&defined $latitude &&defined $longitude &&$latitude ne""&&$longitude ne""  ) 

Definition at line 67 of file ndfd.pl.

if ( open(CACHE,"$dir/ndfd_cache_${latitude}_${longitude}")   ) 

Definition at line 94 of file ndfd.pl.

if ( getData  ) 

Definition at line 111 of file ndfd.pl.

printf updatetime::Last Updated on s UnixDate ( creationdate,
"%b %  d,
%I:%M%p%Z"   
)

Type Constraints

foreach $time ( sort(keys(%$result))   ) 

Definition at line 144 of file ndfd.pl.

return ( lat,
lon 
)

if ( $lat eq 'NA'||$lon eq 'NA'   ) 

Definition at line 247 of file ndfd.pl.


Variable Documentation

package main

use strict

Definition at line 7 of file ndfd.pl.

Definition at line 9 of file ndfd.pl.

Definition at line 10 of file ndfd.pl.

my $name = 'NDFD-6_day'

Definition at line 16 of file ndfd.pl.

my $version = 0.1

Definition at line 17 of file ndfd.pl.

my $author = 'Lucien Dunning'

Definition at line 18 of file ndfd.pl.

my $email = 'ldunning@gmail.com'

Definition at line 19 of file ndfd.pl.

my $updateTimeout = 15*60

Definition at line 20 of file ndfd.pl.

my $retrieveTimeout = 30

Definition at line 21 of file ndfd.pl.

my types

Initial value:

 ('3dlocation', '6dlocation',  'updatetime', 
        'high-0', 'high-1', 'high-2', 'high-3', 'high-4', 'high-5',
        'low-0', 'low-1', 'low-2', 'low-3', 'low-4', 'low-5',
        'icon-0', 'icon-1', 'icon-2', 'icon-3', 'icon-4', 'icon-5',
        'date-0', 'date-1', 'date-2', 'date-3', 'date-4', 'date-5')

Definition at line 22 of file ndfd.pl.

my $dir = './'

Definition at line 27 of file ndfd.pl.

my $locstr = shift

Definition at line 64 of file ndfd.pl.

my $units = $opt_u

Definition at line 65 of file ndfd.pl.

my $param

Initial value:

 { maxt => 1,
    mint =>1,
    temp =>0,
    dew=>0,
    pop12=>0,
    qpf=>0,
    sky=>0,
    snow=>0,
    wspd=>0,
    wdir=>0,
    wx=>0, 
    waveh=>0,
    icons=>1,
    rh=>0,
    appt=>0 }

Definition at line 72 of file ndfd.pl.

my $d1 = UnixDate("8am tomorrow", "%O")

Definition at line 88 of file ndfd.pl.

my $d2 = UnixDate(DateCalc($d1, "+ 168 hours"), "%O")

Definition at line 89 of file ndfd.pl.

my $result

my $creationdate

Definition at line 91 of file ndfd.pl.

my $nextupdate

Definition at line 92 of file ndfd.pl.

my $getData = 1

Definition at line 93 of file ndfd.pl.

my $lowindex = 0

Definition at line 133 of file ndfd.pl.

my $hiindex = 0

Definition at line 134 of file ndfd.pl.

my $dateindex = 0

Definition at line 135 of file ndfd.pl.

my $iconindex = 0

Definition at line 136 of file ndfd.pl.

my dates

Definition at line 137 of file ndfd.pl.

Referenced by AppearanceSettings::AppearanceSettings().

my $time

Definition at line 138 of file ndfd.pl.

Referenced by $time(), and MythTV::MythToUnix().

my $date

Definition at line 139 of file ndfd.pl.

$lon n

Definition at line 141 of file ndfd.pl.

my $location = $results->[0]

Definition at line 244 of file ndfd.pl.

$lat = $location->{latitude}

Definition at line 245 of file ndfd.pl.

$lon = $location->{longitude}

Definition at line 246 of file ndfd.pl.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5