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
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
"""
|
||||
munin US NOAA weather plugin (http://weather.noaa.gov)
|
||||
munin US NOAA weather plugin (http://tgftp.nws.noaa.gov)
|
||||
|
||||
Draws temperature/dew point in C.
|
||||
Copy/link file as 'weather_temp_CODE', like: weather_temp_LOWW for Austria, Vienna.
|
||||
|
||||
Get the code by going to http://weather.noaa.gov, selecting your
|
||||
Get the code by going to http://tgftp.nws.noaa.gov, selecting your
|
||||
location, and copying the code from the address bar of your browser; should
|
||||
be something like CODE.html.
|
||||
|
||||
|
@ -16,7 +16,7 @@ import sys
|
|||
import urllib
|
||||
import re
|
||||
|
||||
url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT'
|
||||
url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
|
||||
re_C = re.compile('Temperature:.*\((-?\d+\.?\d?) C\)')
|
||||
re_DewC = re.compile('Dew.*\((-?\d+\.?\d?) C\)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue