UK Weather Observations plugin for WordPress

My UK Weather Observations plugin for WordPress displays recent local UK weather observations based on RSS feeds published by the BBC.  I wrote the plugin for one of the other web sites that I look after, but because we English are obsessed with our weather, I thought that I would make it generally available under the GNU General Public License.

Features

  • Displays local weather information, updated regularly during daylight hours;
  • Weather information is sourced from the BBC;
  • Weather information is updated automatically;
  • Admin interface to select locality and customize settings;
  • WordPress Widget enabled;
  • Written specifically for WordPress 2.7;
  • No PHP skills or file changes are required;
  • And more!

Pricing and Licensing

The plugin is free!  I have released it under the GNU General Public License so you can use it free of charge on your blog.  You can also change (improve) it if you wish – if you do, please email the improvements to clive@clive-publishing.com so that I can consider them for incorporation into a future version.

Please note that the BBC impose some restrictions on the use of their feeds – see www.bbc.co.uk/weather/bbcweather/features/RSS_termsandconditions.shtml for more information.

Download

The plugin is kindly hosted by WordPress.  The direct download link is:

           uk-weather-observations.1.0.zip

Installation

Download the ‘UK Weather Observations’ .zip archive and extract the directory/files into your wp‑content/plugins/ directory.  Then go to your WordPress administration page, click on Plugins and activate it.  See the Plugins section of the WordPress Codex for more information.

You will then have a new sub-menu item called “UK Weather Observations” under the “Settings” menu. You can enter your BBC location code there.  If you don’t enter a code, weather observations for Marazion, Cornwall (the home of Clive Publishing) will be displayed.

To find your BBC location code, go to www.bbc.co.uk/weather/5day.shtml and search for your nearest town or large village.  If the search is successful, your BBC location code is the 4 digit number at the end of the URL.  For example, if you search for ‘Marazion’, the search result URL is http://www.bbc.co.uk/weather/5day.shtml?id=3737 - the BBC location code is 3737.  If the search is not successful, you are given the option of a post code search, which will give similar results, but does not always seem to choose the closest weather observation.

To display your weather information in a post or on a page simply type [ uk-wobs ] (no spaces) where you would like the information to appear.

If you would like to display the information in the sidebar you can use the plugin’s Widget.

If you wish to change the style of the information displayed, this can be done by making the relevant changes to your WordPress theme stylesheet; no changes to the code of the plugin are required.

Support

If you have comments, problems or suggestions or see something in the code which is not compliant with the WordPress Plugin Codex, please add a comment to this page, create a post at the WordPress support forum (tag it with “uk-weather-observations”) or send an email to clive@clive-publishing.com.

If you think you’ve found a bug, please send an email to clive@clive-publishing.com and I will do my best to fix it.

Donate

If you enjoy the plugin, you can thank me and leave a small donation for the time I’ve spent writing and supporting it.

 

   

 

Thank you for your support.

Supported by backstage.bbc.co.uk.

78 Comments

Jeff Paul Internet MillionsFebruary 17th, 2009 at 6:54 am

Hi, Nice Post. Your post is unique and people certainly want to know more about internet marketing. Your post can benefit beginners.

Jeff Paul Internet MillionsFebruary 21st, 2009 at 10:05 pm

Hi, I applaud your blog for informing people, its just sometimes people seem to get themselves tied up in unnecessary knots over something that’s very simple.

bandicootFebruary 25th, 2009 at 3:17 pm

I’m trying to get this widget to work, but whatever location code I put in (and there seem to be a few for Edinburgh) all I’m getting is “No current observations available” even though the BBC site is displaying the weather for each of these locations.

CliveFebruary 25th, 2009 at 3:32 pm

Hi bandicoot,
Does it work if you do not put any location code in? If so, what location codes are you trying to use?
Cheers,
Clive

[...] displays recent local UK weather observations based on RSS feeds published by the BBC… …..read more Download Plugin! Plugin Owner: Authors: Clive Goodhead, Clive Publishing Homepage: Visit [...]

