User Tools

Site Tools


settings

This is an old revision of the document!


settings.json

To alter the default behavior of the daemon, a settings file can be created / edited. The default location of this file is /etc/pilight/settings.json. All options and its default values are shown below:

{
	"port": 5000,
	"standalone": 0,
	"log-level": 4,
	"pid-file": "/var/log/daemon/pilight.pid",
	"config-file": "/etc/pilight/config.json",
	"hardware-file": "/etc/pilight/hardware.json",
	"log-file": "/var/log/pilight.log",
	"send-repeats": 10,
	"receive-repeats": 1,
	"webserver-enable": 1,
	"webserver-root": "/usr/local/share/pilight/",
	"webserver-port": 5001,
	"webgui-template": "default",
	"webserver-cache": 1,
	"webserver-authentication": 0,  <- ADDED
	"webserver-username": "",  <- ADDED
	"webserver-password": "",  <- ADDED
	"whitelist": "",
	"update-check": 1,
	"update-mirror": "http://apt.pilight.org/mirror.txt",
	"update-development": 1
}

Settings List

The following settings can be set in the settings file. If you leave a setting out, then the default value will be used:

Descriptions

NameDescription
portchange the default port the daemon will run at
standaloneshould the daemon run in standalone mode
log-levelthe default log level of the daemon
pid-filethe default location of the process id file
config-filethe default location of the config file
hardware-filethe default location of the hardware file
send-repeatshow many times should a code be send
receive-repeatshow many times should a code be received
webserver-enableenable the built-in webserver
webserver-portwebserver port
webserver-rootwebserver root path
webserver-cacheread webgui files from memory
webserver-authenticationenable protected login to webgui
webserver-passwordwebgui password
webserver-usernamewebgui username
webgui-templatethe webgui template in use
whitelistallow only certain ip (ranges) to connect to pilight
update-checkcheck for updates
update-mirrorlocation of the apt mirror file
update-developmentcheck for developmental updates

Format and Defaults

NameFormatDefault
portnumber5000
standalone1 or 00
log-level1 till 54
pid-filepath/var/run/pilight-daemon.pid
config-filepath/etc/pilight/config.json
hardware-filepath/etc/pilight/hardware.json
send-repeatsnumber10
receive-repeatsnumber1
webserver-enable1 or 01
webserver-portnumber5001
webserver-rootpath/usr/local/share/pilight/
webserver-cache1 or 01
webserver-authentication1 or 00
webserver-password
webserver-username
webgui-template default
whitelist x.x.x.x, x.x.x.x, …127.0.0.1
update-check1 or 01
update-mirrorurlhttp://apt.pilight.org/mirror.txt
update-development1 or 00

Conflicts and Requirements

NameConflictRequires
port
standalone
log-level
pid-file
config-file
hardware-file
send-repeats
receive-repeats
webserver-enable
webserver-port “webserver-enable”: 1
webserver-root “webserver-enable”: 1
webserver-cache “webserver-enable”: 1
webserver-authentication “webserver-enable”: 1
webserver-password “webserver-enable”: 1
webserver-username “webserver-enable”: 1
webgui-template“webserver-enable”: 1
whitelist
update-check
update-mirror “update-check”: 1
update-development “update-check”: 1
settings.1392064726.txt.gz · Last modified: 2015/11/27 21:08 (external edit)