<?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 &#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, 16 Dec 2011 12:11:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</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&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&#038;seed_title=Got+my+CurrentCost+cable%21&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=got-my-currentcost-cable</link> <comments>http://www.neilcowburn.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&#038;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><p><p><a title="CurrentCost Monitor by Neil Cowburn, on Flickr" href="http://www.flickr.com/photos/neilc/3077443000/"><img src="http://farm4.static.flickr.com/3012/3077443000_1d52968920.jpg" alt="CurrentCost Monitor" width="500" height="357" /></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:</p><pre><code>ls -l /dev | grep cu.usbserial | grep -v grep</code></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><code>screen /dev/cu.usbserial-0000201A 2400</code></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 <strong>Ctrl-a, Ctrl-&#44; y</strong>.</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><code>#!/bin/bash</p>

<p>export cmd=<code>ls -l /dev | grep cu.usbserial | grep -v grep | awk {'print "/dev/"$10'}</code>
screen $cmd 2400
clear</code></pre></p> ]]></content:encoded> <wfw:commentRss>http://www.neilcowburn.com/feeder/?FeederAction=clicked&#038;feed=Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fneilcowburn.com%2F2008%2F12%2F02%2Fgot-my-currentcost-cable%2F&#038;seed_title=Got+my+CurrentCost+cable%21/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/20 queries in 0.011 seconds using disk: basic
Object Caching 286/322 objects using disk: basic

Served from: neilcowburn.com @ 2012-02-08 21:23:50 -->
