How to connect to webserver.

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

How to connect to webserver.

Postby egbertje » Fri Apr 20, 2012 12:16 pm

Hello,

Im new here and have a question.
Im also completely new to linux, but after reading a lot here i finally after a week i got a working Domotiga.
I made under VMware a VM with Ubuntu desktop 10.04, installed all the stuff/gambas and domotiga.
I bought a RFXcom reciever/transmitter V3 and now i can switch some KaKu devices finally!

But what not works is making connection to the webserver and see the nice Domotiga status page as shown on the homepage of Domotiga.
When i go to http://localhost:8001 all i get is an empty page with shows : DomotiGa v.0.1.204.
The webserver module is enabled and settings are default : ~/domotiga/www

Do i have to change here something, or copy some data to this folder?
i know i am doing something wrong, but somebody can help me further.

Egbert
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby tradiuz » Fri Apr 20, 2012 9:04 pm

Did you follow the instructions here: http://domotiga.nl/projects/domotiga/wiki/Clients
tradiuz
Starting Member
Starting Member
 
Posts: 8
Joined: March 2012

Re: How to connect to webserver.

Postby egbertje » Sat Apr 21, 2012 11:21 am

Tradiuz,

Thanks for reply.
I did exactly what is written there.
In my config.php under /var/www/domotiga i copy-paste

..
$rpc_connect="http://127.0.0.1:9009";
..

Now when i go in a browser in the same VM to http://127.0.0.1:9009 i get : Bad Request 405 Method Not Allowed. Gambas XML-RPC Server

What am i doing wrong?
And what is the difference in settings in Domotiga for : settings / webserver : default is Document root = ~/domotiga/www and Http port =8001
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby RDNZL » Sat Apr 21, 2012 9:03 pm

You have to surf to http://localhost/domotiga/

http://127.0.0.1:9009 is the xmlrpc port of DomotiGa.
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Re: How to connect to webserver.

Postby egbertje » Sun Apr 22, 2012 12:05 pm

Ron,

Thank you it works now!
I got confused because in your "Installation of PHP/XML webclient"article you wrote : For example domotiga, so you can access it by browsing to http://yourserver.org/domotiga.
But it has to be : http://localhost/domotiga/
Am i right ?
Now im gonna play with your nice sofware.
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby egbertje » Mon Apr 23, 2012 10:23 am

Ron,

One more question:
How can i begin with an empty database so if i wanna try Domotiga from scratch?
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby RDNZL » Tue Apr 24, 2012 9:02 am

I have added support for installing an empty database to the install wizard.

So you should be able to update your DomotiGa installation, and drop the current database you have.
Code: Select all
mysqladmin -u root -p drop domotiga

Then start DomotiGa and you have the option to install it from the wizard.

If you want to delete certain tables like devices you can do that in the Database Admin tool from inside DomotiGa already.
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Re: How to connect to webserver.

Postby egbertje » Tue Apr 24, 2012 10:51 am

Ive updated but 2 things:

In the wizard i can only choose the demo database, i cant make a new one.
I choosed the demo database and got an error :
Error : query failed: Table 'Domotiga.version' doent exist -1 Main. CheckDatabaseVersion.5715 Program aborted.
After that error Ubuntu/Gambas hangs.
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby RDNZL » Tue Apr 24, 2012 3:19 pm

Hi, the fact that empty database is disable means you run the older code still, or I made a mistake.
You downloaded revision 863?

What also catches my eye is the fact that the error says Domotiga.version, by default the database name is domotiga, all lower case.
Can you check again?
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Re: How to connect to webserver.

Postby egbertje » Tue Apr 24, 2012 3:32 pm

I updated via svn command and checked revision is 863.
Now i can choose empty or demo database but error is the same.
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby RDNZL » Tue Apr 24, 2012 10:05 pm

Did you change the database name in the wizard?
There is an issue with that, it works ok here when using the default 'domotiga' as database name, and leave this default in domotiga.conf too.
Will investigate what the problem is in the mean time.
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Re: How to connect to webserver.

Postby egbertje » Tue Apr 24, 2012 10:08 pm

I try to setup a new VMware and install everything again to try.
Btw thanks for excellent support!
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby egbertje » Wed Apr 25, 2012 1:26 pm

Ron,
Installed everything new, but now i cant start Domotiga anymore.
If it askes the first time to create a database for demo or new i choose demo and get folloing error in insstall database : ERROR 1007 (HY000) at line 1: Can't create database 'domotiga'; database exists

Created database called 'domotiga' ...
ERROR at line 1: Failed to open file '/home/egbert/install/domotiga.sql', error: 2

Loaded database tables from 'domotiga.sql' ...

Flushed database privileges ...

After pressing ok i get error : Connection is not opened -1 Main.Checkdatabaseversion.5793 Program aborted.
Svn is now 867!
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
 
Posts: 14
Joined: April 2012

Re: How to connect to webserver.

Postby RDNZL » Wed Apr 25, 2012 3:34 pm

No need to re-install everything, why do people do that? We are not running Windows... :roll:

So you loaded a whole new OS, and got on first time running database domotiga already exists??

Code: Select all
ERROR at line 1: Failed to open file '/home/egbert/install/domotiga.sql', error: 2

It can't find the sql dump file,needed to create the database.
You must install/copy the whole 'domotiga' directory inside your home directory.

So not in /home/egbert/install
But you should have /home/egbert/domotiga/install..
/home/egbert/domotiga/DomotiGa.. etc...

Can you fix your domotiga installation and try again.
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Re: How to connect to webserver.

Postby RDNZL » Wed Apr 25, 2012 4:42 pm

Oh and you should delete the half installed database first with:
Code: Select all
mysqladmin -u root -p drop domotiga
Regards, Ron.
http://domotiga.nl - open source home automation software for Linux.
User avatar
RDNZL
Forum Moderator
Forum Moderator
 
Posts: 919
Joined: September 2006
Location: Dordrecht, The Netherlands

Next

Return to DomotiGa Forum

Who is online

Users browsing this forum: No registered users and 1 guest