|
MythTV
0.26-pre
|
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) | |
| if (!(defined $opt_u &&defined $loc &&!$loc eq"")) | |
| foreach (@types) | |
Variables | |
| use | strict |
| use | warnings |
| use | English |
| use Cwd | abs_path |
| use lib usr share mythtv mythweather scripts | us_nws |
| use | NWSLocation |
| my | $name = 'NWS-XML' |
| my | $version = 0.3 |
| my | $author = 'Lucien Dunning' |
| my | $email = 'ldunning@gmail.com' |
| my | $updateTimeout = 15*60 |
| my | $retrieveTimeout = 30 |
| my | types |
| my | $dir = "./" |
| my | $icon_file = "/icons" |
| my | $loc = shift |
| my | $units = $opt_u |
| my | $base_url |
| die unless defined | $response |
| my | $xml = XMLin($response) |
| our | ( | $ | opt_v, |
| $ | opt_t, | ||
| $ | opt_T, | ||
| $ | opt_l, | ||
| $ | opt_u, | ||
| $ | opt_d | ||
| ) |
| getopts | ( | 'Tvtlu:d:' | ) |
| use NWSLocation |
('cclocation', 'station_id', 'latitude', 'longitude', 'observation_time', 'observation_time_rfc822', 'weather', 'temperature_string', 'temp', 'relative_humidity', 'wind_string', 'wind_dir', 'wind_degrees', 'wind_speed', 'wind_gust', 'pressure_string', 'pressure', 'dewpoint_string', 'dewpoint', 'heat_index_string', 'heat_index', 'windchill_string', 'windchill', 'visibility', 'weather_icon', 'appt', 'wind_spdgst', 'copyright')
| my $base_url |
1.7.6.1