calaos_config

What this tool is for

calaos_config is the tool that lets you view and change the Calaos server settings from a terminal. It is the one used by most pages of this chapter.

It works on the server’s local configuration, stored in the /mnt/calaos/config folder.

This tool only concerns the server settings: credentials, notifications, operating options. Your inputs/outputs, rules and scenarios are managed from Calaos Installer, not here.

Usage

Connect to the server over SSH (see SSH access), then use one of the four following commands.

CommandEffect
calaos_config listShows every setting and its value
calaos_config get KEYShows the value of one setting
calaos_config set KEY VALUEChanges a setting
calaos_config del KEYDeletes a setting

Each setting is identified by a key, that is, a short name without spaces.

See every setting

The most useful command to begin with:

calaos_config list

It shows all the current settings of your server, one per line, in the form key: value. It is the best way to discover what is configured on your installation.

This command changes nothing, you can run it without worry.

Read one setting

calaos_config get cn_user

shows the value of the cn_user setting, that is, the user name used to connect to the server.

Change a setting

calaos_config set cn_user my_user

The change is saved immediately. Some settings are only taken into account after the Calaos server restarts.

Delete a setting

calaos_config del SETTING_NAME

The setting disappears from the configuration, and the server goes back to its default behaviour for that option.

The available settings

Server connection

KeyPurpose
cn_userUser name used to connect to the server
cn_passPassword used to connect to the server

See Changing the passwords.

Geographic position

KeyPurpose
latitudeLatitude of your home
longitudeLongitude of your home

These two values let the server compute sunrise and sunset times, which are essential to the time rules that depend on them. See Date & Time.

Sending emails

KeyPurpose
smtp_serverAddress of the sending server, in the form smtp://server
smtp_portPort of the sending server
smtp_authtrue if the server requires authentication
smtp_tlstrue for an encrypted connection
smtp_usernameUser name
smtp_passwordPassword

See Email.

Zigbee device notifications

KeyPurpose
notif/battery_mail_enabledWarn by email when a battery runs low
notif/battery_push_enabledWarn by mobile notification when a battery runs low
notif/io_connected_mail_enabledWarn by email when a device connects or disconnects
notif/io_connected_push_enabledWarn by mobile notification when a device connects or disconnects

All of them expect true or false. Sending emails requires the sending server to be configured first. See Zigbee.

Calaos Home interface

KeyPurpose
calaos_server_hostForces the interface to connect to a specific server, and disables automatic discovery. An IP address is enough
show_cursorWhether the mouse cursor is displayed on screen
dpms_enableEnables automatic screen sleep
dpms_standbyDelay before the screen goes to sleep, in minutes

See Touchscreen.

Diagnostic logs

KeyPurpose
debug_enabledEnables the server’s detailed logs
debug_levelGlobal level of detail
debug_domainsLevel of detail per domain, in the form domain:level,domain:level

Only enable these while diagnosing a problem. See Logs.


This list covers the most common settings. calaos_config list shows you the ones actually defined on your installation.

Do not edit the configuration files by hand while the server is running. Your changes may be overwritten, and a malformed file will prevent the server from starting. Always go through calaos_config.

Going further

Settings are stored in the local_config.xml file, in /mnt/calaos/config. That folder also holds the history of the configurations sent from Calaos Installer, described in Backing up your configuration.

Calling calaos_config with no argument displays the tool’s help.