[RELEASE] Weather.MetOffice

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #1
[Image: icon.png]

Weather.MetOffice is a Weather addon that fetches weather information for thousands of locations accross the UK. It takes its data from the Met Office's "DataPoint" API. (http://www.metoffice.gov.uk/datapoint)

Features

Observations

Site-specific observation for one of approx. 140 locations across the UK. Wind direction, Wind speed, Wind gust, Screen temperature, Weather Type, Visibility, Pressure.

http://www.metoffice.gov.uk/datapoint/pr...servations

5 Day Forecast

A quality controlled datafeed of site specific, daily, 5-day forecasts for approximately 5,000 locations around the UK.

http://www.metoffice.gov.uk/datapoint/pr...c-forecast

3 Hour Forecast

Site specific forecasts for over 5,000 sites in the UK, including airports, major landmarks and beaches.
Forecast weather data. In 3 hourly intervals out to 5 days.

http://www.metoffice.gov.uk/datapoint/pr...c-forecast

Regional Text Forecast

Text forecasts are provided for the each of the nations of England, Scotland, Wales and Northern Ireland along with six regional forecasts for Scotland and eight regions of England.

http://www.metoffice.gov.uk/datapoint/pr...t-forecast

Forecast Maps

Map layer images are provided with three hourly intervals from T+0 to T+36. These are updated every 6 hours.

http://www.metoffice.gov.uk/datapoint/pr...-map-layer

Observation (Radar) Maps

Layer images are updated every 15 minutes with a 15 minute delay due to processing times.

http://www.metoffice.gov.uk/datapoint/pr...-map-layer

Auto-location.

Your location can be automatically determined using GeoIP services. Under settings you can choose a prefered GeoIP service provider. Then when choosing your location results will be ordered by estimated distance.

Fetch on Request.

To keep response times to a minimum, data is only fetched for the particular page when you, the user, request it. Once it's fetched it's kept cached within XBMC properties and is only refreshed according to the data set's update interval.

Use Confluence from repository.powlo! [Gotham]
or repository.powlo [Frodo]

To get 3 day forecast, text forecast, forecast maps and observation maps you'll need to install my modded version of Confluence. If you don't use the modded version of Confluence you'll only get "out of the box" features; namely observation and 5 day forecast.

This is a "weather addon friendly" fork (and subtree) of the main Confluence skin. The only difference is how weather addons are managed, all other skin features are unchanged.

[Image: 1zd99nb.jpg]

[Image: 295fp6x.jpg]

[Image: mwvez5.jpg]

[Image: 294jec4.png]

[Image: fx4cue.png]

Notes

Only one Location can be selected. That is, there is no "Location 1", "Location 2", "Location 3" etc. This concept cannot (easily) be applied to Met Office weather, so I've removed it.

Instead there are three location settings, Observation, Forecast and Region.

How to Install

The addon can be downloaded as a zip: here

The modded Confluence skin for Gotham can be downloaded as a zip: here

Or for Frodo: here

Or get everything from my Gotham repo: here
(This post was last modified: 2014-10-18 17:09 by powlo.)
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #2
<reserved>
(This post was last modified: 2013-10-16 19:29 by powlo.)
find quote
rubbiks Offline
Junior Member
Posts: 2
Joined: Sep 2013
Reputation: 0
Question  RE: [RELEASE] Weather.MetOffice
Post: #3
Hi powlo

I've downloaded and installed your weather metoffice addon which i'am very much interested in using. The problem is, I can't seem to view any data.(No Weather Forcast) I've registered for datapoint API key and entered key into settings and set two locations. Have i missed a step somewhere?

Going to read more about Metoffice DataPoint API as im not quite clear what it does in the way of features.

Any help getting this running for me would be much appreciated.

Cheers rubbiks
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #4
Which version are you using?

In the latest updates I've created a default API key because I thought that might be a barrier for people, so you shouldn't have to register with the Met Office anymore. This should be OK while just a few people are using it.

If the API key is incorrect then a message box should pop up.

I'll update the download link in the OP to the latest version. I imagine that might help.

ETA:

There's a debug setting for this addon. Enable this and see if anything useful is posted in the log file. You will also need to turn on XBMCs global debug (System > Settings > System > Debugging)
(This post was last modified: 2013-09-23 12:52 by powlo.)
find quote
rubbiks Offline
Junior Member
Posts: 2
Joined: Sep 2013
Reputation: 0
Post: #5
Thanks powlo

