OpenlyLocal info on your website, Part 1: Google Gadgets
- As I promised at the excellent TalkAboutLocal unconference in Stoke, I’ve been working on ways of helping non-techies use the local council data opened up by OpenlyLocal.com . The first of these is a Google Gadget, which can be added to your iGoogle page or your hyperlocal Blogger blog.
Though writing a Google Gadget can be a frustrating business, adding and using it is a doddle. Basically, if OpenlyLocal is extracting the data from your local authority (and we’ve got over 70 councils so far, with more being added every week — see the parsed council list for details), the gadget will show the key info at a glance — basic contact details, updated info, members, committees and forthcoming meetings.
For iGoogle users
- Go to iGoogle and click on “Add stuff” in the top right-hand corner of the page.
- Click on “Add feed or gadget” at the bottom of the left column
- In the box that pops up enter (or paste) http://openlylocal.com/tools/gadget.xml and click “Add”. Click OK to the box asking you if you want to add the gadget.
- Go back to the iGoogle home page, and the gadget will have appeared and will need you to choose your council. Choose the council, click “save”, and you’re done.
Note you can drag the gadget anywhere you want on the page, and even add more than one copy of the gadget, if you want to have ones for different councils.
You can also share the gadget with friends, neighbours, colleagues etc. Just click on the triangle in the top right of the gadget. This is also where you go if you want to delete the gadget.
For Blogger users
- Make sure you’re logged in and go to the Customize area (the link is in the top right hand corner of the screen) where should choose “Layout” and “Page Elements”
- On the template that you’re presented with there’s a block of boxes representing widgets/sidebars, including “Add a gadget”. Click on this.
- You’ll then be given a selection of gadgets, with a menu on the left-hand side. Click the link that says “Add your own”
- A form will appear with a space for the gadget’s URL. Enter (or paste) http://openlylocal.com/tools/gadget.xml and click “Add”.
- You will be then asked to configure the gadget. Select the council and click the “Save” button.
We’re planning on introducing more features in the future, but even as it stands, I think it’s a useful tool for your iGoogle page, or if you’re a hyperlocal blogger, a great way to add up-to-date and relevant info to your blog.
By the way, you can see the code behind the gadget at http://openlylocal.com/tools/gadget.xml (it basically makes a single call to an OpenlyLocal API url — http://openlylocal.com/councils/%5Bcouncil_id%5D.json — and then builds the gadget using javascript) and I’ll be creating a github project for it so you can help improve it/report bugs/request features.
The next step in making info more available is a Ning app, as quite a few hyperlocal sites seem to be using Ning as their platform of choice, and there’s someone who’s promised to write a WordPress plugin to provide the same or similar functionality to the gadget.
UPDATE:
As Helen reported in the comments, the gadget wasn’t working in Internet Explorer. Debugging it was not a pleasant process, but I’ve now found and fixed the bug (I believe). Let me know in the comments if the are any probs. It might take an hour or so before Google updates its cache with the latest code, but then should be fine.
Written by countculture
October 9, 2009 at 10:56 am
Posted in api, hyperlocal, local government, open data
Tagged with api, Councils, feeds, gov2.0, Open Government, opendata, widgets
18 Responses
Subscribe to comments with RSS.
Many thanks, Chris – will keep you updated!
Keith Magnum
October 13, 2009 at 9:25 am
I tried adding gadget for Warwickshire CC – will that be
available soon, I could not see it o the drop down list?
Mike
Mike Downes
January 12, 2011 at 10:28 am
Fantastic gadget.
Hopefully East Riding of Yorkshire Council and Hull City Council will be added to your lists before too long?
Keep up the good work supporting hyperlocal!
Cheers
Ray Duffill
The Hedon Blogger, East Yorkshire
rayduff
October 22, 2009 at 7:10 am
Hi Chris,
Great idea for pple like me and I successfully got the gadget into my i-google page but then when I selected Worcester City Council I got error: ‘Unable to retrieve spec for http://openlylocal.com/tools/gadget.xml. HTTP error 504′
Helen Williams
October 27, 2009 at 10:35 pm
Helen
A 504 is a type of timeout. Just tried it with a clean install (on both Safari and Firefox) and it worked OK. What browser are you using?
countculture
October 27, 2009 at 11:01 pm
I’m using Internet Explorer 7. Probably serves me right! Just tried again and still no joy.
Helen Williams
October 28, 2009 at 9:29 pm
OK. I’ll try to test it tomorrow on IE7. Should be OK, but you never can tell with Internet Explorer
countculture
October 29, 2009 at 10:59 pm
Helen
That was a tricky bug to find, but I think it’s sorted now (may take 1 hour from now for Google to update its caches with latest code)
countculture
November 11, 2009 at 11:52 am
Great – sorry to have caused trouble!
Helen Williams
November 11, 2009 at 12:54 pm
[…] the OpenlyLocal Google gadget (see OpenlyLocal info on your website, Part 1: Google Gadgets), it’s fairly straightforward […]
OpenlyLocal info on your hyperlocal website, Part 2: Ning app « countculture
November 20, 2009 at 2:09 pm
Hi,
I’ve set it all up but can anyone tell me how I can import the dates for the council meetings into my google calendar? Thanks
Query
December 10, 2009 at 2:04 pm
You can do that from the main OpenlyLocal site, either for all the meetings for a council, or just those for a given committee, but you can’t do this yet from the gadget. However, it’s a good idea, so I’ve added it to the features list . Should be able to get it done next week, and it will appear automatically in the gadget. Feel free to add feature requests/or bug reports.
C.
countculture
December 10, 2009 at 2:30 pm
[…] Openly Local: Sigue la agenda de tu municipio y tus concejales Por Ignacio Soto el 16 Diciembre 2009 Leído 1 veces No hay comentarios tweetcount_url='http://www.ogov.eu/openly-local-sigue-la-agenda-de-tu-municipio-y-tus-concejales/';tweetcount_title='Openly Local: Sigue la agenda de tu municipio y tus concejales';tweetcount_short_url='http://bit.ly/8fX7kV';tweetcount_cnt=0;tweetcount_src='[Interesante]';tweetcount_via=false;tweetcount_api_key='R_10cf8d46f0dd9278949fe5506c084b2a';Este proyecto del Reino Unido consiste en una página web que permite el acceso a los datos sobre el trabajo que se desarrolla en el Ayuntamiento. La página estructura la información para que pueda ser comparada y reutilizada mediante mash-ups. Además de abrir la API y ofrecer datos exportables para que los programadores puedan republicar información en otras páginas, también disponen de un gadget de Google. […]
Openly Local: Sigue la agenda de tu municipio y tus concejales | OGov
December 16, 2009 at 12:05 pm
[…] has a Google gadget for accessing local council data, and a Ning application (although sadly Ning is phasing out its […]
Citizensheep » Talk About Local unconference 2010: Finding stories
April 18, 2010 at 5:44 pm
[…] has a Google gadget for accessing local council data, and a Ning application (although sadly Ning is phasing out its […]
Webmaster blog » Hyperlocal election reporting, story sourcing and libel avoidance: Talk About Local unconference 2010
April 19, 2010 at 9:42 pm
[…] OpenlyLocal Google gadget (also works on iGoogle) […]
Widgets for hyperlocal web sites — Journal Local
July 26, 2010 at 11:58 am
Hi Chris, any news on the WordPress plugin?
Keep up the great work
Matt
Matt Johnson
April 27, 2011 at 8:05 pm
Think Philip John did it but not sure whether he published it. However there’s a general javascript widget that should work anywhere: See https://countculture.wordpress.com/2010/04/17/expirimental-openlylocal-widget-council-info-on-any-website/
countculture
April 28, 2011 at 10:08 am