Anton was woken up by chainsaws today at 8:00am. A lot of chainsaws. After his morning run Anton picked up a lot of firewood and stashed it on the roof for next winter.
Just like logstash but without the moustache.
Anton was woken up by chainsaws today at 8:00am. A lot of chainsaws. After his morning run Anton picked up a lot of firewood and stashed it on the roof for next winter.
Just like logstash but without the moustache.
It should be easy if we get the right usb dongle. So far we have tried 2 different realtek types and they fail miserable with the existing open kernel drivers. Not going to compile crap kernel modules and use hacked ancient versions of hostap, thanks
Our last purchase which is a “TP-Link TL-WN722N” should hopefully be an atheros chipset which we always had great experiences with.
Well the previous two we bought were supposed to be atheros but only until version 3. The ones we received where version 4…
If this works it will be great. It also has external antenna connection.
***UPDATE***
And it does work out of the box ...
Assuming that a bridge is setup already with the wired interface in it and something like dnsmasq is serving ip addresses all needed for it to work is:
1
|
|
Haveged is a daemon that helps providing entropy for our wpa ap.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Start the services
1 2 |
|
We also need a couple of iptables rules for NAT:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
The $WAN interface could be anything that the internet is plugged in. In our case a 4g usb dongle on usb0. We add this to /etc/rc.local before the exit 0 line at the end if it exists.
1 2 3 |
|
This is a trip of 2 miles, 6¼ furlongs and 2 locks from Broxbourne Rowing Club to Cheshunt Visitor Moorings travelling south on the Lee and Stort Navigation (River Lee).
This will take 1 hour and 11 minutes.
Lee and Stort Navigation (River Lee) | |||
From Broxbourne Rowing Club to: | |||
Cheshunt Visitor Moorings
14 day moorings
|
2 miles, 6¼ furlongs, 2 locks |
Total distance is 2 miles, 6¼ furlongs and 2 locks Today’s travel includes at least 1 small aqueduct or underbridge.
This is made up of 2 miles, 6¼ furlongs of small rivers; 2 broad locks.
This will take 1 hour and 11 minutes. For initial calculation purposes (before adjusting for such things as overnight stops) this is taken as 1 day of 1 hour and 11 minutes.
The trip can be done in under one day, so no overnight stopping places have been calculated.
It’s the End of October 2014, things are on changing on Natascha’s side. The flat she has lived in for over 8 years has been sold to a new owner. For these past years she rented directly from the previous owner and were on good terms. The flat was old and a bit grubby, still, it was a London oasis! Most of her friends were living near by. And it is affordable – let’s not forget this is after London 2012, East London was experiencing mass gentrification, a new term was used for it too: social cleansing.
On a rainy October evening, at around 9.30pm to be precise, the ‘translator’ of the new owner rang the door bell and told Natascha that the rent will go up from £800 to £1200 per month, without doing any sort refurbishment. This is too much of a rent hike at once and is legally not sound, so she said she won’t pay this much and stick to the £800. Although it was to be expected that a situation like this could happen, after all the flat is close to hipster central, as we call Broadway Market in Hackney, being confronted with this situation wasn’t an easy one. This won’t be the end of it, for sure.
Anyway, back to boating, we had to head by train to Broxbourne, this time with the cat in tow. Poor kitty, firstly wasn’t used to travel by train, let alone by boat. The weather was terrible, it rained heavily, the boat felt cold and humid. We stayed over night, for Natascha it was the first time and wasn’t exactly thrilled, not least because she had a feeling that soon this will be her way of living. Barely 20m2 for two people and a cat.
The next morning we got ready, the engine was rumbling, the cat terrified. We cruised towards Cheshunt. It was a misty morning, the rain stopped but the air was full of humidity. Natascha was preoccupied with her thoughts and to figure out together with Adnan how to work the locks. Is this going to be her future job?
This is a trip of 4 miles, 3½ furlongs and 4 locks from Stanstead Abbots Bridge No 59A to Hertford Basin Winding Hole travelling west on the Lee and Stort Navigation (River Lee).
This will take 2 hours and 38 minutes.
Lee and Stort Navigation (River Lee) | |||
From Stanstead Abbots Bridge No 59A (Village on east bank. B181. Also known as Abbots Road Bridge No 59A) to: | |||
Ware Town Bridge No 65
A1170
|
2 miles, 2 locks | ||
Ware Town Quay
48 hour moorings
|
2 furlongs, 0 locks | ||
Balance Engine House
For pumping water from the Lee into the New River
|
1 mile, 2¾ furlongs, 1 lock | ||
Hertford Basin Winding Hole
Towpath side bridge, Horse Bridge No 72, Channel leading to the River Lee
|
6¾ furlongs, 1 lock |
Total distance is 4 miles, 3½ furlongs and 4 locks Today’s travel includes at least 1 moveable bridge.
This is made up of 4 miles, 3½ furlongs of small rivers; 4 broad locks.
This will take 2 hours and 38 minutes. For initial calculation purposes (before adjusting for such things as overnight stops) this is taken as 1 day of 2 hours and 38 minutes.
The trip can be done in under one day, so no overnight stopping places have been calculated.
At the end of September a group of us went up to St. Margarets by train in order to help Adnan to move the boat. We arrived with delay, had to fix the solar panels on the roof first before we could start with cruising. Our friends boat ‘Blue Morn’ was towed together with Quintessence, this is how we headed up north.
It is a beautiful part of the River Lea Navigation, we passed Ware, a small town with beautiful houses along the canal. The canal itself transforms into a rural one, no more metal or concrete banks, instead they became natural. Up in Hertford the canal was so ‘wild’ that a big flock of geese on the other side of the canal found it suitable for their resting place.
Between June, July & August we didn’t do much in terms of cruising, below an entire summary of the journey made in several cruises from Uxbridge in West London all the way up to St Margarets.
This is a trip of 46 miles, ¾ furlongs and 25 locks from Uxbridge Boat Centre to Stanstead Abbots Bridge No 59A.
This will take 20 hours and 32 minutes which is 2 days, 6 hours and 32 minutes at 7 hours per day.
From Uxbridge Boat Centre travel southeast on the Grand Union Canal (Grand Junction Canal – Main Line – Gayton to Brentford) for 5 miles, ¾ furlongs and 1 lock to Bull’s Bridge Junction, then travel east on the Grand Union Canal (Paddington Branch) for 13 miles to Little Venice, then travel east on the Grand Union Canal (Regent’s Canal) for 6 miles, 7¼ furlongs and 8 locks to Hertford Union Junction, then travel northeast on the Grand Union Canal (Hertford Union Canal) for 1 mile, ¾ furlongs and 3 locks to Hertford Union Canal Junction, then travel north on the Lee and Stort Navigation (River Lee: commercial section) for 11 miles, ¾ furlongs and 7 locks to Waltham Town Lock No 11, then travel north on the Lee and Stort Navigation (River Lee) for 8 miles, 7¼ furlongs and 6 locks to Stanstead Abbots Bridge No 59A.
Grand Union Canal (Grand Junction Canal – Main Line – Gayton to Brentford) | |||
From Uxbridge Boat Centre (Also known as Uxbridge Boatyard Dock) to: | |||
The Malt Shovel PH
Vintage Inns<BR>Braunston 83 miles
|
7¼ furlongs, 0 locks | ||
Cowley Sanitary Station
Also known as Cowley Services
|
a few yards, 0 locks | ||
Toll House Bistro | ¼ furlongs, 0 locks | ||
Cowley Lock No 89
Towpath crosses over lock gates
|
a few yards, 0 locks | ||
Cowley South Visitor Moorings
7 day moorings (£25 per day for overstaying)
|
½ furlongs, 1 lock | ||
The Water’s Edge Bar
Bar and Restaurant
|
4¾ furlongs, 0 locks | ||
High Line Yachting Chandlery (Cowley) | ¼ furlongs, 0 locks | ||
Packet Boat Marina Service Wharf | ¼ furlongs, 0 locks | ||
Cowley Peachey Junction
Junction with Grand Union Slough Branch
|
1¼ furlongs, 0 locks | ||
Tesco Yiewsley Moorings | 1¼ furlongs, 0 locks | ||
The Woolpack PH | 2 miles, 0 locks | ||
The Old Crown PH | 4¾ furlongs, 0 locks | ||
Bull’s Bridge Junction
Junction with Grand Union Paddington Branch. Opposite is a dry dock.. Also known as Bull’s Bridge Wharf, Bull’s Bridge Dock
|
4½ furlongs, 0 locks | ||
Grand Union Canal (Paddington Branch) | |||
From Bull’s Bridge Junction (Junction with Grand Union Paddington Branch. Opposite is a dry dock.. Also known as Bull’s Bridge Wharf, Bull’s Bridge Dock) to: | |||
Uxbridge Road Visitor Moorings
7 day moorings
|
1 mile, 1¼ furlongs, 0 locks | ||
Willowtree Marina | 6½ furlongs, 0 locks | ||
Willow Tree Open Space Moorings
Also known as Site of Yielding Dock
|
1¼ furlongs, 0 locks | ||
Engineer’s Wharf Moorings
Residential Moorings
|
3¾ furlongs, 0 locks | ||
Northolt Boatyard
High Line Yachting (Northolt). Also known as High Line Yachting (Northolt)
|
1 mile, 1 furlong, 0 locks | ||
Greenford Visitor Moorings
14 day moorings (£25 per day for overstaying). Also known as Black Horse Visitor Moorings
|
7¾ furlongs, 0 locks | ||
The Black Horse PH (Greenford)
Fuller's
|
½ furlongs, 0 locks | ||
Piggery Bridge No 12
Alperton
|
2 miles, 1¾ furlongs, 0 locks | ||
Sainsburys Alperton Moorings [see navigational note 1 below]
Also known as Alperton
|
¾ furlongs, 0 locks | ||
North Circular Road Aqueduct | 1 mile, ¼ furlongs, 0 locks | ||
Grand Junction Arms Visitor Moorings
7 day moorings (£25 per day for overstaying). @Disraeli Road, Harlesden, London Borough of Brent, Greater London, England, United Kingdom
|
7¾ furlongs, 0 locks | ||
Grand Junction Arms
Young’s
|
½ furlongs, 0 locks | ||
Kensal Green Visitor Moorings
14 day moorings (14 days in one year – £25 per day for overstaying)
|
1 mile, 7¼ furlongs, 0 locks | ||
Kensal Green Stop & Shop Moorings
4 hours moorings
|
2 furlongs, 0 locks | ||
Kensal Green Bridge No 4
B450
|
¾ furlongs, 0 locks | ||
The Union Tavern
Fuller’s
|
6 furlongs, 0 locks | ||
Harrow Road Bridge No 3
@Harrow Road, Paddington, City of Westminster, Greater London, England, United Kingdom (A404). Also known as Westbourne Green Bridge
|
3 furlongs, 0 locks | ||
Little Venice Services
Also known as Little Venice Sanitary Station
|
3½ furlongs, 0 locks | ||
Paddington Stoplock | ¼ furlongs, 0 locks | ||
Little Venice
Junction of Grand Union Regents Canal and Paddington Branch. Also known as Browning’s Pool, Brownings Pool, Little Venice Lagoon, The Lagoon
|
¾ furlongs, 0 locks | ||
Grand Union Canal (Regent’s Canal) | |||
From Little Venice (Junction of Grand Union Regents Canal and Paddington Branch. Also known as Browning’s Pool, Brownings Pool, Little Venice Lagoon, The Lagoon) to: | |||
Maida Hill Tunnel (Southwest end)
Edgeware Road crosses here. Also known as Edgeware Road
|
2¼ furlongs, 0 locks | ||
Cumberland Basin
Junction with Cumberland Market Branch. Also known as Cumberland Market Branch
Having passed through Maida Hill Tunnel. |
1 mile, 2½ furlongs, 0 locks | ||
Camden Visitor Moorings
Max. 7 days mooring (£25 per day for overstaying)
|
1 furlong, 0 locks | ||
Hampstead Road Locks No 1A & 1B [see navigational note 2 below]
Only remaining double locks on the Regent’s Canal. Also known as Camden Lock
|
2¼ furlongs, 0 locks | ||
St Pancras Basin [see navigational note 3 below]
St Pancras Cruising Club
|
7 furlongs, 3 locks | ||
St Pancras Lock Winding Hole [see navigational note 4 below] | 1¼ furlongs, 1 lock | ||
Battlebridge Basin
London Canal Museum. Also known as Horsfall Basin, Maiden Lane Basin, Albert Wharf
|
2 furlongs, 0 locks | ||
Islington Tunnel (West end) [see navigational note 5 below]
Muriel Street crosses here. Also known as Muriel Street
|
2 furlongs, 0 locks | ||
Islington Tunnel (East end) [see navigational note 6 below]
Colebrook Row crosses here. Also known as Colebrook Row
Having passed through Islington Tunnel [see navigational note 7 below]. |
4¼ furlongs, 0 locks | ||
City Road Lock No 5 [see navigational note 8 below] | 1¼ furlongs, 0 locks | ||
Wenlock Arms Pipe Bridge [see navigational note 9 below] | 1¾ furlongs, 1 lock | ||
Hertford Union Junction
Junction of Regent’s and Hertford Union Canals. Also known as Hertford Union Canal and Regents Canal Junction
|
2 miles, 3¼ furlongs, 3 locks | ||
Grand Union Canal (Hertford Union Canal) | |||
From Hertford Union Junction (Junction of Regent’s and Hertford Union Canals. Also known as Hertford Union Canal and Regents Canal Junction) to: | |||
Hertford Union Top Lock No 1 [see navigational note 10 below]
Also known as Old Ford Upper Lock, Homerton Footpath Lock
|
5½ furlongs, 0 locks | ||
Hertford Union Bottom Lock No 3 [see navigational note 11 below]
Also known as Old Ford Lower Lock
Having passed through Old Ford Three Locks. |
2 furlongs, 2 locks | ||
Hertford Union Canal Junction
Junction of Hertford Union Canal and River Lee. Also known as Hertford Union Canal and Lee Navigation Junction
|
1¼ furlongs, 1 lock | ||
Lee and Stort Navigation (River Lee: commercial section) | |||
From Hertford Union Canal Junction (Junction of Hertford Union Canal and River Lee. Also known as Hertford Union Canal and Lee Navigation Junction) to: | |||
Tottenham Lock No 17 [see navigational note 12 below] | 4 miles, ¾ furlongs, 0 locks | ||
Stonebridge Lock No 16 [see navigational note 13 below] | 5¼ furlongs, 1 lock | ||
Enfield Lock No 13 [see navigational note 14 below] | 4 miles, 7½ furlongs, 3 locks | ||
Rammey Marsh Lock No 12 [see navigational note 15 below]
BW key needed to operate the gates / windlass for the paddles
|
6½ furlongs, 1 lock | ||
Waltham Town Lock No 11 | 5 furlongs, 2 locks | ||
Lee and Stort Navigation (River Lee) | |||
From Waltham Town Lock No 11 to: | |||
Aqueduct Lock No 8 [see navigational note 16 below] | 2 miles, 5 furlongs, 2 locks | ||
Rye House Junction
Junction of Rivers Stort and Lee
|
4 miles, ½ furlongs, 4 locks | ||
Rye House Bridge No 58
With Pipe Bridge alongside
|
4 furlongs, 0 locks | ||
Stanstead Abbots Bridge No 59A
Village on east bank. B181. Also known as Abbots Road Bridge No 59A
|
1 mile, 5¾ furlongs, 0 locks |
Total distance is 46 miles, ¾ furlongs and 25 locks. There are at least 6 small aqueducts or underbridges and 2 tunnels (Maida Hill Tunnel and Islington Tunnel [see navigational note 7 below]. ).
This is made up of 26 miles, ¾ furlongs of broad canals; 11 miles, ¾ furlongs of commercial waterways; 8 miles, 7¼ furlongs of small rivers; 18 broad locks; 7 large locks.
This will take 20 hours, 32 minutes which is 2 days, 6 hours and 32 minutes at 7 hours per day. For initial calculation purposes (before adjusting for such things as overnight stops) this is taken as 3 days of 6 hours and 50 minutes each.
This is calculated based on 3 full days travelling starting at Uxbridge Boat Centre.
Each full day will be approximately 6 hours and 50 minutes travelling.
Anton spent three weeks in Croatia near the city of Gračac in a very beautiful region participating in MMKAmp. This is an international camp on the theme “Future Environments” for people interested in ecology, autonomy, sustainability, low impact living, technology and DIY culture.
The heart of the camp was a hand made geodecic dome with solar panels and satellite internet.
It was also the first opportunity to test my boattr mobile box in the field there and Anton was quite pleased about the results.
Apart from being very usefull keeping all electronics and laptop charged in the middle of nowhere (Anton could only use the laptop 2 hours a day but this is not bad at all), Anton also did some small improvements in the code and the construction and finally got to show it to people for the first time.
A hardware/software research project into the management of off-grid, autonomous sites. It collects and processes data from enviromental sensors and provides remote monitoring, control and automation.
Optionally it can also provide a host of other peripheral services that can run on the small embedded computer (wireless AP, internet connectivity, vpn remote access, tor gateway, file storage etc)
Since living off-grid Anton realised that he was lacking good information about the energy consumption and production, battery health and the various other subsystems of the boat.
One part of the project is about being able to better understand how those systems work by collecting, analysing and visualising their data.
The other interesting aspect is using realtime information from the sensors as well as historical data to make clever decisions and respond to external changes.
It seems that there was no free software based solution to fit my needs so Anton decided to Do It.
At this point boattr has current, voltage, temperature and water pressure sensors. Data is collected from the sensors and stored in a db every minute. We can create real time graphs as well as mine the database for other historical data.
The heart of the system is a beaglebone black ARM embedded computer running Debian. Most of the sensors are analog and connected via a 10 channel ADC => I2c IC.
The temperature sensors are using the 1wire interface and one can read more details about the 1wire setup
Current sensing using the bidarectional allegro acs714 hall effect sensors using the breakout board from pololu
Voltage using a simple voltage divider
The software part of boattr is made of a ruby module with two classes, Sensors and Data and the puppet provisioning code. The Sensors
class contains all the functionality to obtain the results from the the various different sensors connected to the system.Data
is responsible for processing resulting data, saving and sending to other places.
Here is an example of a box called ‘brain01’ on the boat retrieving data from the sensors, sending them to the database and real time graphs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
A cron job will run the above code every minute saving json formatted documents on an instance of couchdb as well as real time graphs using graphite.
Puppet is used to configure the system, install packages, configuration files and cronjobs:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
The graphs look like this:
dashing is in the works.
The code is available on github
#provisioning
At the moment we need a BeagleBone Black (BBB) with debian. Recent revisions (the ones with 4GB eMMC ) come with debian as default. If you have an older one you will have to install it yourself.
Connect to the BBB with ssh. We assume You have debian wheezy already installed. For the following steps you have to be root. Make sure there is internet connectivity as well.
##change the hostname replace name in /etc/hostname and /etc/hosts. A restart is required after this step or before running puppet below.
##Install puppet git and librarian
apt-get update
apt-get install puppet git librarian-puppet
##clone the repo
cd /root/
git clone git://github.com/galp/boattr.git
cd boattr
##Install the required puppet modules with librarian
librarian-puppet install
##customise puppet
Have a look in provision/default.pp. You can either modify the ‘default’ node definition in this file or copy one of the blocks that looks more suitable to a different file called $HOSTNAME.pp in the same directory. Change the node name in the file along with anything else required. Make sure the fully quilified dns names much.
##run puppet to provision all the components
Run puppet like below pointing to the right file.
puppet apply --modulepath="/root/boattr/provision/modules/:/etc/puppet/modules/" --hiera_config="/root/boattr/hiera/hiera.yaml" --verbose provision/default.pp
It might take a few runs until all dependencies are resolved and you should have all the components installed.
Boattr in this context is the ruby program that runs every minute collecting data from sensors, analyzing and sending to db and dashboard among other things.
There is a configuration file that we need to edit. This file is located at /root/boattr/config.yml. By default it does not exists so we can use the config_sample.yml as a starting point.
cp /root/boattr/config_sample.yml /root/boattr/config.yml
Anton and Adnan installed the boattr microcomputer on Quintessence. Now there are two boattr boxes on the UK Waterways (Blue Morn & Quintessence). boattr runs on a beagle bone black.
Powered Usb Hub for Beagle Bone Black
Another long term todo item ticked today. Adding a powered usb hub to brains , having only one port which was permanent taken by the 4g modem was not very helpful.
Now we can have 4g modem, 3g phone, usb interface for permanently connected stereo hydrophone, wireless and an external hard disk.
Our previous attempt to do so ended up with a fried hub , beaglebone and wireless dongle when accidentally wired the usb hub power to 12v instead of 5V.
Yesterday Anton popped to maplins and got a 4 port cerulian usb hub. Plugged it in and it didn’t work. Anton was very suprised that something as simple as a usb hub would not work. After searching on the internet Anton found that this is a known issue.
The solution is to open the hub and cut the red cable therefore stopping the hub from providing power to the beaglebone.
All working now it seems. Great stuff.
And the installation of the boattr box on Quintessence (using a beagle bone micromputer and a 4G phone, all connected over a USB hub and WiFi access point):
With boattr we use Dallas 1-wire microlan for a network of temperature sensors. With this post we will make an attempt to document it. Not trying to explain what 1-wire is as it is documented elsewhere on the internet.
1-wire is a very simple communications protocol for sensors. The beaglebone black has two i2c devices ( /dev/i2c-0 and /dev/i2c-1 ) and we are using ‘/dev/i2c-1’. In order to get it to work we will have to add a custom device tree. We did this by reading this very helpfull blog post
For debian the dtc -O dtb -o BB-W1-00A0.dtbo -b 0 -@ BB-W1-00A0.dts
command fails because a patch is missing. The easiest way to get around this is to download a patched version from here and use that instead.
( All the above should be done by puppet for boattr)
The information from the sensors appear in special files under /sys/bus/w1/devices/$ID/w1_slave. Reading /sys/bus/w1/devices/$ID/w1_slave gives as the temperature value in C.
Each sensor has a unique 64bit id that we can use to address it :
1 2 3 4 5 |
|
The temperature method looks like this :
1 2 3 4 5 6 7 8 9 10 11 12 |
|
The sensor used is the DS18S20 datasheet.