private songOptions() {
// Make sure current selection is in the set
-
+ /*
def options = new LinkedHashSet()
if (state.selectedSong?.station) {
options << state.selectedSong.station
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"
}
catch (Throwable t) {
log.error t
- }
+ }*/
+ state.selectedSong = "SomeTrack"
}
def installed() {
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)