Capture Batch Script updated

Looking back the other day at this post, I remembered that it had somehow stopped working on the eeepc. I suspected this had something to do with vlc and was always bothered anyway about using such a big, fully-featured programme in non-gui mode for such a simple task. Breaking a butterfly upon a wheel and other such sayings.

Searching for something completely different i.e. some information about python graphical libraries, I came upon this page and downloaded ‘streamer’ from the repositories. It was just what I needed. I thoroughly recommend it for such tasks as quickly grabbing images at periodic intervals from a web cam (as experimented with during my Going Solo residency). In the spirit of sharing, here’s the updated script I call from a cron job (see earlier post for details about this)

#!/bin/bash

cd $HOME/captures

D1=`date +%Y-%m-%d`
D2=`date +%Y%m%d_%H-%M-%S`

# If the date directory does not exist, create it
if [ ! -d $D1 ] ; then
mkdir -p $D1
fi

#cd to this new directory
cd $HOME/captures/$D1

# capture with streamer
streamer -c /dev/video0 -o $D2.jpeg
Posted in Bash scripting, Linux, Software, Webcam | Tagged , , | Comments Off on Capture Batch Script updated

Plant sensors

As Martin and I were walking, I was struck again by the idea that we are surrounded by sensors in the form of plants. Even in the heart of a city, there are plants that we share the urban environment with which cannot move and so are experts of their location, expressing so eloquently the particulars of exactly where they are, culminating ‘data’ about weather, light conditions, rainfall, the chemical and fungal contents of the soil and air. So much more sophisticated than any sensor we could create. Pity we can’t digitise them – or can we?

Chamomile and Yellow Chamomile

Chamomile and Yellow Chamomile

Viper's Bugloss

Viper's Bugloss

Some sort of Vetch

Some sort of Vetch

Euphorbia Waldsteinii

Euphorbia Waldsteinii

Posted in Diary, Walking | Tagged , , , , | Comments Off on Plant sensors

Map and chart mashup

This is an attempt to visualise the sensor output against the gpx file.

Rotated map and sensor graph

Rotated map and sensor graph

Posted in Diary, GPS, Walking | Tagged , , | Comments Off on Map and chart mashup

Walk with Martin in Adlershof

Yesterday, 5 May, Martin and I met at Treptower Park at 14:00, took the S-Bahn to Adlershof and walked through that interesting landscape, destined to be Berlin’s science park which, thanks to economic meltdown and lack of investment, went off half-cocked, making for the unique look of named streets laid out between empty plots.

I was very impressed by the variety of plants, which I will scan in for a later post

Here is a map of our walk, through the science park, the ‘Aerodynamischer Park‘ and the site of the ‘Flugplatz Johannisthal‘, one of Germany’s first aerodromes.

Walk Through Adlershof

Walk Through Adlershof with Martin Howse

Here is the same walk, captured with Martin’s sensor board (like below) – graph produced by gnuplot, tips from Martin’s site

Sensor Log of Adlershof Walk

Sensor Log of Adlershof Walk

Posted in Diary, GPS, Walking | Tagged , , | Comments Off on Walk with Martin in Adlershof

Two More Logs

Just about to go for a walk with Martin in Adlershof, (more later), but just before I step out, I’m going to post these two logs with his sensor board. I’ll probably update this post later when I’ve talked to him

Despite what the image says, I think I logged this overnight between the 29-30 April
Martin's Sensor Log 30 April

This log comes from the night of 1st May, riot day here in Berlin
Martin's Sensor Log 1 May

Posted in Diary | Comments Off on Two More Logs