forked from bren1818/TCPLightingWebInterface
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Logic to allow for Spaces in names
Strips spaces from Room, Device & Scene names
- Loading branch information
1 parent
f192791
commit f881170
Showing
4 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
define("LIGTHING_BRIDGE_IP", "192.168.1.TCP"); // IP address of TCP Bridge/Gateway | ||
define("LIGHTING_BRIDGE_PORT", "443"); // 443 for new firmware, 80 for legacy - If you don't know, leave it at 443 | ||
define("LOCAL_URL", "http://localhost"); // Address of your webserver running this - this is used in runSchedule to call the API | ||
define("LOCAL_URL", "http://lighting.local"); // Address of your webserver running this - this is used in runSchedule to call the API | ||
|
||
define("USER_EMAIL", "[email protected]"); // I think this is so you dont have to regenerate tokens if you run this script elsewhere | ||
define("USER_PASSWORD", "can-be-anything"); // can be anything | ||
|
@@ -79,9 +79,9 @@ | |
$MQTTport = 1883; // Change as necessary | ||
$MQTTusername = "admin"; // Set your username | ||
$MQTTpassword = "password"; // set your password | ||
$MQTTsub_id = "tcp-subscriber"; // make sure this is unique for connecting to sever - you could use uniqid() | ||
$MQTTpub_id = "tcp-publisher"; // make sure this is unique for connecting to sever - you could use uniqid() | ||
$MQTT_prefix = "light"; // Topic prefix for lights | ||
$ENABLE_HA_DISCO = 1; // Enable MQTT Publishing of Home Assistant Discovery Topics | ||
$HASSTopic_id = "homeassistant"; // Topice prefix for Home Assistant Discovery Topics | ||
$MQTTsub_id = "tcp-subscriber"; // Make sure this is unique for connecting to server - you could use uniqid() | ||
$MQTTpub_id = "tcp-publisher"; // Make sure this is unique for connecting to server - you could use uniqid() | ||
$MQTT_prefix = "light"; // Topic prefix for lights - ie light/<room-name>/<light-name>/<UniqueBulbID> | ||
$ENABLE_HA_DISCO = 1; // Enable MQTT Publishing of Home Assistant Discovery Topics (1 = true, 0 = false) | ||
$HASSTopic_id = "homeassistant"; // Topic prefix for Home Assistant Discovery Topics - this must match with HASS | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters