forked from bren1818/TCPLightingWebInterface
-
Notifications
You must be signed in to change notification settings - Fork 4
ConfigFileCustomization
Paul edited this page Sep 10, 2019
·
3 revisions
All configuration values are stored in config.inc.php
To achieve local control of your lights generally only one variable must be edited
define("LIGTHING_BRIDGE_IP", "192.168.1.TCP");
Edit 192.168.1.TCP to be the address of TCP Connected Bridge
If you want to test or only intend to use local control you can jump to Syncing the Gateway
Unless otherwise noted Variables are boolean values. (0 & 1)
All Variables have comments describing their function extended descriptions will listed below for a few of them
-
define("LOCAL_URL", "http://localhost");
- If you have completed the Advanced Server setup you will want to change this url to the one you defined in the virtual host setup i.e. http://lighting.local
-
define("USE_TOKEN_FILE", 1);
- If you would rather not use an external file to hold the token set this value to 0
- When you run the gateway sync you will need to populate
define("TOKEN", "PASTE_TOKEN_HERE_IF_NOT_USING_TOKEN_FILE");
with the code that is generated
Variables related to MQTT Integration, IFTTT Integration and the Scheduler are described in the setup information for those functions
You are now ready to move on to Enabling MQTT
- Home
- Installation & Configuration
- Pi Setup Walk-through
- Additional Project Information