User Tools

Site Tools


settings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

settings [2015/03/08 12:17]
pilino1234 Added a link and changed heading format a bit
settings [2015/11/27 21:09]
Line 1: Line 1:
-======= Settings ======= 
- 
-In pilight >5.0 the settings.json file has been merged into [[config|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: 
- 
-<​code>​ 
-... 
-"​settings":​ { 
- "​port":​ 5000, 
- "​standalone":​ 0, 
- "​log-level":​ 4, 
- "​pid-file":​ "/​var/​log/​daemon/​pilight.pid",​ 
- "​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",​ 
- "​webgui-websockets":​ 1, 
- "​webserver-cache":​ 1, 
- "​webserver-authentication":​ [ "​username",​ "​password"​ ], 
- "​webserver-user":​ "",​ 
- "​whitelist":​ "",​ 
- "​protocol-root":​ "/​usr/​local/​lib/​pilight/​protocols",​ 
- "​hardware-root":​ "/​usr/​local/​lib/​pilight/​hardware",​ 
- "​action-root":​ "/​usr/​local/​lib/​pilight/​action",​ 
- "​operator-root":​ "/​usr/​local/​lib/​pilight/​operator",​ 
- "​firmware-update":​ 1, 
- "​firmware-gpio-reset":​ 10, 
- "​firmware-gpio-sck":​ 14, 
- "​firmware-gpio-mosi":​ 12, 
- "​firmware-gpio-miso":​ 13, 
- "​watchdog-enable":​ 1 
-} 
-... 
-</​code>​ 
- 
-==== 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: 
- 
-^Name^Description^ 
-|port|change the default port the daemon will run at| 
-|standalone|should the daemon run in standalone mode| 
-|log-level|the default log level of the daemon| 
-|pid-file|the default location of the process id file| 
-|send-repeats|how many times should a code be send| 
-|receive-repeats|how many times should a code be received| 
-|webserver-enable|enable the built-in webserver| 
-|webserver-port|webserver port| 
-|webserver-root|webserver root path| 
-|webserver-cache|read webgui files from memory| 
-|webserver-authentication|enable protected login to webgui| 
-|webserver-user|webserver user permissions| 
-|webgui-template|the webgui template in use| 
-|webgui-websockets|enable websockets or use AJAX calls (for older browser)| 
-|whitelist|allow only certain ip (ranges) to connect to pilight| 
-|protocol-root|path to loadable protocol modules| 
-|hardware-root|path to loadable hardware modules| 
-|action-root|path to loadable action modules| 
-|operator-root|path to loadable operator modules| 
-|firmware-update|should pilight automatically upgrade the filter firmware| 
-|firmware-gpio-reset|gpio pin used for firmware reset| 
-|firmware-gpio-sck|gpio pin used for firmware sck| 
-|firmware-gpio-mosi|gpio pin used for firmware mosi| 
-|firmware-gpio-miso|gpio pin used for firmware miso| 
-|watchdog-enable|enable internal CPU and RAM watchdog| 
- 
-==== Format and Defaults ==== 
- 
-^Name^Format^Default^ 
-|port|number|5000| 
-|standalone|1 or 0|0| 
-|log-level|1 till 5|4| 
-|pid-file|path|/​var/​run/​pilight-daemon.pid| 
-|send-repeats|number|10| 
-|receive-repeats|number|1| 
-|webserver-enable|1 or 0|1| 
-|webserver-port|number|5001| 
-|webserver-root|path|/​usr/​local/​share/​pilight/​| 
-|webserver-cache|1 or 0|1| 
-|webserver-authentication| [ "​user",​ "​password"​ ] | | 
-|webserver-user|www-data (linux) / www (FreeBSD) | | 
-|webgui-template| |default| 
-|webgui-websockets|1 or 0|1| 
-|whitelist| x.x.x.x, x.x.x.x, ...|127.0.0.1| 
-|protocol-root|path|/​usr/​local/​lib/​pilight/​protocols/​| 
-|hardware-root|path|/​usr/​local/​lib/​pilight/​hardware/​| 
-|action-root|path|/​usr/​local/​lib/​pilight/​actions/​| 
-|operator-root|path|/​usr/​local/​lib/​pilight/​operators/​| 
-|firmware-update|1 or 0|1| 
-|firmware-gpio-reset|number|10| 
-|firmware-gpio-sck|number|14| 
-|firmware-gpio-mosi|number|12| 
-|firmware-gpio-miso|number|13| 
-|watchdog-enable|1 or 0|1| 
- 
-==== Conflicts and Requirements ==== 
- 
-^Name^Conflict^Requires^ 
-|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-user| |"​webserver-enable":​ 1| 
-|webgui-template| |"​webserver-enable":​ 1| 
-|webgui-websockets| |"​webserver-enable":​ 1| 
-|whitelist| | | 
-|protocol-root| | | 
-|hardware-root| | | 
-|action-root| | | 
-|operator-root| | | 
-|firmware-update| | | 
-|firmware-gpio-reset| | | 
-|firmware-gpio-sck| | | 
-|firmware-gpio-mosi| | | 
-|firmware-gpio-miso| | | 
-|watchdog-enable| | | 
  
settings.txt ยท Last modified: 2015/11/27 21:09 (external edit)