Update speaker-mood-music.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Thu, 15 Aug 2019 22:33:13 +0000 (15:33 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 15 Aug 2019 22:33:13 +0000 (15:33 -0700)
official/speaker-mood-music.groovy

index 21edb437c4529422ab6c078ebd363e21e274ac05..4f30cf54f578a14b311a82360484b209e05a9ebc 100755 (executable)
@@ -261,9 +261,9 @@ private takeAction(evt) {
 
        if (volume != null) {
                sonos.stop()
 
        if (volume != null) {
                sonos.stop()
-               pause(500)
+               //pause(500)
                sonos.setLevel(volume)
                sonos.setLevel(volume)
-               pause(500)
+               //pause(500)
        }
 
        sonos.playTrack(state.selectedSong)
        }
 
        sonos.playTrack(state.selectedSong)
@@ -297,7 +297,7 @@ private oncePerDayOk(Long lastTime) {
 
 // TODO - centralize somehow
 private getAllOk() {
 
 // TODO - centralize somehow
 private getAllOk() {
-       modeOk && daysOk && timeOk
+       modeOk//&& daysOk && timeOk
 }
 
 private getModeOk() {
 }
 
 private getModeOk() {