WXforum.net
Weather Related Organizations => NOAA National Weather Service => Topic started by: lobsterman on August 02, 2018, 03:21:11 PM
-
This URL https://forecast-v3.weather.gov/products/locations/GYX/CWF/1?format=text (https://forecast-v3.weather.gov/products/locations/GYX/CWF/1?format=text) gives a series of local zone forecasts along the Maine coast. I have been trying to figure out how to get only a single one of those local zone in that same text format.
For example, is there a format to get only the ANZ153 section or do I just need to write some kind of regex parser to accomplish that?
-
Is this similar to what you are looking for?
https://forecast.weather.gov/shmrn.php?mz=anz153 (https://forecast.weather.gov/shmrn.php?mz=anz153)
I have a series of marine weather pages on my site that use this source - with the relevant zones for Great Lakes that is :grin:
-
Don't know if this will help but the NWS also has point marine forecasts.
Very useful if you are going to be in a specific area.
-
Is this similar to what you are looking for?
https://forecast.weather.gov/shmrn.php?mz=anz153 (https://forecast.weather.gov/shmrn.php?mz=anz153)
I have a series of marine weather pages on my site that use this source - with the relevant zones for Great Lakes that is :grin:
It is indeed, mostly, though that is still an HTML page. I was looking for a way to get plain text only, using curl or a similar tool.
-
Are you looking to have it on a web page within your site? Similar to this?
https://lakehuronweather.org/wxMarineZoneLHZ347.php (https://lakehuronweather.org/wxMarineZoneLHZ347.php)
If so, I can share the code I use for this.
Edit: There is also a text only within a web page.
(https://marine.weather.gov/MapClick.php?zoneid=ANZ153&TextType=1[/url)
-
https://marine.weather.gov/MapClick.php?zoneid=ANZ153&TextType=1 (https://marine.weather.gov/MapClick.php?zoneid=ANZ153&TextType=1)
Here it is.
-
Otis,
I would be interested in your script! :grin:
Jim
-
Sent you a PM.
-
Stupid me.. I deleted the wrong PM.... Please, if you wouldn't mind, send again?
Thanks!
Jim