DavidMarch 20th, 2009 at 5:10 am

I too am having the problem of just getting “No current observations available”. Regardless of what code I use, or if I use no code.

I’d like to use code 2268.

I have tried using cets_EmbedRSS and taken the feed from… feeds.bbc.co.uk/weather/feeds/rss/obs/world/4275.xml

[cetsEmbedRSS id='feeds.bbc.co.uk/weather/feeds/rss/obs/world/4275.xml' itemcount='5' itemauthor='1' itemdate='1' itemcontent='1']

Which works in a post, but I’d like to get it in the sidebar.

Any ideas why it isn’t working?

D.

CliveMarch 20th, 2009 at 8:26 pm

Hi David,
I’ve never used cets_EmbedRSS, but I have tested my plugin using code 2268 (Fochabers) and it works as expected in the sidebar.
Cheers,
Clive

RaiulBaztepoMarch 29th, 2009 at 3:27 pm

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ;)
See you!
Your, Raiul Baztepo

PiterKokonizApril 8th, 2009 at 5:54 am

Hi !! ;)
My name is Piter Kokoniz. oOnly want to tell, that I’v found your blog very interesting
And want to ask you: is this blog your hobby?
Sorry for my bad english:)
Thank you:)
Piter Kokoniz, from Latvia

CliveApril 8th, 2009 at 10:16 am

Hi Piter,
Thank you for your interest in my blog.
I make some of my income from internet marketing and this blog helps me with that so it is more than a hobby.
Much of the code behind the UK Weather Observation plugin for WordPress was written as a hobby, but the final plugin I regarded as work.
Kind regards,
Clive

ClalleygodyApril 13th, 2009 at 10:45 am

I’m new to this blog.
Thanks :)

Jeff Paul Big League Players ClubApril 14th, 2009 at 5:36 am

I’ve been reading your post and found it interesting! Internet Marketing these days is spread almost everywhere in the IT world. I run a blog on Internet Marketing so I can use something from your blog as well.

LeandaMay 29th, 2009 at 2:13 pm

Struggling to get this working on a site I’m working on, I have no idea what I’m doing wrong. I’ve tried it in the sidebar and within a post and I just get “No current observations available”.

The site url is http://www.lakelandbelvedere.com/

