Tag Archives: currentcost

Defining the social grid

behaviour_graph

I’m not sure if there has been any talk about the Social Grid but I’ve been doing a lot of thinking about it. When I say Social Grid, I mean managing and sharing energy usage online. Bleeding edge developers and early adopters of technology are not averse to sharing their energy usage online. But if the internet is going to be a reliable and secure tool for managing energy usage by the mass market, there are various attributes required.

The social grid is a reality now, with the Government about to start trialling a social networking type system for a small sample of communities spread across the UK. Each community will compete and compare energy usage.

So with this in mind, here is my attempt at defining the social grid. This is very much a work in progress, which no doubt will be added over time and discussed and criticised etc. I look forward to peoples thoughts on these initial points. Let’s try and shape the future of energy monitoring.

In the Social Grid

1.  The user is boss and can restrict or share energy usage data as they wish
2.  Data is anonymous for public consumption on the internet and in comparison tables
3.  Monitoring devices and hardware must be low power
4.  Integration with online services for mashup analysis of data like the AMEE API
5.  A user can share real, anonymous, randomised or event driven data to users or groups of users with online services
6.  Cross platform and cross device

Watch me on The Friday Morning Report

Today I had the pleasure of appearing on the fridaymorningreport.tv talking about HomeCamp.  I was as nervous as crap about this.  I tune in to this show every week and Craig asked me to appear on thre show and talk about HomeCamp.  Shaking aside, I enjoyed it much. Enjoy.

Home Camp Looking Back Looking Forward

Last weekend we silently opened up registration for the next Home Camp in April 2009.  We are yet to confirm the exact date and venue.  However, head over to the wiki and sign-up and suggest session topics.

http://homecamp.pbwiki.com/

This week, we released some video footage over on the Home Camp wiki, which was originally shot for the fridaymorningreport.tv 24 hour Marathon in aid of Medicines sans Frontiers.  Sadly, this was postponed, as Craig has seriously done his back in.  Get well soon Craig, look forward to seeing you back to full speed soon.

We’re still planning on contributing to the FMR marathon when it does go ahead, in the mean time, indulge in some of the footage that we shot.

The first Home Camp TV video is a brief chat with Martin Dix from CurrentCost about how the company’s technology is moving forward.

The second video is an interview with Andy Piper, looking back at the first Home Camp and looking forward to the next one in April. General rambling about software and hardware hacks.

We cover a lot of subjects in this conversation, including home automation, Current Cost, Google Power Meter, Pachube, Nokia Home Control Center, arduino, Home Easy to name a few.


Home Camp from chris dalby on Vimeo.

Unboxing the New Current Cost Meter


Unboxing the new Current Cost Meter from chris dalby on Vimeo.

The CC128 is latest electricity monitor by Current Cost capable of monitoring your electricity usage and up to 9 individual appliances like the fridge freezer or TV.

You can also attach a data cable to the CC128, giving you up to 7 years of historical data and allowing you to tap into the realtime data to produce graphs and feeds or integrate into your home automation hub.

There is a great deal of work going on around this type of technology. If you want to see the type of applications available and the ways people are using these systems, head over to the Home Camp wiki, where you’ll find software downloads, videos and links to more information.

Smart Meters Just Became Smarter

After the oil is gone

Image Licensed under Creative Commons from Identity Chris is’ Photostream

A new utility company in the UK called First:Utility announced the launch of a new smart metering service for customers today.  The service means an end to estimated energy bills, no overpaying, and more importantly will prevent customers from getting unwelcome surprises when bills arrive.

Enjoy complete control of your energy usage enabling you to cut costs and reduce your carbon footprint

The smart meters are connected to First:Utility via mobile phone, and send one reading for gas every day, and 48 readings for the electricity each day (once every half an hour).  The data is used by First:Utility to produce accurate bills without the need of meter readers.  The customer has access to a realtime chart developed in flex (by the looks of it I think), along with a current cost meter for the customer to track their energy use both online and by looking at the current cost meter in the home.  Although with only one gas reading per day, it is unclear whether the gas metering will allow the customer to make any meaningful analysis of their gas usage at different times throughout the day.

