mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
fix(weather_press_/temp_): Use https
In 2023, it should be the default to use an encrypted connection, which totally is supported by the data-source.
This commit is contained in:
parent
05d820334a
commit
d8b4732c4a
2 changed files with 6 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
munin US NOAA weather plugin (http://tgftp.nws.noaa.gov)
|
||||
munin US NOAA weather plugin (https://tgftp.nws.noaa.gov)
|
||||
|
||||
Draws pressure in hPa.
|
||||
Copy/link file as 'weather_pressure_CODE', like: weather_pressure_LOWW for Austria, Vienna.
|
||||
|
||||
Get the code by going to http://tgftp.nws.noaa.gov, selecting your
|
||||
Get the code by going to https://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
|
|||
from urllib.request import urlopen
|
||||
import re
|
||||
|
||||
url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
url = 'https://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
|
||||
re_hpa = re.compile(r'Pressure.*\((\d+) hPa\)')
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
"""
|
||||
munin US NOAA weather plugin (http://tgftp.nws.noaa.gov)
|
||||
munin US NOAA weather plugin (https://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://tgftp.nws.noaa.gov, selecting your
|
||||
Get the code by going to https://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
|
|||
from urllib.request import urlopen
|
||||
import re
|
||||
|
||||
url = 'http://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
url = 'https://tgftp.nws.noaa.gov/data/observations/metar/decoded/%s.TXT'
|
||||
|
||||
re_C = re.compile(r'Temperature:.*\((-?\d+\.?\d?) C\)')
|
||||
re_DewC = re.compile(r'Dew.*\((-?\d+\.?\d?) C\)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue