Retrieve weather warnings

109 views
Skip to first unread message

David Parry

unread,
Dec 1, 2015, 5:04:56 AM12/1/15
to Met Office DataPoint

Hi,

Is it possible to retrieve information on weather warnings through datapoint? 

Looking at this groups history it appears not, however I emailed enqu...@metoffice.gov.uk and was told "You certainly can receive National Severe Weather Warning information through Datapoint, they are embedded with the National and Regional text data feeds. Simply select the regional text feed for area you would like to monitor and the script(s) delivered will be consistent with detail of any warnings in force"

Unfortunately I can't see any warning information.  

I can see from http://www.metoffice.gov.uk/public/weather/warnings that today there is a yellow warning of rain in South Wales

Through datapoint I did the following:
1) Retrieved list of regions and saw that Wales is 516

This did not have any info regarding the warning.

3) I then tried individual areas, the warning page said Cardiff is covered by the warning, so retrieved list of 

Retrieved a 3 hour forecast for an area of Cardiff

This did not have any info regarding the warning.

The other option I've looked at is to retrieve the data in the same way that the widget does.

<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.js"></script>
<script type="text/javascript" src="http://www.metoffice.gov.uk/public/pws/lib/javascript/api/metoffice.data-1.3.0.js"></script>
<script>
metoffice
.useFQDN(true);
metoffice
.warning.getAllWarnings({
          success
: function (warnings) {
              console
.log(warnings);
         
},
          error
: function (msg) {
              console
.log('Error calling metoffice.warning.getAllWarnings\n' + msg.statusText + ' ' + msg.status);
         
}
     
});
</script>


Unfortunately this won't work as it breaks down with CORS and most likely violates the t&c's

Any advice would be appreciated.
Thanks,
David

mike

unread,
Dec 1, 2015, 5:55:02 AM12/1/15
to Met Office DataPoint
Is this what you are after?


http://www.meteoalarm.eu/documents/rss/uk.rss


See http://www.meteoalarm.eu/ for more information on MeteoAlarm.


Michael
http://www.informaticslab.co.uk/#team

David Parry

unread,
Dec 1, 2015, 6:11:37 AM12/1/15
to Met Office DataPoint
Hi Michael,

I wasn't aware of that site thats very useful, thanks!
Any idea how often it syncs with the UK data? Its currently showing stuff that's been cleared from the metoffice weather warning.
Thanks,
David

mike

unread,
Dec 1, 2015, 6:35:36 AM12/1/15
to Met Office DataPoint
David,

Sorry, I don't have any more information on the service.  It's been in place for several years, so it's likely reliable, but maybe has a lag relative to each of the many national services.   Hopefully all warnings go out with sufficient notice that a slight lag in issue and removal isn't a problem.

Michael

colin.corkerton

unread,
Dec 2, 2015, 11:47:43 AM12/2/15
to Met Office DataPoint
Hi David,

Apologies for the incorrect advice, but it is not currently possible to obtain National Severe Weather Warnings through DataPoint.

The Meteoalarm web site is updated twice a day with the latest weather warnings.

It is also possible to receive email notification of warnings by signing up via the Met Office web site. Go to the email alerts drop down at the top of the home page http://www.metoffice.gov.uk/. RSS feeds are also available, see http://www.metoffice.gov.uk/guide/weather/rss. Finally a Warnings Widget is available, see http://www.metoffice.gov.uk/services/weather-widget .

Regards,
Colin
Reply all
Reply to author
Forward
Message has been deleted
0 new messages