MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Functions | Variables
ndfd.pl File Reference

Go to the source code of this file.

Functions

use lib dirname (abs_path($0 or $PROGRAM_NAME))
 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)

Variables

use English
use strict
use warnings
use Cwd abs_path
use lib usr share mythtv
mythweather scripts 
us_nws
use NDFDParser
use NWSLocation
my $name = 'NDFD-6_day'
my $version = 0.6
my $author = 'Gavin Hurlbut / Lucien Dunning'
my $email = 'gjhurlbu@gmail.com / ldunning@gmail.com'
my $updateTimeout = 15*60
my $retrieveTimeout = 30
my types
my $dir = './'
my $icon_file = "/icons"
my $locstr = shift
my $units = $opt_u
my $param
my $d1 = UnixDate("today at 8:00am", "%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

use lib dirname ( abs_path($0 or $PROGRAM_NAME)  )
our (   $opt_v,
  $opt_t,
  $opt_T,
  $opt_l,
  $opt_u,
  $opt_d 
)
getopts ( 'Tvtlu:d:'  )
if ( defined  $opt_v)

Definition at line 41 of file ndfd.pl.

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

Definition at line 78 of file ndfd.pl.

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

Definition at line 105 of file ndfd.pl.

if (   $getData)

Definition at line 122 of file ndfd.pl.

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

Referenced by $time(), and if().

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

Definition at line 158 of file ndfd.pl.

return (   $lat,
  $lon 
)

Variable Documentation

use English

Definition at line 6 of file ndfd.pl.

use strict

Definition at line 7 of file ndfd.pl.

use warnings

Definition at line 8 of file ndfd.pl.

use Cwd abs_path

Definition at line 11 of file ndfd.pl.

use lib usr share mythtv mythweather scripts usr local share mythtv mythweather scripts us_nws

Definition at line 13 of file ndfd.pl.

use NDFDParser

Definition at line 17 of file ndfd.pl.

use NWSLocation

Definition at line 18 of file ndfd.pl.

my $name = 'NDFD-6_day'

Definition at line 24 of file ndfd.pl.

my $version = 0.6

Definition at line 25 of file ndfd.pl.

my $author = 'Gavin Hurlbut / Lucien Dunning'

Definition at line 26 of file ndfd.pl.

my $email = 'gjhurlbu@gmail.com / ldunning@gmail.com'

Definition at line 27 of file ndfd.pl.

my $updateTimeout = 15*60

Definition at line 28 of file ndfd.pl.

my $retrieveTimeout = 30

Definition at line 29 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',
'copyright', 'copyrightlogo')

Definition at line 30 of file ndfd.pl.

my $dir = './'

Definition at line 36 of file ndfd.pl.

my $icon_file = "/icons"

Definition at line 37 of file ndfd.pl.

print swlocation::$locstr = shift

Definition at line 75 of file ndfd.pl.

Referenced by if().

my $units = $opt_u

Definition at line 76 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 83 of file ndfd.pl.

my $d1 = UnixDate("today at 8:00am", "%O")

Definition at line 99 of file ndfd.pl.

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

Definition at line 100 of file ndfd.pl.

my $result

Definition at line 101 of file ndfd.pl.

my $creationdate

Definition at line 102 of file ndfd.pl.

my $nextupdate

Definition at line 103 of file ndfd.pl.

my $getData = 1

Definition at line 104 of file ndfd.pl.

my $lowindex = 0

Definition at line 145 of file ndfd.pl.

my $hiindex = 0

Definition at line 146 of file ndfd.pl.

my $dateindex = 0

Definition at line 147 of file ndfd.pl.

my $iconindex = 0

Definition at line 148 of file ndfd.pl.

my dates

Definition at line 149 of file ndfd.pl.

Referenced by $time(), AppearanceSettings::AppearanceSettings(), and Parse::GetDCDateTime().

my $time

Definition at line 150 of file ndfd.pl.

my $date

Definition at line 151 of file ndfd.pl.

$lon n

Definition at line 153 of file ndfd.pl.

my $location = $results->[0]

Definition at line 252 of file ndfd.pl.

$lat = $location->{latitude}

Definition at line 253 of file ndfd.pl.

$lon = $location->{longitude}

Definition at line 254 of file ndfd.pl.