Sunday, October 04, 2009
HomeEasy Meets Arduino - HomeEasy Automatic Protocol
Saturday, September 26, 2009
BBSB Meets Arduino (Part 3) Home Easy to BBSB Repeater
Monday, September 21, 2009
Putting your Watts on the Web..

Quite a few folks are activley monitoring using this hardware solution, but I think this solution gets the 'quick and dirty' award, as very little else is needed, the data is collected and posted using a little shell script, with no need for perl, ruby or other such stuff.
- We got the older CurrentCost CC128 as the serial data comes out a little slower (9600baud) than the newer, shiny model, which suited hooking it up to stuff that cant swallow the data rate of the newer model.
- Get the CurrentCost USB cable as well, it has a USB/Serial converter built in , which you'll need unless you already have a separate one (CurrentCost serial port is 5v RS232, so hooking it up to a serial port directly will get you nothing or magic smoke 8-( )
- Unsling your NSLU2 so you can telnet/SSH into it and run stuff. (see links above)
- Hook your CurrentCost to the spare USB port on the NSLU2 (it should also work on a hub btw, but the device below may be different to mine.)
- run dmesg and look for the device ID of the serial port that is detected - ours was /dev/ttyUSB0
- Try this filthy script out - you'll need to edit it, to replace: YOUR_PACHUBE_API_KEY with your actual Key from your pachube account, and also your YOUR_FEED_ID in this file to get it to work. - I just have two integer values, one for watts, one for temp on this feed.
- Two little scripts are provided get-watts , and get-temp which should just echo the data from the CurrentCost to the console, as well as update-pachube which does the biz to the pachube service.
Footnotes: You may need to do some ipkg install magic on the NSLU2, you need grep, sed, cut and curl I forget which ones are in the slugos already.
The NSLU2 is a great platform for this type of stuff, the power consumption is less than 3w according to our killawatt, with processing power to spare, for ..... more stuff in the near future 8-)
Enjoy.
UPDATE: An abusive co-worker who is attempting to follow my vague and inaccurate posting has reminded me that there are two missing steps in this post:
- You need to install some extra packages on your slug, I *think* these are:
- picocom - 1.4-1 - A minimal dumb-terminal emulation program. (you will want this to see what is happening on the com port from the current cost)
- libcurl - 7.19.5-1 (you need curl for the pachube posting)
- coreutils - 7.4-1 -(I think coreuils has cut in it, among other utilities)
(e.g # ipkg install picocom; ipkg install libcurl; ipkg install coreutils)
- You need to install the PL2303 kernel module so the USB-To-Serial cable is recognised. (following http://www.nslu2-linux.org/wiki/Peripherals/USB2Serial worked for my official currentcost cable) - after doing this check with dmesg for the name of the serial port to point to for your data.
Further abusive comments welcome from anyone, if this is still not correct 8-/ - my apologies.
Friday, September 11, 2009
Hyper-V RDP Issues on Windows 2008? - Disable yer Large Send Offload.

I spent hours searching for a solution on the net, fiddling with Netsh, MTU sizes, switches and NIC drivers, until I spotted this blog entry. Turn off the Large Send Offload setting on the NIC. POW Fixed. Thanks to Daniel Petri. No reboot required.
Friday, June 19, 2009
BBSB Meets Arduino (Part 2)
unfortunatley this requires some interrupt driven Arduino magic, which I havent been able to get working - so , as the king of unfinished masterpieces - here is an RF->Network only repeater version.Comments etc here please: http://www.byebyestandby.com/forum/viewtopic.php?f=6&t=371
Sunday, June 14, 2009
BBSB meets Arduino (Part 1) - updated.
I have to admit, this work has been 90% google and 10% coding - there are already libraries for Arduino on the net that can transmit BBSB/Domia's radio protocol.
This project will re-transmit the 433.92mhz Domia/BBSB signals emitted by the BBSB Online controller v2 on your local network.
Build instructions are here, along with source code Arduino sketch here. See pdf for further details.
If you have comments or questions please post to the BBSB Forum here.
Further enhancements are in the works, stay tuned for the next part - a two-way repeater.
15/06/09: Updated to fix a bug already! - Device code support 1-16 (in theory , but untested)
Monday, May 18, 2009
iPeng for IPhone and SqueezeCenter
(Image: http://penguinlovesmusic.de/ )Well, if you have one (or more) squeezebox players, and an iPod Touch/iPhone, how about iPeng?
This little £5.99 iPhone app by Coolio is actually more pretty than the Squeezebox Duet remote, and if you have a iPod touch or iPhone works really nicely over your WiFi connection - it even 'finds' your slimserver automatically and doesnt need setting up.
Nicely done Coolio.
Update: Squeezecenter on Synology CS407

If you want to get IRBlaster (see below) to work on the Linux/Synology version of SqueezeCenter, then there are a couple of spookily similar little tweaks required:
IRBlaster will give the 'unable to write file' message in the IR learning app (just as it does in Windows), to fix do this:
- Download and install the latest Synology firmware (we're running DSM 2.1-0844)
- Download and install the SqueezeCenter for Synology.
- Telnet/SSH to your Synology (after enabling Telnet/SSH in the web gui.)
- cd to /var/packages/SqueezeCenter/target/Plugins
- create a new folder there (mkdir IRBlaster) - note case
- grant world-write permissions to the folder (chmod 777 IRBlaster)
- Try the IRBlaster learning app again, and you should find it worked!
The CS407 isnt the fastest embedded Linux box, but SqueezeCenter runs just fine - when installing plug-ins and re-scanning the music library it does groan a little under the strain, and SqueezeCenter stopped a couple of times, but once scanned, it's working just cool.
Tuesday, May 05, 2009
Taming the Logitech Squeezebox - Controlling your amplifier!
Here's how we did it - with a couple of tricks to make it work because we probably didnt read the instructions, or used Windows instead of Linux 8-/
- Find a compatible IR Transmitter with a 3.5mm plug on it - we used that free one that you get with the Microsoft Media Center Remote Reciever, that you probably threw somewhere because you werent using a set-top-box - it plugs right in and works.
- Download the IRBlaster plug-in (its listed in Squeezecenter on the add-ins page)
- Download IRBlaster again from the site above (I had to unzip it to C:\Program Files\SqueezeCenter\server\Plugins
- Add your slimcenter 'user' as 'full control' on the C:\Program Files\SqueezeCenter\server\Plugins\IRBlaster folder (otherwise you wont be able to create IR Profiles
- Restart SlimCenter
- Go to the plug-in in the settings page, and start the IRLearning Wizard - from there you can teach your squeezebox the IR commands for your Amp - we used Power On/Off and Vol+/Vol-, which worked first time on our Denon amp.
Sonos, move over! (a bit, cos clearly you're better, obviously).
Sunday, March 01, 2009
New version of SleepTool with BBSB V2 Support

Here's a new version of my SleepTool system-tray utility, this version has BBSB V2 support, so you can now send your PC to sleep with a BBSB V2 controller.
As ever, please dont use this as a shining example of how to code in VB6, the code quality in here is shameful but functional 8-) - it also seems to work fine in Windows 7 - though you may need to download the setup kit for VB6 apps to get the required .ocx files etc.
Download SleepTool v1.0.27 Here - source code included.
Enjoy
Mart.Monday, January 05, 2009
Saturday, October 25, 2008
Taming the Linksys DMA2100
There have been a number of posts on the GreenButton here that indicate that MS/Linksys didnt really think through the real-world behaviour of people's extenders and their MCE machines.
If your MCE machine goes to sleep between recordings (this is a good idea, as most PC's are 200w of your electicity bill all the time they're on), or because of a timed sleep due to inactivity, the extender has trouble 'waking' it again when you want to watch TV. We leave our DMA2100 on all the time (because it takes about a minute to start up when the power comes on)This hit me with a couple of issues
1) The extender can't wake the PC (WOL doesnt work, but a directed 'ping' wake-up is supposed to) - but didnt work for our MCE machine. I solved this by using a Perl script on my Linksys NSLU2 linux box which is in an earlier post below.
2) Once the MCE machine was being woken when the TV was being switched on, we still had the issue that the extender didnt 'notice' that the PC was now on- and sat at the useless 'Extender Disconnected' screen - not very transparent.
The above issue is solved by simply pressing the 'Start' button on the MCE remote, this is handy because if the extender is at the disconnected screen ,or at the main menu, it 'just connects' if the PC is on, and also if it's already connected it takes the extender back to the main MCE menu each time.
We use a Harmony 525 Intelligent remote, and this can even be taught to 'send' a 'Start' key when the TV is powered on - the result is that the MCE home screen greets us every time the TV is powered on to watch TV... Perfect 8-)
So Linksys? how about a firmware update with proper Wake-On-Lan support? - and hey, while we're at it , how 'bout 'polling' that MCE machine on the network to see if it's there, and restarting the extender session?
Oh yes, then there's that irritating BRIGHT BLUE LED on the front - but black masking tape soon solves that one 8-)