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