diff --git a/README.md b/README.md index 402b8b1..752863c 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ It lives at http://www.huegasm.com ## Current priorities - create a hybrid app with Cardova -## Bugs -- HackTimer not working? Slowness when switching to another browser tab, etc... +## WTF +Cordova disables the volume buttons for some reason. Monkey patching that shit ( must be a better way :( ). +Comment out: webView.setButtonPlumbedToJs lines from its source code. ## POSSIBLE FUTURE FEATURES - decode the hue color better diff --git a/mobile/app/pods/components/hue-controls/component.js b/mobile/app/pods/components/hue-controls/component.js index d4c6dce..bd72712 100644 --- a/mobile/app/pods/components/hue-controls/component.js +++ b/mobile/app/pods/components/hue-controls/component.js @@ -83,6 +83,7 @@ export default Component.extend({ if (!isNone(storage.get('huegasm.dimmerOn'))) { this.set('dimmerOn', storage.get('huegasm.dimmerOn')); + this.get('dimmerOnClass'); } if (!isNone(this.get('storage').get('huegasm.selectedTab'))) { @@ -106,7 +107,9 @@ export default Component.extend({ updateLightData(){ let fail = ()=>{ - if(this.get('displayFailure')){ + if(isNone(this.get('lightsData'))) { + this.send('clearBridge'); + } else if(this.get('displayFailure')) { this.get('notify').warning({html: ''}); this.set('displayFailure', false); diff --git a/mobile/app/pods/components/hue-controls/template.hbs b/mobile/app/pods/components/hue-controls/template.hbs index e301a39..aab6af7 100644 --- a/mobile/app/pods/components/hue-controls/template.hbs +++ b/mobile/app/pods/components/hue-controls/template.hbs @@ -1,7 +1,9 @@ {{#if ready}}