Frequently Asked Questions

This wiki page describes the frequently asked questions about DomotiGa. If you have any additional, please add it!



Install

Q. How do I clear RRDTool database and graphics?

Best way is to stop the graphing for the relevant variables, save the settings and when appropriate enable the graphing again.

The graphs in domotiga/rrd/graphs/ can be just deleted, they will be recreated when needed,

See also RRDTool.

Q. How can I delete all default devices?

Goto menu Tools => Database Admin and click on Devices in the Delete Database Records column and finally click on Delete.


Upgrade

Q. How do I upgrade DomotiGa to the latest version?

This is described in the following link Upgrade DomotiGa

Q. How do I upgrade Gambas to the latest version?

This is described in the following link Upgrade Gambas


Database

How do I make a manual backup of the database?

A backup can be made in 2 ways:
  • GUI
  • command line

GUI

Go to the menu Tools , click on Database Admin and finally click on Backup.

Command line

Make a SQL dump of your database.

$ cd ~/domotiga
$ mysqldump -u root -p domotiga >backup.sql


How do I migrate the database to another machine?

Make a SQL dump of your database.

$ cd ~/domotiga
$ mysqldump -u root -p domotiga >dump.sql

Pack and copy over the ~/domotiga directory to your new machine.

$ cd ~
$ tar czvf ./domotiga.tar.gz ./domotiga
$ scp domotiga.tar.gz user@host:/home/user

Unpack on new machine.

$ cd ~
$ tar xzvf domotiga.tar.gz

Prepare database dump.

$ cd ~/domotiga
$ vi dump.sql

Add database priviledges to top of file (under /* SET commands)

CREATE DATABASE domotiga;
GRANT ALL ON domotiga.* TO domouser@localhost IDENTIFIED BY 'kung-fu';
GRANT ALL ON domotiga.* TO domouser@'%' IDENTIFIED BY 'kung-fu';
USE domotiga;

Load database dump.

$ mysql -u root -p <dump.sql

Start DomotiGa on new machine.


Appearance

Q. My buttons and windows look awful, how do I fix this?

If you are not using Ubuntu and have installed Gambas afterwards, sometimes the buttons and windows look awful.

Here a guide to pimp up your desktop:

Both the Qt configuration utility and the Polymer theme don’t have any KDE dependencies, so they’ll work well for GNOME users.

Install the two packages:

$ sudo apt-get install qt3-qtconfig polymer

Run the configuration utility from the command line:
$ qtconfig-qt3

You can set up Qt however you like using this utility to match your own GTK theme. Here’s what I did to match the Clearlooks theme:

In the Appearance tab, use the Select GUI Style drop down box and select Polymer. Click Tune Palette. In the Central color roles area, select Background and set the colour to R237 G236 B235. Select Highlight and set it to R78 G118 B168. Close the tuning dialog. Open the Fonts tab. Change the font Family to sans-serif and the Size to 10. Save and quit the utility.

Q. Tooltips and balloons are unreadable

On some Linux distro and themes (for example Ubuntu's Ambiance) the balloon and tooltip fore- and background colors are set incorrectly, this make them unreadable.

You can fix these settings by executing the following two commands in a command prompt.

$ sudo sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' /usr/share/themes/Ambiance/gtk-2.0/gtkrc
$ sudo sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#ffffff/g' /usr/share/themes/Ambiance/gtk-2.0/gtkrc

Restart Gambas IDE or Program.

Translate DomotiGa

Gambas has a nifty translation module, all strings put between () in the code and all form strings are made translatable.
The default is English, and if other translations for a word or sentence are not defined the English text is played.

If you want to translate a language already known to DomotiGa, download the latest code.
And open DomotiGa project inside the IDE
Then type CTRL-T.

You will see this:

So you can see which/how many strings need translation, you see where they are in the project.
You can set strings not translatable, for example error messages and combobox entries.

The translations are stored in these files.
http://domotiga.nl/projects/domotiga/repository/show/trunk/DomotiGa3/.lang

I you translated some text please export them and send the file to me, I will add it to the svn.

If you want to translate to a language not supported yet (it's under Menu => GUI => Language) please let me know and I will add it.

If you get this error when you switch program language to Dutch:

WARNING: cannot switch to language 'nl_NL.UTF-8'.
Did you install the corresponding locale?

You have to install the Dutch language pack like so:
$ sudo apt-get install language-pack-nl-base

This also is true for other locales ofcourse.

Errors

Q. Error: My RFXCom only works if i start domotiga as root (sudo)

Edit rules file:

$ sudo nano /dev/.udev/rules.d/root.rules 

Add this line:

SUBSYSTEM=="block", ENV{MAJOR}=="8", ENV{MINOR}=="1", SYMLINK+="root" 

save

Restart the udev service:

$ sudo /etc/init.d/udev restart

Now you can use your usb device as a normal user.

If this doesn't work you can also add the user you run domotiga as to the group 'dialout', like so if user is named domotiga:

$ sudo addgroup domotiga dialout

Related Resources

    Updated by: rdnzl, Updated almost 2 years ago
    Access count: 67965 since 2011-08-25

    Attached Files

    translation.png (71.7 KB) Alexie, 02/01/2014 06:33 PM

    unreadabletooltip.png (37.1 KB) rdnzl, 02/21/2015 10:04 AM

    Also available in: PDF HTML TXT