From: Seyed Amir Hossein Aqajari Date: Mon, 5 Aug 2019 02:43:42 +0000 (-0700) Subject: Update step-notifier.groovy X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=commitdiff_plain;h=1bb03201b1ef64f52f4570bf842413e5544683ac Update step-notifier.groovy --- diff --git a/official/step-notifier.groovy b/official/step-notifier.groovy index 3224186..e2c07fb 100755 --- a/official/step-notifier.groovy +++ b/official/step-notifier.groovy @@ -85,7 +85,7 @@ def setupNotifications() { private songOptions() { // Make sure current selection is in the set - + /* def options = new LinkedHashSet() if (state.selectedSong?.station) { options << state.selectedSong.station @@ -101,10 +101,12 @@ private songOptions() { options.addAll(dataMaps.collect{it.station}) log.trace "${options.size()} songs in list" - options.take(20) as List + options.take(20) as List*/ + state.selectedSong = "SomeTrack" } private saveSelectedSong() { + /* try { def thisSong = song log.info "Looking for $thisSong" @@ -126,7 +128,8 @@ private saveSelectedSong() { } catch (Throwable t) { log.error t - } + }*/ + state.selectedSong = "SomeTrack" } def installed() { @@ -147,7 +150,7 @@ def initialize() { log.trace "Entering initialize()" state.lastSteps = 0 - state.steps = jawbone.currentValue("steps").toInteger() + state.steps = jawbone.currentValue("steps").toInteger() state.goal = jawbone.currentValue("goal").toInteger() subscribe (jawbone,"goal",goalHandler)