Tried it with and without a code, but to no avail :-(

Can anyone who has managed to get it to work help?

CliveJune 3rd, 2009 at 8:15 pm

If you install the plugin as instructed but get the output “No current observations available” it is likely that your PHP installation is blocking access to the BBC data. Recently identified causes of this include safe mode being on – solution is to turn it off – and allow_url_fopen set to Off – solution is to set it to On.

Leanda solved her problem by installing a local copy of php.ini with appropriate settings.

Make Money on the InternetJune 9th, 2009 at 3:05 am

I enjoyed reading your post. Internet marketing is growing very fast in the IT industry. Internet marketing is now becoming a part-time business for many individuals.

LeandaJune 17th, 2009 at 10:51 am

Hi Clive

Having lots of trouble with the plugin, it’s now completely broken in WordPress 2.8. If I go to the settings and hit save the plugin displays the weather info for a little while and then shortly reverts to ‘No Observations Available’. Prior to 2.8 it was displaying the weather data, but I was having to again go into the plugin settings to manually refresh the feed.

The site url is http://www.lakelandbelvedere.com/

Any ideas? Might have to look at another way of displaying the weather info :-(

CliveJune 27th, 2009 at 7:39 pm

Hi Leanda,

Sorry you could not get the plugin working. I have now checked it under WordPress 2.8 and it seems to work and I have had reports from others that it works too. I will be updating it soon so that it will use Curl if it is available, which will hopefully get around the ‘No observations available’ problem.

Cheers,

Clive

CliveJuly 2nd, 2009 at 10:52 am

Hi Clive,
Thank you for taking the time to put this useful contribution together.

I seem to be having a few problems too with wordpress 2.8 compatability,

The feed doesnt seem to update everyday?

http://www.bedfordgardeners.org.uk

The codes on the bbc weather website seem to be different now, I can only get a 3 digit code for Bedford from the website source.

Any pointers would be great, thanks

Clive

KevJuly 9th, 2009 at 11:15 am

The BBC uses a 3 digit code for Oxford, this does not work when I type that into the settings for this plugin.

Any ideas?

Do I have to leave it on and wait for an update on BBC end for the location to change in my sidebar?

KevJuly 9th, 2009 at 11:17 am

Sorry its a 2 digit code for Oxford (25)

CliveJuly 9th, 2009 at 4:46 pm

Hi Kev,

The BBC have changed the URL and the codes again. I have written an updated plugin which I am currently testing. When it is released (a couple of days I hope) the code for Oxford should be entered as ’0025′. The new plugin not only deals with the changes in URL and codes but also provides for the use of Curl to download BBC files which should fix many of the ‘No current observations available’ errors that people have been seeing.

In the meantime you should be able to use the old code ’2935′ with the existing plugin, but the observations seem to update only once per day.

Cheers,

Clive

CliveJuly 10th, 2009 at 10:42 am

Version 2.0 of the WordPress UK Weather Observations plugin has now been released. See the announcement and plugin page for more information.

apadayjefJanuary 3rd, 2010 at 12:07 am

Awesome post, didn’t thought reading this would be so cool when I saw your title!

WP ThemesJanuary 17th, 2010 at 10:45 pm

Good dispatch and this fill someone in on helped me alot in my college assignement. Thanks you seeking your information.

rosserlikJanuary 30th, 2010 at 10:26 pm

Hey.
How Is the the weather forecast today?
introduces readers to various types of weather that occur during each season.
The text discusses typical activities and clothing for each type of weather.
Supportive illustrations accompany the text. You can find out here..
Bye

http://www.ile-maurice.com/forum/members/weather-today.html

tinoliksaJanuary 31st, 2010 at 1:09 am

Hey. Super site weather condition today

http://www.medicalschoolforum.com/forums/members/weather-today.html

AnnmsbJanuary 31st, 2010 at 8:14 pm

I have found it on this website called tip swift. You can find it there.
cheers
edit: wrong thread,

rabbit cages for saleFebruary 1st, 2010 at 10:17 pm

Come on guys post some comments this is a good article! Where is everybody?

WP ThemesFebruary 2nd, 2010 at 8:03 pm

Good dispatch and this enter helped me alot in my college assignement. Thanks you seeking your information.

SnolladasseFebruary 3rd, 2010 at 9:18 pm

I am the kind of guy who passions to seek brand-new things. Presently I am manufacturing my private photovoltaic panels. I’m doing it all alone without the help of my men. I am using the net as the only way to acheive that. I came across a truly amazing website which explains how to build pv panels and so on. The internet site explains all the steps needed for solar panel construction.

I am not exactly sure bout how precise the data given there is. If some people over here who had experience with these things can have a see and give your feedback in the page it would be great and I would extremely value it, cauze I extremely take an interest in solar panel construction.

Thanks for reading this. U people are great.

eixaldaSnowxieFebruary 5th, 2010 at 10:41 pm

well hey there guys, i’ve been looking all over the internet for a GOOD black hat SEO forum.. I was looking for some suggestions
from you guys to point me in the right direction.

Thanks a bunch, this place is great btw.

TSwainFebruary 7th, 2010 at 4:35 am

Your site was extremely interesting, especially since I was searching for thoughts on this subject last Thursday.

XRumerTestFebruary 9th, 2010 at 8:10 pm

Hello. And Bye.

AcathyToothFebruary 12th, 2010 at 7:08 am

i truly love all your posting way, very useful,
don’t quit as well as keep writing mainly because it simply very well worth to read it,
looking forward to read a whole lot more of your current content articles, thankx ;)

lygiegiolliptFebruary 16th, 2010 at 2:37 am

Hey, just want to say hi. I’m new here.

RichardFebruary 17th, 2010 at 6:18 am

This is a great plugin… thanks a lot for sharing.

free trialFebruary 18th, 2010 at 1:48 am

After reading you site, Your site is very useful for me .I bookmarked your site!

blood stoolFebruary 18th, 2010 at 2:46 pm

Saw your site bookmarked on Reddit.I love your site and marketing strategy.Your site is very useful for me .I bookmarked your site!

account moneyFebruary 23rd, 2010 at 4:07 am

Saw your site bookmarked on Reddit.I love your site and marketing strategy.Your site is very useful for me .I bookmarked your site!
My Home account money
account money

finance personal softwareFebruary 24th, 2010 at 12:37 am

After reading you site, Your site is very useful for me .I bookmarked your site!
I am been engaged 10 years on the finance personal software If you have some questions, please get in touch with me.
My Home finance personal software

LarryLoveFebruary 26th, 2010 at 4:22 am

Hey very nice blog!!….I’m an instant fan, I have bookmarked you and I’ll be checking back on a regular….See ya :)

