UK 24hr weather extremes

Hi Folks

With the greatest of thanks to Micheal (mth) I have adjusted his US version of
this script found here to suit the UK members

I have also borrowed most of his text from his thread :oops:

This script will provide your site with the latest Weather Extremes for the UK.
The weather extremes captured are the latest 24 hour high and low temperatures
as well as precipitation amount.

An example can be seen in action at http://www.northantsweather.com/ on the
menubar near the bottom

It can also been seen in action at by itself here:
http://www.northantsweather.com/ukextremesexample.php

The files are available below

Permission to use the script this way and to use the data collected has been granted by the UK Met Office

[quote]Thank you for your email.

I am pleased to inform you that under our Unregistered Public Sector Information Licence
(http://www.metoffice.gov.uk/corporate/legal/tandc.html#copyright ) you may use this data, subject to the inclusion of the following acknowledgment on your website:


ukextremes.zip (3.35 KB)

Thanks bashy, will set up later today, another excellent conversion of a US to UK script.

Edit
Up and running, added the sunniest to the script as well, can be seen here
http://www.newquayweather.com/extremes-uk-page.php on its own,
plus menubar
http://www.newquayweather.com/

Hi Simon,

I had a look at the script and see that the data comes from a UK Met Office web page. Have you contacted them to make sure that the use falls within their licence agreement and doesn’t breach the Crown Copyright?

Please don’t get me wrong here, I want to use the script and have plans to add it to the dashboard but I just want to make sure that I don’t get a call a couple of months down the line. :wink:

Martin.

Hi Martin

I read this and took it as ok

Use of Crown Copyright

With the exception of the excluded material which is set out below, the Met Office grants you a perpetual, worldwide, non-exclusive, non-transferable licence to download, use, copy and adapt the Content (the “Licensed Content”).

The following material on the Site is excluded from theLicensed Content and may not be downloaded, used, copied or adapted by you using this Licence:

*

  any underlying web services (which includes any software, documents and/or materials which underpin the Content);
*

  any material which is on a section of the Site for which payment is required or for which you have to register your details to access;
*

  any advertisements or promotions by third parties; and
*

  any material which is identified as belonging to someone other than the Met Office.

One bit I noticed is under the Ownership of site content section where it says:
You may not use any robot, spider, deep-link, page-scrape or any other automated device or manual process to monitor or copy any Content from the Site.” This may refer just to the commercial use but it’s not that clear. :roll:

There’s lot of words with very little clear meaning, it may be worth an email just to check and if they grant you usage then it’s also granted for like usage by others (also in their T&C somewhere). :smiley:
Just say it for non-commercial usage, for public information, how the script works and that you’re willing to add a link recognising it’s from the UKMO or the Crown Copyright.
This is what I did with the British Geological Survey so we could use their earth quake data in the templates.

Hi Martin, I have sent them an email so we can have some clarification, i got a feeling
we will have to pay for the privilege though, what is it, about

Hi Martin, Just got a reply and included it in the 1st post, permission has been granted :smiley:
as long as the copyright below is used!!!

© Crown Copyright [followed by current year, e.g. 2010], the Met Office

[quote author=Bashy link=topic=47591.msg386278#msg386278 date=1285859890]
Hi Martin, Just got a reply and included it in the 1st post, permission has been granted :smiley:
as long as the copyright below is used!!!

Hi Phil, not sure if your allowed to use there images though

You must not:

*

  use the Licensed Content, our logos or our trade marks to endorse or promote your products and/or services;
*

  reproduce content which is not covered by this Licence;
*

  present out-of-date information as being current;
*

  use the Licensed Content in a way which is likely to mislead others. For example, if you adapt, change, enhance or manipulate the Licensed Content in any way you must not give the impression your output is endorsed or produced by the Met Office;
*

reproduce our logos or trade marks without our prior express permission; or
*

  do anything that may bring the name of the Met Office into disrepute or which damages or dilutes the goodwill associated with the name and trade marks of the Met Office.

[quote author=Bashy link=topic=47591.msg386278#msg386278 date=1285859890]
Hi Martin, Just got a reply and included it in the 1st post, permission has been granted :smiley:
as long as the copyright below is used!!!

I know, what a turn up for the books 'eh?

Simon, I got it from same page at top

Linking to the Site
You are allowed to have links directly to pages hosted on the Site as long as the link, when activated by a user, displays that page full-screen in a fully operable and navigable browser window and not within a frame on the linked website.

and then followed link to “linking to us” where it gives the code.
I have the page open in a new window so not in an iframe etc so thought I was ok, its all very wishy washy, on the on hand they say no and the other …
Should i just take the image out ?

If it gives the full code and the image is included then that should be ok as thats what they’ve provided m8

Edit:

I have just looked at the link to page and thats fine m8, its what they have provided :smiley:

Nice one Simon. :thumbright:

It’s always worth checking when it comes to the Met Office but it’s great that they are happy for us to use that data, I think this must be a first!! :lol:

Yes the Met Office must be relaxing their stance a bit, nice one. :multi:

I put it down to the grovelling i did in the email pmsl…

nah i just stated that we are non commercial, private sites for the local communities and obviously it worked
It also gets there name out there what with the backlinks so we all benefit i suppose, tis a great bonus though

I managed to add this to my dashboard, it’s under the station records. :wink:
The Crown Copyright I added to the explanation window below the dashboard.

I’ve substituted the the Minimum High temp for the Minimum Low temp, that way it will show the lowest temp recorded during the last 24 hours and not the lowest maximum in the UK. :wink:

If you want the year in the Crown Copyright to alter on it’s own (me being lazy and not wanting to change it once a year) then add this code where you want the copyright notice to appear:

<?php print '&copy; Crown Copyright ' . date("Y",time()) . ', the Met Office'; ?>

Or if you wan their logo in there:

<?php print '&copy; Crown Copyright ' . date("Y",time()) . ', <a href="http://www.metoffice.gov.uk" target="_blank" title="opens in a new window" >
<img src="http://www.metoffice.gov.uk/lib/template/logos/MO_Landscape_B.jpg" alt="Met Office" title="www.metoffice.gov.uk" width="120" height="36" border="0" align="middle" /></a>'; ?>

The dashboard code I’ve used is this and is added into a table, hence the table tags are missing:

<tr>
              <td style="text-align: center;" class="datahead" colspan="2">UK Last 24hrs<sup>6</sup></td>
              </tr>
              <tr>
              <td class="data1" style="text-align: center; font-size: 8pt;">Highest Temp</td>
              <td class="data1" style="text-align: center; font-size: 8pt;"><?php print $ukhigh; ?>&deg; C at <?php print $ukhighloc; ?></td>
              </tr>
              <tr>
              <td class="data1" style="text-align: center; font-size: 8pt;">Lowest Temp</td>
              <td class="data1" style="text-align: center; font-size: 8pt;"><?php print $uklow; ?>&deg; C at <?php print $uklowloc; ?></td>
              </tr>
              <tr>
              <td class="data1" style="text-align: center; font-size: 8pt;">Precipitation</td>
              <td class="data1" style="text-align: center; font-size: 8pt;"><?php print $ukprecip; ?> mm at <?php print $ukpreciploc; ?></td>
              </tr>
              <tr>
              <td class="data1" style="text-align: center; font-size: 8pt;">Sunniest</td>
              <td class="data1" style="text-align: center; font-size: 8pt;"><?php print $uksun; ?> hrs at <?php print $uksunloc; ?></td>
              </tr>

Thanks martin for the lazy mans copyright year one liner, added it to my page . :smiley:

<?php print '© Crown Copyright ' . date("Y",time()) . ', the Met Office'; ?>

Thanks Martin, dont know how on earth that got in there #-o :oops: Zip updated :slight_smile:

Thanks for the copyright data addition, that will save editing the page each year lol

Hi Bashy

Added to my page also :slight_smile:

Steve