Replies: 2 comments
-
As of today, alerts.weather.gov is still the operational version of Alerts. Recently, the preview of the next version Alerts (v2) was greatly revised, including a new url pattern. The site is now a single page application, but you can still build the url manually. Your example product would look like this: https://alerts-v2.weather.gov/#/?id=NWS-IDP-PROD-4276808-3600205 I'm not certain what you consider to be a plain text report given neither version of the preview of v2 supported that format. The v2 versions are considered "presentation layers" and rendered using HTML for viewing with a web browser. Using the site to scrape product text instead of using the API is discouraged. With v2, the NWS has fully shifted to the CAP XML specification. The API provides this format along with the default JSON. |
Beta Was this translation helpful? Give feedback.
-
Thanks Jared for your prompt reply!
Yes, by "plain text" I was meaning the presentation layer you provide, which I just link to if people want to see the full alert details.
…________________________________
From: Jared Holmberg <[email protected]>
Sent: Wednesday, June 17, 2020 00:19
To: weather-gov/api <[email protected]>
Cc: Vrabel, Joseph <[email protected]>; Author <[email protected]>
Subject: [EXTERNAL] Re: [weather-gov/api] alert service (#64)
As of today, alerts.weather.gov is still the operational version of Alerts. Recently, the preview of the next version Alerts (v2) was greatly revised, including a new url pattern. The site is now a single page application, but you can still build the url manually. Your example product would look like this:
https://alerts-v2.weather.gov/#/?id=NWS-IDP-PROD-4276808-3600205
I'm not certain what you consider to be a plain text report given neither version of the preview of v2 supported that format. The v2 versions are considered "presentation layers" and rendered using HTML for viewing with a web browser. Using the site to scrape product text instead of using the API is discouraged. With v2, the NWS has fully shifted to the CAP XML specification<https://www.weather.gov/documentation/services-web-alerts>. The API provides this format along with the default JSON.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://github.com/weather-gov/api/issues/64#issuecomment-645157189>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAM2EWZFVELIISK3JDS7KKLRXBG73ANCNFSM4OAA3JKQ>.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have been accessing NWS alerts as plain text reports using addresses like this:
https://alerts-v2.weather.gov/products/NWS-IDP-PROD-4276808-3600205
For a while now it is giving a response like "Cannot GET /products/NWS-IDP-PROD-4276808-3600205".
Has this method of retrieving alerts retired or is it just temporarily unavailable?
I notice this api method works:
https://api.weather.gov/alerts/NWS-IDP-PROD-4276808-3600205
But to use this I would have to rewrite code for the difference in formats (plain text vs json).
Thank you for providing such valuable services!
Beta Was this translation helpful? Give feedback.
All reactions