mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
NOAA decommissioned weather.noaa.gov
Change weather.noaa.gov -> tgftp.nws.noaa.gov
This commit is contained in:
parent
6eeb457fc2
commit
2d95020da7
4 changed files with 12 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Copyright (C) 2006 Lars Strand
|
||||
#
|
||||
# Plugin to fetch temperature from weather.noaa.gov
|
||||
# Plugin to fetch temperature from tgftp.nws.noaa.gov
|
||||
#
|
||||
# Parameters supported:
|
||||
#
|
||||
|
@ -16,7 +16,7 @@
|
|||
use strict;
|
||||
|
||||
my $usehum = $ENV{humidity} || undef; # set to "yes" to enable humidity
|
||||
my $wcode = $ENV{wcode} || "ENGM"; # Find areacode here http://weather.noaa.gov/
|
||||
my $wcode = $ENV{wcode} || "ENGM"; # Find areacode here http://tgftp.nws.noaa.gov/
|
||||
my $unit = $ENV{unit} || "C"; # "C" = Celsius, "F" = Fahrenheit
|
||||
my $proxy = $ENV{proxy} || undef; # Example: "http://proxy.foo.bar:8080/"
|
||||
|
||||
|
@ -41,7 +41,7 @@ if ($0 =~ /^(?:|.*\/)temperature_([^_]+)$/) {
|
|||
}
|
||||
|
||||
|
||||
my $datasource = "http://weather.noaa.gov/pub/data/observations/metar/decoded/$wcode.TXT";
|
||||
my $datasource = "http://tgftp.nws.noaa.gov/data/observations/metar/decoded/$wcode.TXT";
|
||||
|
||||
my $ua = LWP::UserAgent->new(timeout => 30);
|
||||
$ua->agent('Munin');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue