The files contained in this repository can be downloaded to your computer using a svn client.
On Linux you simply type the command displayed below.

This URL has Read-Only access.

Statistics
| Revision:

root / trunk / README @ 635

History | View | Annotate | Download (6.1 kB)

1
================================================================================
2
3
  DomotiGa - Open Source Home Automation for Linux
4
  Copyright (C) 2008-2011 Ron Klinkien 
5
6
================================================================================
7
8
DISCLAIMER:
9
DomotiGa comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
10
11
Make sure you have read the license file called COPYING, or the programs About window contents.
12
If you do not agree with it please remove this program from your computer.
13
14
How to get DomotiGa up and running:
15
16
Login as the user you want to run DomotiGa as.
17
Unpack this archive, I guess you already did ...
18
19
Move/Copy it to the home dir of the user account which is going to run DomotiGa
20
(no root!)
21
Check permissions/ownership of the dirs DomotiGa, tvguide, rrd and logs need to
22
be writeable by the user.
23
24
So you have for example:
25
/home/ron/domotiga
26
27
Inside you will find this:
28
29
README               - you are reading it now
30
CHANGELOG            - some notes about changes between versions
31
COPYING              - the GPL license
32
AUTHORS              - the author(s)
33
TODO                 - things to do
34
35
<dir> DomotiGa       - the Gambas source code for client/standalone
36
<dir> DomotiGaServer - the Gambas source code for server
37
<dir> rrd            - rrd databases and graphs are stored here
38
<dir> logs           - this is where DomotiGa stores it's logfiles
39
<dir> icons          - icons used for devices
40
<dir> install        - files needed for fresh database install
41
       domotiga.sql  - example database layout and contents
42
<dir> floorplans     - store your floorplan images here
43
<dir> tvguide        - directory for xml tvguide related files
44
<dir> upgrade        - files needed for upgrading database version
45
<dir> sounds         - sounds to play
46
<dir> wrappers       - 3rd party library wrappers
47
<dir> www            - some webserver related stuff (work in progress)
48
49
Domotiga.gambas      - a precompiled executable for client/standalone
50
DomotigaServer.gambas- a precompiled executable for server
51
domotiga.conf        - config file for client/standalone
52
server-domotiga.conf - config file for server
53
(rest of the settings are stored inside the database)
54
55
You need a working Gambas environment, either runtime, or development.
56
Gambas should be version 2.21 or later.
57
Preferably latest available stable code from svn.
58
59
Look on the website http://domotiga.nl for an how-to on how to install it.
60
61
Next step, you need to setup an MySQL database for Domotiga.
62
I have supplied an SQL dump called domotiga.sql.
63
64
You can import it like so:
65
66
$ cd ~/domotiga
67
$ mysql -u root -p <yourmysqladminpassword> < install/domotiga.sql
68
69
Note: if you want to change the default db user and/or password,
70
you have to edit domotiga.conf too.
71
72
If you already have an older version of DomotiGa running, just make
73
sure you have copied over latest code and upgrade dir.
74
And it will upgrade the database automatically upon start.
75
76
If you want/need to do it by hand use:
77
$ mysql -u root -p <yourmysqladminpassword> < upgrade/xxxtoyyy.sql
78
Where xxx = current DomotiGa version and yyy is next version.
79
80
Repeat these steps if you are more that one version behind.
81
82
You have a few choices on how you want the basics to run:
83
84
* Standalone
85
You can have a standlone GUI (DomotiGa) as server and only client.
86
(apart from webclient(s), you do this by setting the Mode to standalone as param
87
in config file.
88
This is the default and will talk to all enabled hardware and display the GUI.
89
90
* GUI client(s) and CLI server
91
You can run the DomotiGaServer as server to talk to the hardware and DomotiGa as
92
client(s), you have to change the Mode parameter in domotiga.conf from
93
standalone to clientserver.
94
95
* GUI client(s) and GUI server
96
You can use the standalone version as server, but with more DomotiGa instances as clients.
97
So you configure on with standalone as Mode parameter, and the others as clientserver, make
98
sure the mysql host and xmlrpc, udp broadcast settings are set correctly for this.
99
100
Create shortcut on Desktop
101
102
Right click on desktop and create laucher or goto menu editor
103
(in Preferences on Ubuntu)
104
105
New item
106
Name: DomotiGa
107
Command: /home/<youruser>/domotiga/Domotiga.gambas
108
Icon: /home/<youruser>/domotiga/icons/logo.png
109
110
If you want to look/change the source code, start the Gambas's IDE
111
by clicking the icon, or type gambas2 inside a terminal window.
112
113
Then select open project and browse to ~/domotiga/DomotiGa
114
115
If you want to start DomotiGa from within editor click on icon
116
to start DomotiGa.
117
118
If Authentication is enabled (menu Setup->Main) you can login with:
119
120
User: admin
121
Password: admin
122
Can create, edit and view.
123
124
User: user
125
Password: user
126
Can only view.
127
128
You can add or change user logins under menu Edit->Users
129
130
================================================================================
131
132
NOTES:
133
I repeat; You should not run DomotiGa as 'root'!
134
It's too much of a security risk.
135
Use a normal user account with limited privileges.
136
137
But make sure that your user account has enough permissions to read
138
from/write to your serial ports and run commands needed for DomotiGa,
139
like for example; hcitool (bluetooth) and rrdtool (for graphing) etc.
140
141
Add the user to the group 'dialout' for serial port access if not already done.
142
All hardware and software modules are disabled by default, goto the
143
Setup menu to configure and enable them.
144
145
Read the docs on the website for more information.
146
147
If things don't work enable debug information for this module and
148
examine debug log.
149
150
If you get this error when you switch program language to Dutch:
151
WARNING: cannot switch to language 'nl_NL.UTF-8'.
152
Did you install the corresponding locale?
153
154
You have to install the Dutch language pack like so:
155
$ sudo apt-get install language-pack-nl-base
156
157
================================================================================
158
159
If you want your home automation hardware to be supported, you can donate it,
160
lend it to me, or send me the specs and I see what I can do. ;-)
161
162
Thanks to the guys at www.domoticaforum.eu, www.rfxcom.com and ezhome.nl!
163
164
For more up-to-date information visit http://domotiga.nl
165
166
HAVE FUN NOW!
167
168
Regards,
169
Ron Klinkien aka RDNZL
170
171
support@domotiga.nl
172
Dordrecht, The Netherlands