|The Pi's of London|
I downloaded the map and put in on raspberry pi powered minecraft server and tweeted a picture of it.
David Whale (@whaleygeek) had an idea, use the data from Ryan Walmsley (@ryanteck)'s rastrack.co.uk to show the Pi's of the UK in minecraft.
It works like this:
- I took the Minecraft map Ordnance Survey (OS) and put it on a raspberry pi powered minecraft server
- I got the locations of all the raspberry pi's logged on http://rastrack.co.uk and parsed the data using python
- I converted the latitude and longitude for each pi to OS grid reference, by making a call to a website created by David Whale http://www.thinkingbinaries.com/test/gpsmap/geodesic.php5, passing the lat and lon and parsing the returned grid reference
- I converted the OS grid reference to minecraft location by porting the code in the converter page supplied by OS to python http://oslabs.s3.amazonaws.com/convert.html
- I used the raspberryjuice plugin to use Minecraft:Pi edition API code to create raspberries in the sky at the right co-ordinates
If you want to have a look connect minecraft to martinohanlon.servebeer.com:25565.
If you 'hit' (right click with a sword) the middle red wool block in the raspberry, it will tell you who the Pi belongs too.
The code is really hacky, I pulled it together in a few hours, I will look at how I can make this a little more robust and also so it can be re-run to pick up new Pi's added into rastrack.co.uk.