User Tools

Site Tools


settings

Settings

In pilight >5.0 the settings.json file has been merged into config.json

Latest Stable

To alter the default behavior of the daemon, the settings object in the config.json can be edited. The default location of this file is /etc/pilight/config.json. All options and its default values are shown below (in alphabetical order):

...
"settings": {
	"action-root": "/usr/local/lib/pilight/action",
	"firmware-gpio-miso": 13,
	"firmware-gpio-mosi": 12,
	"firmware-gpio-reset": 10,
	"firmware-gpio-sck": 14,
	"firmware-update": 1,
	"function-root": "/usr/local/lib/pilight/function",
	"hardware-root": "/usr/local/lib/pilight/hardware",
	"log-file": "/var/log/pilight.log",
	"log-level": 4,
	"operator-root": "/usr/local/lib/pilight/operator",
	"pid-file": "/var/log/daemon/pilight.pid",
	"port": 5000,
	"protocol-root": "/usr/local/lib/pilight/protocols",
	"ntp-servers": [ "server1", "server2", ... ],
	"ntp-sync": 1,
	"receive-repeats": 1,
	"smtp-sender": "...@...",
	"smtp-user": "...@...",
	"smtp-password": "abdcd",
	"smtp-host": "smtp.abcd.com",
	"smtp-port": 25,
	"standalone": 0,
	"stats-enable": 1,
	"watchdog-enable": 1,
	"webgui-template": "default",
	"webgui-websockets": 1,
	"webserver-authentication": [ "username", "password" ],
	"webserver-cache": 1,
	"webserver-enable": 1,
	"webserver-port": 5001,
	"webserver-root": "/usr/local/share/pilight/",
	"webserver-ssl-port": 5002,
	"webserver-user": "",
	"whitelist": ""
}
...

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:

NameDescription
action-rootpath to loadable action modules
firmware-updateshould pilight automatically upgrade the filter firmware
firmware-gpio-misogpio pin used for firmware miso
firmware-gpio-mosigpio pin used for firmware mosi
firmware-gpio-resetgpio pin used for firmware reset
firmware-gpio-sckgpio pin used for firmware sck
function-rootpath to loadable function modules
hardware-rootpath to loadable hardware modules
log-filefile to store pilight logs
log-levelthe default log level of the daemon
operator-rootpath to loadable operator modules
pid-filethe default location of the process id file
portchange the default port the daemon will run at
protocol-rootpath to loadable protocol modules
ntp-serversA list of ntp servers to sync our time with
ntp-syncSync the ntp time
receive-repeatshow many times should a code be received
smtp-senderThe sender of pilight mail messages
smtp-userThe mail server authentication username
smtp-passwordThe mail server authentication password
smtp-hostThe mail server host
smtp-portThe mail server port
standalonedon't connect to other pilight daemons
stats-enableenable internal pilight CPU/RAM stat generation
watchdog-enableenable internal CPU and RAM watchdog
webgui-templatethe webgui template in use
webgui-websocketsenable websockets or use AJAX calls (for older browser)
webserver-authenticationenable protected login to webgui
webserver-enableenable the built-in webserver
webserver-cacheread webgui files from memory
webserver-portwebserver port
webserver-rootwebserver root path
webserver-ssl-portwebserver ssl port
webserver-userwebserver user permissions
whitelistallow only certain ip (ranges) to connect to pilight

Format and Defaults

NameFormatDefault
action-rootpath/usr/local/lib/pilight/actions/
firmware-gpio-misonumber13
firmware-gpio-mosinumber12
firmware-gpio-resetnumber10
firmware-gpio-scknumber14
firmware-update1 or 01
function-rootpath/usr/local/lib/pilight/function/
hardware-rootpath/usr/local/lib/pilight/hardware/
log-filepath/var/log/pilight.log
log-level1 till 54
operator-rootpath/usr/local/lib/pilight/operators/
pid-filepath/var/run/pilight-daemon.pid
portnumber5000
protocol-rootpath/usr/local/lib/pilight/protocols/
ntp-serversarray of servers
ntp-sync1 or 01
receive-repeatsnumber1
smtp-sendervalid mail address
smtp-user
smtp-password
smtp-hosta valid mail server
smtp-port 25, 465, 587
standalone1 or 00
stats-enable1 or 01
watchdog-enable1 or 01
webgui-template default
webgui-websockets1 or 01
webserver-authentication [ “user”, “password” ]
webserver-cache1 or 01
webserver-enable1 or 01
webserver-portnumber5001
webserver-rootpath/usr/local/share/pilight/
webserver-ssl-portnumber5002
webserver-userwww-data (linux) / www (FreeBSD)
whitelist x.x.x.x, x.x.x.x, …127.0.0.1
settings.txt · Last modified: 2015/11/27 22:09 (external edit)