Wednesday 8 October 2008

Mystery button

I am very impressed with my Diesel Toyota Avensis.
It may be 4 years old, but I am getting over 60mpg which is a massive improvement over the A3 that I have been driving for the last 7 years.

The only thing that bugs me is... what is this button for ?


Monday 16 June 2008

Met Office Weather on Roku Soundbridge

The MOWeather script can be downloaded here




Why isn't Tools4Roku good enough for you ?


- well it is very good, and if you have a more advanced Soundbridge, I'd recommend heading over to Juergen's website and downloading his script.

However, my M400 can't display pictures and has a very small screen. I also found the RokuUI module a little clunky and wanted to create an easier interface to send display updates - hence the RokuLCD module.

Note that the RokuLCD module requires the RokuUI module as it inherits and uses the RokuUI methods. For more information on RokuLCD, the documentation is encapsulated within the module and can be accessed via a tool such as pod2html, or viewed here.



Installation


You're going to need something that runs Perl - whether it's a PC, a MAC or some other piece of hardware.
That box will also require the Net::Telnet package and wget (available for windows at http://www.gnu.org).












The following settings are user configurable:
$rokuIPyour Soundbridge's IP address
$displaytypeyour Soundbridge's model - 400 or 500 (anything else will default to 400)
$pausethe number of minutes to wait before displaying weather
$refreshthe number of minutes to wait before refreshing data
$WebAddressthe Met Office URL for your area - see below.


To get the WebAddress (in the UK only), go to http://www.metoffice.gov.uk/

Choose UK from the dropdown weather menu (under the Met Office logo)...



then "UK, region and location forecasts" under the Forecast heading...



then type in your postcode:



Copy the URL within single quotes into the script.

The MOWeather script can be downloaded here

Monday 9 June 2008

Weather on Roku Soundbridge I


The Roku Soundbridge is a truly cool toy - even if you only use it for listening to internet radio hooked up to your stereo.

I've got tons of equipment that tells me the time, so I decided to use Juergen Gluch's Tools4Roku script to show the weather forecast when it is not in use.

Problem is, he's got a pretty fancy model that displays pictures, whereas I have the M400 with its simple 2x16 character LCD.

Once I got started butchering his Perl script, I started to see that the M400 really could benefit from a simpler interface than the one offered by the RokuUI Perl module (written by Michael Polymenakos). I stress that there's nothing wrong with RokuUI, it just felt that a few extensions could improve its use for the M400.

Firstly, I had a play with the marquee feature - the script would move on to the next item before a line had been completely displayed, so I had to figure out a good length of time to display the text dependant on the length of the text. After a bit of experimentation, I found that 5 seconds for every 25 characters seemed to work.

$duration = (int(((length($text))+24)/25))*5;

$rc = $self->msg(text => "$text",
keygrab => 1,
mode => 'marquee',
duration => $duration);

However, marquee was too restrictive as it only be uses the top line, allowing access to only 16 of the meagre 32 characters.

A new marquee is needed!


To Be Continued...

Monday 2 June 2008

Connecting a Southern Electric BetterPlan Monitor to an Ethernet Network


I signed up for the BetterPlan product from Southern Electric and was intrigued by the RJ45 port on the underside of the monitor that they supplied.


Curiosity finally got the better of me and I connected it to my router via an ethernet cable...


The display mostly cleared, and the temperature reading appeared to drop by 10 degrees, then slowly recover.


I fiddled with some of the buttons, et voila - factory reset !

A month's worth of data lost and the monitor couldn't contact the base station. I think that the temperature refers to the radio channel, but it was easier just to reset the base station as described in the manual.



Nothing ventured...