debt solutionMarch 3rd, 2010 at 1:19 pm

hmmm…, nice plugin for uk users and uk related sites..,

vamesizerveMarch 4th, 2010 at 11:10 pm

Making money on the internet is easy in the hush-hush world of blackhat backlinks, It’s not a big surprise if you haven’t heard of it before. Blackhat marketing uses alternative or not-so-known avenues to generate an income online.

vamesizerveMarch 13th, 2010 at 12:35 am

It isn’t hard at all to start making money online in the hush-hush world of blackhat software, You are far from alone if you haven’t heard of it before. Blackhat marketing uses little-known or misunderstood ways to generate an income online.

PhillDocMarch 17th, 2010 at 6:05 pm

Interesting post you got here. I’d like to read something more about this theme. Thanks for posting that material.

LoveLessMarch 18th, 2010 at 8:43 am

Pretty interesting site you’ve got here. Thanx for it. I like such themes and everything connected to them. I would like to read more soon.

Truly yours

Cell phone batteries wholesaleMarch 28th, 2010 at 11:57 am

This blog is great. How did you come up witht he idea?

Organic green TeaMarch 30th, 2010 at 1:40 pm

Thanks for letting us know about this. I appreciate your effort a lot.

Free Green teaMarch 30th, 2010 at 2:04 pm

I usually don’t usually post on many Blogs,but I love your blog, I often read here, still I just has to say thank you… keep up the amazing work.

WP ThemesApril 2nd, 2010 at 4:31 pm

Amiable post and this enter helped me alot in my college assignement. Thank you on your information.

byptorydaytetApril 3rd, 2010 at 5:26 pm

Hello everybody !
I am Alvin.Adkins from St Louis.
I am 55.
I’m working in Customer
and i m very happy.
I’m married with 1 children.

My hobbies are :
- Fishing, hunting

- Cycling

I often come here to read some news, i find them very interesting.

Regards,

Thomas PluegerApril 5th, 2010 at 8:02 am

Hey very nice blog!!….I’m an instant fan, I have bookmarked you and I’ll be checking back on a regular….See ya

- existing franchises for sale

coessePsyncApril 9th, 2010 at 12:24 am

hello there, nice web site
the simple way to create blog posts who smash in your readers:
http://tinyurl.com/ygoucz2

MrJacksonApril 9th, 2010 at 9:27 am

