Connecting the River Mersey to Twitter

Last week there were a couple of interesting ships visiting the Mersey and Liverpool - the aircraft carrier HMS Ark Royal was here for the weekend, and the world's biggest supertanker stopped off at one of the oil terminals.

You can't quite see the river from my front window - someone built a huge cathedral in the way - but it got me thinking about how nice it would be to have a feel for what was happening on the river. Obviously, given my interest in the "Internet of Things", I wondered how I could connect the river to the Internet...

Strictly speaking, this little fun project isn't really connecting the physical river to the Internet but it's doing the next best thing. Ship AIS have a great service showing the realtime location of all sorts of shipping, so I've knocked up a little script to scrape results from the Ship AIS view of the Mersey.

When ships cross an imaginary line from Fort Perch to the Seaforth Container Terminal, the script updates the status of the @merseyshipping twitter user with something like this:

Example of the status updates from the MerseyShipping twitter-bot

It tells you the name of the ship and whether it was entering or leaving the river. It also provides a link to Ship AIS to see where the ship is now and tells you what kind of ship it is (if we know).

I'm not making any guarantees as to how reliable the service will be as it's just a bit of fun, but feel free to follow @merseyshipping if you'd like to keep track of the comings and goings on the river.

Technorati Tags:

now am retired and go for

now am retired and go for walks aiong the river .im interested in the traffic useing it departure /arrival times how the docking works ect.where the pilot boat boards to bring ships in ect if any knows a website i can log on to i would be most greatfull.david

Glad you like it. Your blog

Glad you like it. Your blog looks like it's worth watching too - nice to get a wider picture of what's happening on the river as well as just the comings and goings of the ships.

In theory you have to ensure you don't call the twitter API too frequently, but there isn't enough traffic on the Mersey for that to be a problem (so far at least :-)

Hi Adrian I'm missing my fix

Hi Adrian

I'm missing my fix of @merseyshipping ...has it been down for a day or two??

John

Hi John, Yeah, sorry, the

Hi John,

Yeah, sorry, the script running @merseyshipping had fallen over and I didn't notice for a bit. As you found when you commented about it on twitter, that's the best way to alert me to the problem. However, I've improved the resilience of the script making the updates so hopefully it'll be less likely to happen in future.

Ah! What a coincidence as I

Ah! What a coincidence as I was only thinking about doing this (not that I quite know how!) - so thanks for doing it. I spotted a similar one for London's Tower Bridge (@towerbridge) earlier in the week.

Don't you have to worry about doing too many calls to the twitter api or something like that?

I've recently started (evidently so) a little site about the Mersey so I'll get around to giving you a mention soon.

Interesting stuff - I've subscribed to your blog!

Cheers

John

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options