From 1bb03201b1ef64f52f4570bf842413e5544683ac Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sun, 4 Aug 2019 19:43:42 -0700 Subject: [PATCH] Update step-notifier.groovy --- official/step-notifier.groovy | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) -- 2.34.1