I love coming here and reading about all the intresting things on this site everyday. There is nothing better than learning how to make money online and coming here really helps. Another place I go to that teaches me how to make money online through many different verticals like Blackhat seo , Blackhat, SEO , WhiteHat, Internet Marketing , affiliate marketing, blackhat money maker, the list goes on with this site but one thing for sure ever since the econmoy has gotten so bad and the recession has set in with out your site here and this site.
[URL=”http://www.moneymakerdiscussion.com/forum/” – BlackHatMoney[/URL – There is nothing better than learning how to make money online and coming here really helps. Another place I go to that teaches me how to make money online through many different verticals like Blackhat seo , Blackhat, SEO , WhiteHat, Internet Marketing , affiliate marketing, blackhat money maker, the list goes on with this site but one thing for sure ever since the econmoy has gotten so bad and the recession has set in with out your site here and this site. If your truly needing to make some extra cash these sites can help you better than any other online.

Wordpress ThemesApril 11th, 2010 at 3:50 pm

Nice fill someone in on and this post helped me alot in my college assignement. Thank you seeking your information.

lelosicleApril 11th, 2010 at 9:01 pm

Hello people!

I just wanted to say hi to everyone

Bye!

[URL=http://www.vpnmaster.com – [IMG – http://openvpn.net/archive/openvpn-users/2005-05/pngd55nFojmJX.png/IMG – [/URL -

free trialApril 16th, 2010 at 11:03 pm

Thanks a lot for the post!

mail free samplesApril 19th, 2010 at 9:27 pm

Good share,you article very great, very usefull for us…thank you

Kate SwiftApril 23rd, 2010 at 6:08 pm

It is extremely interesting for me to read that blog. Thanx for it. I like such themes and anything that is connected to them. I definitely want to read more soon. By the way, pretty nice design your site has, but what do you think about changing it once in a few months?

Kate Swift
paper towel holder

nike dunk lowApril 25th, 2010 at 12:37 am

After reading you site, Your site is very useful for me .I bookmarked your site!

nike dunk lowApril 25th, 2010 at 9:03 am

Good share,you article very great, very usefull for us…thank you

jordan shoesApril 26th, 2010 at 3:38 pm

Nice Information.. Thx for sharing this

information

wholesale slippersApril 27th, 2010 at 12:19 am

Thanks for making my morning a little bit better with this great article!!

holiday insuranceApril 27th, 2010 at 5:44 pm

Thanks for good information that comes out to

read.

Charlotte RICHARDSONApril 28th, 2010 at 10:08 pm

Indeed nice article as for me. It would be great to read something more concerning this topic. Thanx for giving such material.

Charlotte RICHARDSON
rent to buy

atlanta cheap ticketsApril 28th, 2010 at 10:47 pm

Thank you for Posting & I got to read nice information on your site.

bdsmMay 1st, 2010 at 3:15 pm

I bookmarked this link . Thank you for good job !

mbt shoesMay 6th, 2010 at 2:25 am

Really good sharing this.

mbt shoesMay 6th, 2010 at 2:47 pm

One again, your articles is very good.thank you!very much.

Best Registry CleanerMay 6th, 2010 at 5:53 pm

One again, your article is very nice

Hermes birkin bagMay 9th, 2010 at 6:21 pm

very well

information you write it very clean. I’m very lucky to get this information from you.

Hermes birkin bagMay 10th, 2010 at 6:58 pm

Thanks for good news!

Hermes birkin bagMay 10th, 2010 at 9:42 pm

Nice post…Thank you for sharing some good things!!

Registry Cleaner ReviewsMay 10th, 2010 at 10:29 pm

great information you write it very clean. I’m very lucky to get

this details from you.

certinaMay 12th, 2010 at 1:05 am

Artistically done is better than well said.

Citizen ecodriveMay 12th, 2010 at 5:10 am

Splendidly done is well-advised b wealthier than comfortably said.

disney watchMay 12th, 2010 at 9:21 am

Lovingly done is well-advised b wealthier than extravagantly said.

charleston forgeJune 22nd, 2010 at 8:38 pm

When reading a few of your other posts I enjoyed them. I will bookmark the site and be back.

Leave a comment

Your comment

Maximum 2 links per comment. Do not use BBCode.