RogerBW's Blog

Introduction to the Instrumented Life 17 February 2014

I don't like being spied on. But I don't mind gathering my own data. In July of 2012 I bought a USB GPS receiver (a GlobalSat BU-353, the cheapest available device that had a good score on the gpsd compatibility list) for use with a Raspberry Pi, and I have it running for most car trips I make. (Images follow.)

The Pi is plugged into a cigar-lighter power adaptor (my car has an extra socket in the boot, which is handy for this) and a very simple piece of software records the raw output of gpsd to a file on the Pi's SSD: it's a series of lines of JSON. That can later be interpreted and overlaid onto maps; here I'm using OpenStreetMap Mapnik tiles.

So here's the map of the domestic car journeys for which I have logs.

Map of UK journeys

And here's the foreign version.

Map of all journeys

Which is an interesting start. But there's much more that's possible. Every data point has a time and speed attached.

Here's a really simple example to get started with. Consider those two routes round Denmark in the foreign map above: they diverge around Hamburg in the south, and a few miles outside Copenhagen in the north. The land route (north through Denmark and a sharp right turn) took 4:25:46; the ferry route took 4:52:46. (Both of these include breaks, of course.) As far as mileage goes, the land route is about 283 driving miles, while the ferry route is about 199.

So I can now make an informed decision: is it worth saving 84 miles of driving (fuel, car wear, etc.) to pay 80-plus pounds for the ferry and take half an hour longer? Well, no.

Even though the Danish Ministry of Transport would like one to use the ferry route (I've been asked in a lay-by why we were using the road rather than the nice ferry), from this data point it seems better not to.

Comments on this post are now closed. If you have particular grounds for adding a late comment, comment on a more recent post quoting the URL of this one.

Search
Archive
Tags 1920s 1930s 1940s 1950s 1960s 1970s 1980s 1990s 2000s 2010s 3d printing action aeronautics aikakirja anecdote animation anime army astronomy audio tech base commerce battletech beer boardgaming bookmonth chain of command children chronicle church of no redeeming virtues cold war comedy computing contemporary cornish smuggler cosmic encounter coup cycling dead of winter doctor who documentary drama driving drone ecchi espionage essen 2015 essen 2016 essen 2017 existential risk falklands war fandom fantasy film firefly first world war flash point food garmin drive gazebo geodata gurps gurps 101 harpoon historical history horror hugo 2014 hugo 2015 hugo 2016 hugo 2017 hugo-nebula reread in brief avoid instrumented life kickstarter learn to play leaving earth linux mecha museum mystery naval non-fiction one for the brow opera perl photography podcast politics powers prediction privacy project woolsack pyracantha quantum rail ranting raspberry pi reading reading boardgames social real life restaurant reviews romance rpg a day rpgs science fiction scythe second world war security shipwreck simutrans south atlantic war squaddies stationery steampunk stuarts suburbia superheroes suspense television the resistance thirsty meeples thriller tin soldier torg toys trailers travel vietnam war war wargaming weather wives and sweethearts writing about writing x-wing young adult
Special All book reviews, All film reviews
Produced by aikakirja v0.1