Add weather zone hkz000 for Hong Kong Observatory
Thanks to Bill Agee for suggesting the Hong Kong Observatory's weather forecast page. A custom filter is implemented to strip the forecast text from the HTML page in which it is embedded (if anyone finds a plaintext version published at an alternate URL, let me know and I'll rip out the extra routine).
This commit is contained in:
2
airports
2
airports
@@ -20,7 +20,7 @@
|
|||||||
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
||||||
#
|
#
|
||||||
# ...and these manually-generated or hand-compiled adjustments:
|
# ...and these manually-generated or hand-compiled adjustments:
|
||||||
# aadcf8801156f29dc5c622bb5e874e88 2020-05-24 overrides.conf
|
# 298b10d8d6f5a4a41b2eb0c356766427 2020-05-24 overrides.conf
|
||||||
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
||||||
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
||||||
|
|
||||||
|
|||||||
@@ -502,6 +502,12 @@ comment = manually researched on 2020-05-24
|
|||||||
description = Ismalia, IML, Egypt
|
description = Ismalia, IML, Egypt
|
||||||
location = (0.5339253128236962, 0.5628201985215509)
|
location = (0.5339253128236962, 0.5628201985215509)
|
||||||
|
|
||||||
|
[hkz000]
|
||||||
|
description = Hong Kong Observatory
|
||||||
|
comment = suggested by Bill Agee
|
||||||
|
centroid = (0.3897902, 1.9928751)
|
||||||
|
zone_forecast = https://www.hko.gov.hk/textonly/v2/forecast/nday.htm
|
||||||
|
|
||||||
[hesw]
|
[hesw]
|
||||||
comment = manually researched on 2020-05-24
|
comment = manually researched on 2020-05-24
|
||||||
description = Siwa Oasis Arpt, Egypt
|
description = Siwa Oasis Arpt, Egypt
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
added zone hkz000 (+4 options)
|
||||||
changed station cahr (+3 options)
|
changed station cahr (+3 options)
|
||||||
changed station cerm (+3 options)
|
changed station cerm (+3 options)
|
||||||
changed station cmfm (+3 options)
|
changed station cmfm (+3 options)
|
||||||
|
|||||||
2
places
2
places
@@ -20,7 +20,7 @@
|
|||||||
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
||||||
#
|
#
|
||||||
# ...and these manually-generated or hand-compiled adjustments:
|
# ...and these manually-generated or hand-compiled adjustments:
|
||||||
# aadcf8801156f29dc5c622bb5e874e88 2020-05-24 overrides.conf
|
# 298b10d8d6f5a4a41b2eb0c356766427 2020-05-24 overrides.conf
|
||||||
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
||||||
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
||||||
|
|
||||||
|
|||||||
10
stations
10
stations
@@ -20,7 +20,7 @@
|
|||||||
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
||||||
#
|
#
|
||||||
# ...and these manually-generated or hand-compiled adjustments:
|
# ...and these manually-generated or hand-compiled adjustments:
|
||||||
# aadcf8801156f29dc5c622bb5e874e88 2020-05-24 overrides.conf
|
# 298b10d8d6f5a4a41b2eb0c356766427 2020-05-24 overrides.conf
|
||||||
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
||||||
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
||||||
|
|
||||||
@@ -30143,6 +30143,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VGHS.TXT
|
|||||||
description = Hong Kong Inter-National Airport, Hong Kong
|
description = Hong Kong Inter-National Airport, Hong Kong
|
||||||
location = (0.3897902, 1.9928751)
|
location = (0.3897902, 1.9928751)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VHHH.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VHHH.TXT
|
||||||
|
zone = ('hkz000', 0.0000000)
|
||||||
|
|
||||||
[viag]
|
[viag]
|
||||||
description = Agra, India
|
description = Agra, India
|
||||||
@@ -30243,6 +30244,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VLVT.TXT
|
|||||||
description = Taipa, Macau
|
description = Taipa, Macau
|
||||||
location = (0.3868813, 1.9821123)
|
location = (0.3868813, 1.9821123)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VMMC.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/VMMC.TXT
|
||||||
|
zone = ('hkz000', 0.0103775)
|
||||||
|
|
||||||
[vnkt]
|
[vnkt]
|
||||||
description = Kathmandu Airport, Nepal
|
description = Kathmandu Airport, Nepal
|
||||||
@@ -31382,6 +31384,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZBYN.TXT
|
|||||||
description = Guangzhou, China
|
description = Guangzhou, China
|
||||||
location = (0.4043346, 1.9780398)
|
location = (0.4043346, 1.9780398)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGGG.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGGG.TXT
|
||||||
|
zone = ('hkz000', 0.0199677)
|
||||||
|
|
||||||
[zgha]
|
[zgha]
|
||||||
description = Changsha, China
|
description = Changsha, China
|
||||||
@@ -31392,6 +31395,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGHA.TXT
|
|||||||
description = Guilin, China
|
description = Guilin, China
|
||||||
location = (0.4421501, 1.9250982)
|
location = (0.4421501, 1.9250982)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGKL.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGKL.TXT
|
||||||
|
zone = ('hkz000', 0.0811393)
|
||||||
|
|
||||||
[zgnn]
|
[zgnn]
|
||||||
description = Nanning, China
|
description = Nanning, China
|
||||||
@@ -31402,11 +31406,13 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGNN.TXT
|
|||||||
description = Shantou, China
|
description = Shantou, China
|
||||||
location = (0.4084070, 2.0365083)
|
location = (0.4084070, 2.0365083)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGOW.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGOW.TXT
|
||||||
|
zone = ('hkz000', 0.0443041)
|
||||||
|
|
||||||
[zgsz]
|
[zgsz]
|
||||||
description = Shenzhen, China
|
description = Shenzhen, China
|
||||||
location = (0.3935717, 1.9914207)
|
location = (0.3935717, 1.9914207)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGSZ.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZGSZ.TXT
|
||||||
|
zone = ('hkz000', 0.0040134)
|
||||||
|
|
||||||
[zhcc]
|
[zhcc]
|
||||||
description = Zhengzhou, China
|
description = Zhengzhou, China
|
||||||
@@ -31422,6 +31428,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZHHH.TXT
|
|||||||
description = Haikou Meilan International Airport, Haikou, 46, CN
|
description = Haikou Meilan International Airport, Haikou, 46, CN
|
||||||
location = (0.3479296, 1.9278732)
|
location = (0.3479296, 1.9278732)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZJHK.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZJHK.TXT
|
||||||
|
zone = ('hkz000', 0.0736704)
|
||||||
|
|
||||||
[zjsy]
|
[zjsy]
|
||||||
description = Sanya/Fenghuang, China
|
description = Sanya/Fenghuang, China
|
||||||
@@ -31452,6 +31459,7 @@ metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZPPP.TXT
|
|||||||
description = Xiamen, China
|
description = Xiamen, China
|
||||||
location = (0.4273148, 2.0609430)
|
location = (0.4273148, 2.0609430)
|
||||||
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZSAM.TXT
|
metar = https://tgftp.nws.noaa.gov/data/observations/metar/decoded/ZSAM.TXT
|
||||||
|
zone = ('hkz000', 0.0728636)
|
||||||
|
|
||||||
[zsfz]
|
[zsfz]
|
||||||
description = Fuzhou, China
|
description = Fuzhou, China
|
||||||
|
|||||||
@@ -238,6 +238,9 @@ def get_uri(
|
|||||||
)
|
)
|
||||||
sys.stderr.write(message)
|
sys.stderr.write(message)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
# Some data sources are HTML with the plain text wrapped in pre tags
|
||||||
|
if "<pre>" in data:
|
||||||
|
data = data[data.find("<pre>")+5:data.find("</pre>")]
|
||||||
if cache_data:
|
if cache_data:
|
||||||
try:
|
try:
|
||||||
import codecs
|
import codecs
|
||||||
|
|||||||
2
zctas
2
zctas
@@ -20,7 +20,7 @@
|
|||||||
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
||||||
#
|
#
|
||||||
# ...and these manually-generated or hand-compiled adjustments:
|
# ...and these manually-generated or hand-compiled adjustments:
|
||||||
# aadcf8801156f29dc5c622bb5e874e88 2020-05-24 overrides.conf
|
# 298b10d8d6f5a4a41b2eb0c356766427 2020-05-24 overrides.conf
|
||||||
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
||||||
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
||||||
|
|
||||||
|
|||||||
9
zones
9
zones
@@ -20,7 +20,7 @@
|
|||||||
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
# ab78f945488371035514fc2c14e4679a 2020-05-24 airports.csv
|
||||||
#
|
#
|
||||||
# ...and these manually-generated or hand-compiled adjustments:
|
# ...and these manually-generated or hand-compiled adjustments:
|
||||||
# aadcf8801156f29dc5c622bb5e874e88 2020-05-24 overrides.conf
|
# 298b10d8d6f5a4a41b2eb0c356766427 2020-05-24 overrides.conf
|
||||||
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
# ab8545489a62124779edf7214a619325 2020-05-24 slist
|
||||||
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
# 12c84e28cdb6da9eeba12b5a4af034b0 2020-05-24 zlist
|
||||||
|
|
||||||
@@ -14710,6 +14710,13 @@ station = ('phsf', 0.0040525)
|
|||||||
urgent_weather_message = https://tgftp.nws.noaa.gov/data/watches_warnings/non_precip/hi/hiz028.txt
|
urgent_weather_message = https://tgftp.nws.noaa.gov/data/watches_warnings/non_precip/hi/hiz028.txt
|
||||||
zone_forecast = https://tgftp.nws.noaa.gov/data/forecasts/zone/hi/hiz028.txt
|
zone_forecast = https://tgftp.nws.noaa.gov/data/forecasts/zone/hi/hiz028.txt
|
||||||
|
|
||||||
|
[hkz000]
|
||||||
|
centroid = (0.3897902, 1.9928751)
|
||||||
|
comment = suggested by Bill Agee
|
||||||
|
description = Hong Kong Observatory
|
||||||
|
station = ('vhhh', 0.0000000)
|
||||||
|
zone_forecast = https://www.hko.gov.hk/textonly/v2/forecast/nday.htm
|
||||||
|
|
||||||
[iaz001]
|
[iaz001]
|
||||||
centroid = (0.7571326, -1.6791865)
|
centroid = (0.7571326, -1.6791865)
|
||||||
coastal_flood_statement = https://tgftp.nws.noaa.gov/data/watches_warnings/flood/coastal/ia/iaz001.txt
|
coastal_flood_statement = https://tgftp.nws.noaa.gov/data/watches_warnings/flood/coastal/ia/iaz001.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user