User Tools

Site Tools


settings

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
settings [2015/03/08 13:17]
pilino1234 Added a link and changed heading format a bit
settings [2015/11/27 22:09] (current)
Line 5: Line 5:
 ===== Latest Stable ===== ===== 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:+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):
  
 <​code>​ <​code>​
 ... ...
 "​settings":​ { "​settings":​ {
- "port": ​5000+ "action-root": ​"/​usr/​local/​lib/​pilight/​action"​
- "standalone": ​0,+ "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,  "​log-level":​ 4,
 + "​operator-root":​ "/​usr/​local/​lib/​pilight/​operator",​
  "​pid-file":​ "/​var/​log/​daemon/​pilight.pid",​  "​pid-file":​ "/​var/​log/​daemon/​pilight.pid",​
- "log-file": "/var/log/pilight.log", + "port": 5000, 
- "send-repeats": ​10,+ "​protocol-root": "/usr/local/lib/pilight/protocols", 
 + "ntp-servers":​ [ "​server1",​ "​server2",​ ... ], 
 + "ntp-sync": ​1,
  "​receive-repeats":​ 1,  "​receive-repeats":​ 1,
- "webserver-enable": ​1+ "smtp-sender": ​"​...@..."​
- "webserver-root": "/​usr/​local/​share/​pilight/​", + "smtp-user": "...@...", 
- "webserver-port": ​5001,+ "smtp-password":​ "​abdcd",​ 
 + "​smtp-host":​ "​smtp.abcd.com",​ 
 + "smtp-port": ​25, 
 + "​standalone":​ 0, 
 + "​stats-enable":​ 1, 
 + "​watchdog-enable":​ 1,
  "​webgui-template":​ "​default",​  "​webgui-template":​ "​default",​
  "​webgui-websockets":​ 1,  "​webgui-websockets":​ 1,
 + "​webserver-authentication":​ [ "​username",​ "​password"​ ],
  "​webserver-cache":​ 1,  "​webserver-cache":​ 1,
- "​webserver-authentication": ​"username", "password" ​],+ "​webserver-enable": ​1, 
 + "webserver-port": 5001, 
 + "webserver-root": "/​usr/​local/​share/​pilight/",​ 
 + "​webserver-ssl-port":​ 5002,
  "​webserver-user":​ "",​  "​webserver-user":​ "",​
- "​whitelist":​ ""​+ "​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+
 } }
 ... ...
Line 45: Line 54:
  
 ^Name^Description^ ^Name^Description^
-|port|change the default port the daemon will run at+|action-root|path to loadable action modules
-|standalone|should the daemon run in standalone mode|+|firmware-update|should ​pilight automatically upgrade ​the filter firmware| 
 +|firmware-gpio-miso|gpio pin used for firmware miso| 
 +|firmware-gpio-mosi|gpio pin used for firmware mosi| 
 +|firmware-gpio-reset|gpio pin used for firmware reset| 
 +|firmware-gpio-sck|gpio pin used for firmware sck| 
 +|function-root|path to loadable function modules| 
 +|hardware-root|path to loadable hardware modules| 
 +|log-file|file to store pilight logs|
 |log-level|the default log level of the daemon| |log-level|the default log level of the daemon|
 +|operator-root|path to loadable operator modules|
 |pid-file|the default location of the process id file| |pid-file|the default location of the process id file|
-|send-repeats|how many times should a code be send|+|port|change the default port the daemon will run at| 
 +|protocol-root|path to loadable protocol modules| 
 +|ntp-servers|A list of ntp servers to sync our time with| 
 +|ntp-sync|Sync the ntp time|
 |receive-repeats|how many times should a code be received| |receive-repeats|how many times should a code be received|
 +|smtp-sender|The sender of pilight mail messages|
 +|smtp-user|The mail server authentication username|
 +|smtp-password|The mail server authentication password|
 +|smtp-host|The mail server host|
 +|smtp-port|The mail server port|
 +|standalone|don'​t connect to other pilight daemons|
 +|stats-enable|enable internal pilight CPU/RAM stat generation|
 +|watchdog-enable|enable internal CPU and RAM watchdog|
 +|webgui-template|the webgui template in use|
 +|webgui-websockets|enable websockets or use AJAX calls (for older browser)|
 +|webserver-authentication|enable protected login to webgui|
 |webserver-enable|enable the built-in webserver| |webserver-enable|enable the built-in webserver|
 +|webserver-cache|read webgui files from memory|
 |webserver-port|webserver port| |webserver-port|webserver port|
 |webserver-root|webserver root path| |webserver-root|webserver root path|
-|webserver-cache|read webgui files from memory| +|webserver-ssl-port|webserver ​ssl port|
-|webserver-authentication|enable protected login to webgui|+
 |webserver-user|webserver user permissions| |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| |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 ==== ==== Format and Defaults ====
  
 ^Name^Format^Default^ ^Name^Format^Default^
-|port|number|5000+|action-root|path|/​usr/​local/​lib/​pilight/​actions/​| 
-|standalone|1 or 0|0|+|firmware-gpio-miso|number|13
 +|firmware-gpio-mosi|number|12| 
 +|firmware-gpio-reset|number|10| 
 +|firmware-gpio-sck|number|14| 
 +|firmware-update|1 or 0|1| 
 +|function-root|path|/​usr/​local/​lib/​pilight/​function/​| 
 +|hardware-root|path|/​usr/​local/​lib/​pilight/​hardware/​| 
 +|log-file|path|/​var/​log/​pilight.log|
 |log-level|1 till 5|4| |log-level|1 till 5|4|
 +|operator-root|path|/​usr/​local/​lib/​pilight/​operators/​|
 |pid-file|path|/​var/​run/​pilight-daemon.pid| |pid-file|path|/​var/​run/​pilight-daemon.pid|
-|send-repeats|number|10|+|port|number|5000| 
 +|protocol-root|path|/​usr/​local/​lib/​pilight/​protocols/​| 
 +|ntp-servers|array of servers| | 
 +|ntp-sync|1 or 0|1|
 |receive-repeats|number|1| |receive-repeats|number|1|
 +|smtp-sender|valid mail address| |
 +|smtp-user| | |
 +|smtp-password| | |
 +|smtp-host|a valid mail server| |
 +|smtp-port| |25, 465, 587|
 +|standalone|1 or 0|0|
 +|stats-enable|1 or 0|1|
 +|watchdog-enable|1 or 0|1|
 +|webgui-template| |default|
 +|webgui-websockets|1 or 0|1|
 +|webserver-authentication| [ "​user",​ "​password"​ ] | |
 +|webserver-cache|1 or 0|1|
 |webserver-enable|1 or 0|1| |webserver-enable|1 or 0|1|
 |webserver-port|number|5001| |webserver-port|number|5001|
 |webserver-root|path|/​usr/​local/​share/​pilight/​| |webserver-root|path|/​usr/​local/​share/​pilight/​|
-|webserver-cache|1 or 0|1| +|webserver-ssl-port|number|5002|
-|webserver-authentication[ "​user",​ "​password"​ ] | |+
 |webserver-user|www-data (linux) / www (FreeBSD) | | |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| |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 22:09 (external edit)