<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Neil Cowburn — Freelance iPhone &#38; iPad Developer &#187; Eco</title>
	<atom:link href="http://neilcowburn.com/category/eco/feed/" rel="self" type="application/rss+xml" />
	<link>http://neilcowburn.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Jan 2010 09:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Got my CurrentCost cable!</title>
		<link>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss&amp;utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=got-my-currentcost-cable</link>
		<comments>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21#comments</comments>
		<pubDate>Tue, 02 Dec 2008 14:11:18 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[Eco]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.neilcowburn.com/blog/?p=111</guid>
		<description><![CDATA[I finally got the data cable for my CurrentCost monitor today. I immediately hooked it up to my Mac and set about pulling the data in via Terminal. How cool is that?! Next up: designing and implementing a couple of project ideas I&#8217;ve been mulling for the past 6 months. Should be interesting. For the [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got the data cable for my <a href="http://www.currentcost.com/">CurrentCost</a> monitor today. I immediately hooked it up to my Mac and set about pulling the data in via Terminal.
<p align="center"><a href="http://www.flickr.com/photos/neilc/3077443000/" title="CurrentCost Monitor by Neil Cowburn, on Flickr"><img src="http://farm4.static.flickr.com/3012/3077443000_1d52968920.jpg" width="500" height="357" alt="CurrentCost Monitor" /></a></p>
<p>How cool is that?! Next up: designing and implementing a couple of project ideas I&#8217;ve been mulling for the past 6 months. Should be interesting.</p>
<p>For the intrigued geek, this is how I got to see the data:</p>
<p>Using a USB-Serial converter dongle, I connected the cable to the Mac and opened terminal. Next, I needed to grab the name of the USB device so I could open it. I did that by using the following command:
<pre>ls -l /dev | grep cu.usbserial | grep -v grep</pre>
<p>When I had the name, I could then use the <a href="http://www.manpagez.com/man/1/screen/">screen</a> command to open the serial port at 2400 baud:</p>
<pre>screen /dev/cu.usbserial-0000201A 2400</pre>
<p>The baud rate will depend on the actual version of monitor you have. Newer versions operate at 9600 baud. To terminate the screen command, hit <b>Ctrl-a, Ctrl-\, y</b>.</p>
<p>I ended up putting all this together as a Bash script (below) so that I can quickly call it up at will.</p>
<pre>#!/bin/bash

export cmd=`ls -l /dev | grep cu.usbserial | grep -v grep | awk {'print "/dev/"$10'}`
screen $cmd 2400
clear</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.neilcowburn.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&amp;seed_title=Got+my+CurrentCost+cable%21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