Its now working, was using weather.metoffice link in the origanal post (versions 0.0.3) downloaded your repository.powlo and installed from there (version 0.0.6) works great.

My API key didn't need re-entered on update so default key wasn't needed.

Looking forward to your future updates. (hourly forecast and weekend forecast) do a lot of cycling at weekend and can plan best time to go. Also is there a way to add multiple locations as i could be cycling over 60 miles.

Thanks rubbiks
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #6
Great glad to hear its working!

(2013-09-23 13:30)rubbiks Wrote:  Also is there a way to add multiple locations as i could be cycling over 60 miles.

The problem here is that Met Office has multiple locations for multiple things. For example, there is currently a Forecast location and an Observation location. Eventually there will also be Regional, National Park, and Mountain locations. Maybe others as Datapoint gets expanded. These are all different things, independent of each other.

So do I give the user three (or more) of each of these? If I do that then it ties "Forecast Location 1" to "Observation Location 1" to "Region 1". This may be what the user wants, but also maybe not. Its foreseeable that a user might want to keep the observation setting the same, but change the forecast location to somewhere else, a holiday destination perhaps.

Or maybe I just allow one of the settings to have multiple locations. For example "Forecasts". This seems a bit lopsided though.

The short answer is no. Tongue Eventually I'll add weather maps, and hopefully that will make the need for multiple locations moot.

NB Met Office doesn't offer a weekend forecast.

Paul
find quote
planetmarshall Offline
Junior Member
Posts: 13
Joined: May 2014
Reputation: 0
Post: #7
Thanks for the addon. I am currently experiencing an issue with a missing key in the MetOffice Datapoint JSON. Perhaps the spec has changed recently? I've raised an issue on the github page.

https://github.com/powlo/weather.metoffice/issues/1

Cheers,
Andrew.
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #8
I've sent this up to the MetOffice team. The json report should contain this data.
find quote
Jackdaw Offline
Junior Member
Posts: 24
Joined: Aug 2006
Reputation: 0
Post: #9
Hi, I can't seem to get the nearest observation points for me. According to the Met Office map they should be Manchester University or Manchester Hulme Library. When I put these in the observation section they show up as not found. Is there some site specific name I don't know and a list of them? Thanks.
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #10
Don't put anything in the the search box. Just hit return with the box empty. The nearest points according to your IP address will be listed.

I don't think Manchester University and Manchester Hulme Library are locations available through Datapoint (the Met Office API). They're not listed in the sitelist, which is why the search comes up empty.
find quote
MediaPi Offline
Fan
Posts: 489
Joined: Apr 2013
Reputation: 5
Post: #11
Hey powlo I'm using your addon and I really like it, its much more accurate than the weather underground add-on. But I want the hourly forecast. is your confluence skin update to the latest skin? I dont want to lose any skin settings. Thanks alot for this addon

just tried installing your skin, but it says dependencies not met, is this skin not compatible with gotham?

I still rather use weather underground because its more accurate Powlo could you please allow it to work in gotham
(This post was last modified: 2014-08-07 12:32 by MediaPi.)
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #12
Thanks! Unfortunately the Met Office does not produce an hourly forecast, only 3 hourly.

And you're right it doesn't work with Gotham (at the moment).
find quote
MediaPi Offline
Fan
Posts: 489
Joined: Apr 2013
Reputation: 5
Post: #13
Thats such a shame that it has only 3 hourly report. Strange thing is that on the android app (for met office) we have hourly. looking forward to gotham compatible, still a great addon and most accurate!
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #14
They might have a different API that they're using for their android app. I've noticed subtle differences between the layers returned by datapoint and the layers shown on their website.

Here's the services offered by the Datapoint API: http://www.metoffice.gov.uk/datapoint/search

I could pick apart an http request, but that would be more fragile and Met Office could interpret it as misuse.

Unfortunately I don't have time to code for Gotham at the moment, I think I started a fork a while back but I don't know what state its in.
find quote
powlo Offline
Senior Member
Posts: 179
Joined: Oct 2012
Reputation: 1
Post: #15
To be clear, the core weather.metoffice addon works with Gotham. It will deliver the basic weather information that all non-wunderground addons provide.

However an update is required to the skin.confluence fork in order to provide the MetOffice specific features (weather map, 3 day forecast etc). I'm currently working on this.
find quote
Post Reply