How to connect to webserver.

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

How to connect to webserver.

Post by egbertje »

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
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
tradiuz
Starting Member
Starting Member
Posts: 8
Joined: Fri Mar 30, 2012 3:38 pm

Re: How to connect to webserver.

Post by tradiuz »

Did you follow the instructions here: http://domotiga.nl/projects/domotiga/wiki/Clients
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

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
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

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

http://127.0.0.1:9009 is the xmlrpc port of DomotiGa.
Regards, Ron.
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

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.
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

Ron,

One more question:
How can i begin with an empty database so if i wanna try Domotiga from scratch?
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

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.
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

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.
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

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.
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

I updated via svn command and checked revision is 863.
Now i can choose empty or demo database but error is the same.
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

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.
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

I try to setup a new VMware and install everything again to try.
Btw thanks for excellent support!
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
egbertje
Starting Member
Starting Member
Posts: 24
Joined: Tue Apr 03, 2012 11:07 am

Re: How to connect to webserver.

Post by egbertje »

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!
Homeseer 3 on andere Intel Nuc/Win10
Plugins Imperihome Jowihue Rfxcom Pushover P1
RFXcom V3 Visonic Powermax+ some KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

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.
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: How to connect to webserver.

Post by RDNZL »

Oh and you should delete the half installed database first with:

Code: Select all

mysqladmin -u root -p drop domotiga
Regards, Ron.
Post Reply

Return to “DomotiGa Forum”