Update speaker-weather-forecast.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Thu, 24 Oct 2019 19:44:21 +0000 (12:44 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Thu, 24 Oct 2019 19:44:21 +0000 (12:44 -0700)
official/speaker-weather-forecast.groovy

index 256b58f..736d32d 100755 (executable)
@@ -105,7 +105,7 @@ def mainPage() {
                        input "resumePlaying", "bool", title: "Resume currently playing music after weather report finishes", required: false, defaultValue: true
                        //href "chooseTrack", title: "Or play this music or radio station", description: song ? state.selectedSong?.station : "Tap to set", state: song ? "complete" : "incomplete"
 
-                       input "zipCode", "text", title: "Zip Code", required: false
+                       //input "zipCode", "text", title: "Zip Code", required: false
                        input "volume", "number", title: "Temporarily change volume", description: "0-100%", required: false
                        input "frequency", "decimal", title: "Minimum time between actions (defaults to every event)", description: "Minutes", required: false
                        //href "timeIntervalInput", title: "Only during a certain time", description: timeLabel ?: "Tap to set", state: timeLabel ? "complete" : "incomplete"
@@ -234,7 +234,7 @@ def appTouchHandler(evt) {
 
 private takeAction(evt) {
 
-       loadText()
+       //loadText()
 
        if (song) {
                //sonos.playSoundAndTrack(state.sound.uri, state.sound.duration, state.selectedSong, volume)
@@ -441,6 +441,3 @@ private loadText() {
 private list(String s) {
        [s]
 }
-private list(l) {
-       l
-}