You can see a video from BBC2’s Working Lunch programme that shows the new system from First:Utility.  This is not on iPlayer, so I think it should be fine for non UK viewers.

If you do not live in the UK, you probably do not realise that energy bills are a huge bone of contention. The energy companies were privatised starting with British Gas in 1986 and the electricity companies were reorganised and privatised in 1989, thereby creating commercial entities focussed on making profits for shareholders.  Which leads us to the situation the country finds itself in today with the big six energy companies having a strangle hold on the domestic energy market, rocketing energy prices and 4.4 million households in energy poverty.

According to oilbarrel.com, Brent Crude Oil is currently trading at around $45 a barrel, more than $100 below peak pricing in July.  Gas and electricity prices are linked to oil prices and while the wholesale pricing of gas and electricity has tracked the falling oil prices, the energy companies have still not passed any savings on to customers.

The Energy Act 2008, along with the Planning Act and Climate Change Act, form the basis of legislating the delivery and management of the UKs energy supplies.  This Act allows the licenses granted to the energy companies to be altered, requiring the energy companies to install smart meters in various customer sectors, including the domestic sector.  So the energy companies have no choice.  They will need to be using this technology.

This is good news, as customers will be able to get real time data of their energy usage, but more importantly, the technology will eventually allow the consumer to sign up for deals that enable their smart meter to make choices throughout the day regarding the best tariff and supplier, switching for the cheapest option on demand.

While we are not quite there yet with the idea of dynamic supply and pricing, this does pave the way for the type of geekery being developed at Home Camp to actually make a difference by being useful to everyone.

Viglen MPC-L Useful Commands and Tips

This weekend I have mostly spent installing and configuring my Viglen MPC-L.  It turns out the current Viglen distro image has no way of updating using the normal update process.  It fails and you get errors.  Basically the image that Viglen are currently using uses a really old Feisty version of Xubuntu that has had it’s archive repositories removed.  I found that out earlier in the week with a couple of hours of headscratching.

You have to download the right distro and upgrade in the right way.  I followed the excellent blog post by Nicholas O’Leary and Andy Stanford-Clark’s Hints and Tips for Ubunu on a Viglen.  Both these posts saved me a huge amount of time and give you everything you need to know to get up and running with the Viglen.  Albeit it took the best part of a day for everything to upgrade through the different OS releases.

So the Viglen is now running Xubuntu Hardy 8.04.1.  I have configured it to be my home automation hub.  It is currently running rsmb that is publishing and graphing electricity usage data from my Current Cost meter using rrdtool.  I will be adding services and more devices like arduino when I can find time.  Pachube is high up on my list as I reckon I know how I can do this, now I have the Viglen, I have the right platform to simply publish data to this service.

I thought it would be a good thing to share the list of commands that I have used, to act if nothing else as a reminder for me.

How to find out the version of ubuntu installed:
lsb_release -a

List the installed packages:
dpkg –get-selections

lsmod – list loaded modules

Dmesg -  tells you what port connected to

To connect to the serial port:
cu -l /dev/ttyUSB0

Then to set the baud rate:  cu -l /dev/ttyUSB0 -s 2400

Get the serial port working:

Wget
http://search.cpan.org/CPAN/authors/id/C/CO/COOK/Device-SerialPort-1.002.tar.gz

perl should be already installed. You can get the serial module here: http://search.cpan.org/CPAN/authors/id/C/CO/COOK/Device-SerialPort-1.002.tar.gz
Install it like this:

tar -xzvf Device-SerialPort-1.002.tar.gz
cd Device-SerialPort-1.002
./configure
perl Makefile.PL
make
sudo make install

To change permissions to allow writing on /var/www
sudo chmod o=rwx /var/www -R

then copy your files over and when you are done:
sudo chmod o=x /var/www -R

DHCP Setup

