BlueLava

A CGI interface for x10

Quick Links

Download

Readme

History

To Do

FAQ

Links

FAQ

I have my backend running successfully from the command line, however when I try to run it from the Web interface, it always gives me "Status: error code -1 was returned!", what's going on?
Unfortunately this part of BlueLava does not return very good error messages.
What it is probably going to be is that the path you are using in the config file is not the path to your backend.  Try using locate to find the backend and then typing the full command line and see if this works.  If it does check that the path is the same as the on in your bluelava.conf

Another possible problem is that the backend does not have right to read the config file. You will need to chmod a+r the backend config file. So for example if you are using heyu the command would be "chmod a+r /etc/x10.conf"


I have BottleRocket running successfully from the command line, however when I try to run it from the Web interface, it always gives me "Status error code 3328 was returned!", what's going on?
Again this is not a very usefull error message, but this is only caused from about 2 things:
1) BottleRocket, when run as your web server USER (the user that your web server runs as) is unable to read your BottleRocket config file. If you are unsure how to fix this, try running "chmod a+r <configfile>" where configfile is the path to your config file.

2) BottleRocket, when run as your web server USER, can not read or write to the com port, try running "chmod a+rw /dev/ttyS0" where ttyS0 is com1 (replace ttyS0 with ttyS1 if using com 2)


I have heyu running successfully from the command line, however when I try to run it from the Web interface, it always gives me "Status error code 256 was returned!", what's going on?
This is usually one of two problems.
1) Your backend has a personal not global config file, try moving your "~/.x10config" file to "/etc/x10.conf" this will solve the issue of heyu being unable to find it's config. You may need to "chmod a+r /etc/x10.conf" to ensure that the web server user can read it.

2) Your backend can not read or write to the com port, try running "chmod a+rw /dev/ttyS0" where ttyS0 is com1 (replace ttyS0 with ttyS1 if using com 2)


My web server does not serve the telex10.wml file properly, what's going on?
When the telex10 extenstion was created, many 'phones would not display files unless they ended in .wml even if the file content was correct. This is why the telex10 file is a .wml. At the time anything that was executable was executed by Apache if it was in the cgi-bin, this default behaviour has changed at some point.

As most 'phones these days will correctly show .cgi files as .wml you can simply rename telex10.wml to telex10.cgi



I've not had many questions about BlueLava, so here are some things that I get asked in real life.

Why do you have strange hair?
I don't know, it's not my fault.

Why are you so short?
I'm not that short.

What is FireHose mode?
I've told you that about a thousand times....

Where do you live?
Kent, England.

Why doesn't this code work?
You've forgotten to put the statement in an eval(), so it's setting the variable to that value not setting the variable to a reference of the object.

It's not going to the correct row when I click, what wrong?
You've left the start variable out of the click function, remember it's row=row+start to get the row number of the displayed data and not the row number of the row showing the data.

Is 0 true or false?
0 is false, not true, No, etc. True can be -1 or 1 or sometimes anything except 0.

Do you want a cup of Tea?
Yes, did you have to ask.

What do you want to eat?
Anything.

Why do you like Cricket?
I'm British.

You're a geek aren't you?
Yes.

Are you putting on weight?
Yes, it's a lack of exercise.


Ian Wilkinson (ian@sgtwilko.f9.co.uk)