diff --git a/HUEMediate/index.html b/HUEMediate/index.html index fa03871..ecf8c11 100755 --- a/HUEMediate/index.html +++ b/HUEMediate/index.html @@ -124,7 +124,7 @@ // look for bridge // wait for BridgeName - // check if UsernameWhitelisted + // check if BridgeUsernameWhitelisted // NO? -> whitelist // play function DiscoverBridgeAndTryWhitelisting() @@ -132,9 +132,9 @@ if (!localStorage.HUEPIBridgeIP) { // No Cached BridgeIP? $('#HUEStatus').text('Trying to Discover HUE Bridge via HUE Portal'); MyHue.PortalDiscoverLocalBridges().then(function GetBridgeConfig() { - MyHue.BridgeGet().then(function EnsureWhitelisting() { + MyHue.BridgeGetData().then(function EnsureWhitelisting() { $('#HUEBridgeIP').text('Bridge IP: ' + MyHue.BridgeIP); - if (!MyHue.UsernameWhitelisted) { + if (!MyHue.BridgeUsernameWhitelisted) { $('#HUEStatus').text('Please press connect button on the Hue Bridge'); MyHue.BridgeCreateUser().then(function ReReadBridgeConfiguration() { return setTimeout(GetBridgeConfig, 1000); @@ -154,8 +154,8 @@ { MyHue.BridgeIP = localStorage.HUEPIBridgeIP; $('#HUEBridgeIP').text('Cached Bridge IP: ' + MyHue.BridgeIP); - MyHue.BridgeGet().then(function CheckWhitelisting() { - if (MyHue.UsernameWhitelisted) { + MyHue.BridgeGetData().then(function CheckWhitelisting() { + if (MyHue.BridgeUsernameWhitelisted) { return LightsOnAndStartHeartbeat(); } }); @@ -175,7 +175,7 @@ } function StatusHeartbeat() { - MyHue.BridgeGet().then(function UpdateUI() { + MyHue.BridgeGetData().then(function UpdateUI() { $('#brightnessslider').val(MyHue.Lights[1].state.bri); // Get 1st light brightness for now... $('#brightnessslider').slider('refresh'); setTimeout(StatusHeartbeat, 2500); @@ -218,8 +218,8 @@