sudo apt-get install dhcp3-server

# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name “mydomain.example”;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

Cron Tabs:

crontab -e -u ‘me’

Then the crontab itself to run rrdtool:
# USER=name
SHELL=/bin/bash
# HOME=/home/name/
PATH=/sbin:/bin/usr/sbin:/usr/bin:/home/name
0-59 * * * * /home/name/currentcost/bashfilename

Cron Tab Logging
0-59 * * * * /home/name/currentcost/bashfilename > /tmp/cronjob.log 2>&1

Install a lamp server on ubuntu
sudo tasksel install lamp-server

Install RddTool
Apt-get install rddtool

You must have a dev compiler running to be able to run the serial port stuff:
Re: C compiler cannot create executables

You must have libc6-dev-i386 (not just libc6-i386) installed

Also these installed:
apt-get install gcc
apt-get install g++

Shutdown command
sudo shutdown -h now

Set root password:
ssh root@<server-ip-number>
passwd

Install Essential Tools:
sudo apt-get install build-essential man

Time Zone Stuff and install NTP server:
sudo dpkg-reconfigure tzdata
# Check time is correct
date
sudo apt-get install ntp

to see all processes
open a terminal and
~ $ ps -A

To kill a process
sudo kill -9 processid

Home Camp Review

It has been a couple of weeks since homecamp and I haven’t written a blog about it. Henous I hear you say. But seriously, I am so busy at the moment. Pulling off Home Camp in 3 weeks was hard enough, but the follow up was almost as hard. Juggling it amongst client work, was even harder.

There has been some great blog posts about Home Camp and I’ll not attempt to regurgitate their content about the day. Here are a selection, and if you are missing from the list, let me know.

Homecamp by Dale Lane
Home Camp Unconference – inspired me by the thoughts
The Inaugural Homecamp
Home Camp Deman Shifting
Homecamp from Phoebe Bright

I have forgotten loads of blogs that have mentioned Home Camp. The community support has been unbelieveable.  Please do not be offended, I have just been so busy.

There was also a couple of home camp logos created over the weekend. These were beyond my wildest dreams. The community took over and sorted out what was needed.

For me, the ultimate was meeting Andy Stanford-Clark – the guy monitors his mousetraps, what’s not to like? 

You can see his session on Andy Piper’s blog.  Andy can check the resistance of the cheese in the mousetraps to determine whether the cheese is desirable to a mouse or not.  Genius.  Genius in lab coat proportions. I want to go out and buy a labcoat and do experiments.

We had a great day and I am looking forward to the next event in March 2009. We paved the way for the next event and I am excited by the reaction we have had from the first event.

My favourite video from the day is the community interviews:


Home Camp – What the community says from chris dalby on Vimeo.

Roll on March 2009!

Home Camp is Live and Monitoring

After a few hectic weeks in the planning, I’m pleased to say that Home Camp happens today. I’m looking forward to this event. Ever since I started to think about Home Camp, it has been fun watching the event progress.

If you can’t come along in person, we’re hoping to stream as much as we can over at http://www.ustream.tv/channel/homecamp.

Streaming Video by Ustream.TV

Or join the conversation:

Home Camp Update

This is a re-write of an original post over on the Home Camp Blog.  If you’ve already seen it, then apologies for duplication.

Just wanted to give everyone a heads up about Home Camp which is shaping up to be a great event. There are only a couple of places left now, so if you haven’t put your name down on the wiki, then head over and sign up.

http://homecamp.pbwiki.com/

The event is limited to 50 places with 49 people having signed up.  If we go over the 50, then continue to put your name down in case we have any last minute drop outs etc.

Current Cost are giving each attendee to Home Camp a shiny new Current Cost monitor. We’ll be one of the first to get our hands on these.

shinycurrentcost1

Do remember to suggest your session topic over on the google discussion. We are also using this area to share code. Ruby code was added this week.  Dale has also added c# and Java Code. Depending how many session topics are suggested, will depend how we run the day. So feel free to suggest ideas.

http://groups.google.co.uk/group/homecamp?hl=en

Look forward to seeing you all there next week and if you can’t make it, we’ll have some live streams.

http://twitpic.com/mv3k

Meeting the Slug

If you read this blog, you will realise from my previous couple of posts that I have been taken with the Current Cost craze that has hit town. That’s right folkes, I’ve put my house online and I’m monitoring energy usage in the name of saving money.

Today I received delivery of my Linksys NSLU2, also known as a SLUG. Advertised as network storage for less than £60, the specs are ok. But then with a relatively easy firmware flash, you have a linux server for only 4watts of electricity and a home automation hub or IP phone system on your hands or whatever you want to use a linux server for.

I have literally only played with this for a couple of hours and I am amazed how easy it has been to flash the firmware and setup Unslung, a linux distro developed specifically for this device.

The flash upgrade to the Unslung firmware is well documented and very easy. I also attached a 40GB external hard drive and changed the system into Unslung mode which was a breeze. Simply follow the readme file and all is explained.

I now have a 40gb mobile hdd attached via USB to the slug. More than enough for my needs. Next up, general config, the nanobroker, MySql and reporting. All I need now is a cable.  Stay tuned.

Setting up my Current Cost Meter

My long awaited current cost meter arrived this week . I have been looking forward to this arriving for the last month, especially after reading the blogs written by Dale Lane, Andy Piper, Roo Reynolds.

Background

I first found out about the Current Cost craze after reading a tweet from Matt Bidulph. His tweet linked to a graph showing his energy consumption. A quick google search, revealed alot of writing about the Current Cost craze that has hit IBM’s Hursley crowd. So I decided to ask on twitter how I could get a Current Cost meter and join the graph.

The magic of twitter gave me a reply by Andy Stanford-Clark, Master Inventor at IBM and specialist in automation and remote monitoring – hence the Current Cost. Andy has been hugely helpful with getting me up and running. He has also given me a huge interest in automation and remote monitoring. Especially after seeing how he has put his whole house online with the andy_house twitter stream and after listening to the podcast where Andy talks about how he automated the mousetraps in his home.

The Current Cost Meter

If you live in the UK, you can order a current cost from from ecogadgetshop.co.uk – beware they have a 28 day delivery time. The meter comes in two parts:

1. Transmitter that hooks over the electricity cable running between your meter and Circuit Box. This requires no wiring to connect and has easy to follow instructions for installing

2. The Current Cost meter is a small display that receives a wireless signal from the transmitter and outputs the energy consumption data, showing current energy usage and cost, historical usage and cost and temperature. This can be located anywhere you wish within the house. My meter is two floors above the transmitter and has a full strength signal.

The meter also has an RJ-45 socket on the bottom, allowing you to attach to a computer via a serial cable and grab xml data that is spat out the meter every 6 seconds.

Graphing the Results

At the moment, my Current Cost is sending data to a Broker at IBM, giving me an online graph in the form of a java applet. This works by using a perl script that monitors the serial connection to the current cost and uses MQTT to send the xml data to a broker at IBM.

This is great, but any geek worth their salt likes to have a play and see what else can be done :

What’s next?

All this has raised my interest in home automation and monitoring. So I have registered chris_house on twitter, in the dream that I will soon be outputting data and eventually be controlling the house via commands entered into twitter. I have also purchased a SLUG, which with a firmware flash becomes a linux server, and will be my home automation hub running a nano version of mqtt – all at the low power of 4 watts.

So in the first instance, I’ll start databasing all the current cost data and outputting the results using the Google Chart API so I can have a web dashboard of all this data available to mobile or desktop devices. Controlling the house using an iPod Touch, cool. I will then look to monitor my SIP phone system as it can’t be too hard to monitor a device on the same network, right?  Who knows how far I will take this :)

It certainly is a great bit of fun at the moment. Seeing people getting their doorbell online also makes me want to go and buy a doorbell for a weekend project. Stay tuned for more blog posts in the future as things progress.