|
MythTV
0.27pre
|
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} | |
| our | ( | $opt_v, | |
| $opt_t, | |||
| $opt_T, | |||
| $opt_l, | |||
| $opt_u, | |||
| $opt_d | |||
| ) |
| getopts | ( | 'Tvtlu:d:' | ) |
| my | ( | $latitude, | |
| $longitude | |||
| ) |
| if | ( | ! | defined $opt_u &&defined $latitude &&defined $longitude &&$latitude ne""&&$longitude ne"" | ) |
| if | ( | open(CACHE,"$dir/ndfd_cache_${latitude}_${longitude}") | ) |
| printf updatetime::Last Updated on s UnixDate | ( | $creationdate, | |
| "%b % | d, | ||
| %I:%M%p%Z" | |||
| ) |
| return | ( | $lat, | |
| $lon | |||
| ) |
| use lib usr share mythtv mythweather scripts usr local share mythtv mythweather scripts us_nws |
| my types |
| my $param |
| my dates |
Definition at line 149 of file ndfd.pl.
Referenced by $time(), AppearanceSettings::AppearanceSettings(), and Parse::GetDCDateTime().
1.8.1.2