Skip to content

Instantly share code, notes, and snippets.

import groovy.json.JsonSlurper
import groovy.json.JsonOutput
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv Gal Waizer") {
capability "Music Player"
capability "Switch"
capability "Refresh"
command "preset1"
command "preset2"
@nivw
nivw / gist:444e9976e10f9462725190efdc26d133
Created December 7, 2017 15:31
refresh does not get a response
import groovy.json.JsonSlurper
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv") {
capability "Music Player"
capability "Refresh"
capability "Switch"
}
import groovy.json.JsonSlurper
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv") {
capability "Music Player"
capability "Refresh"
capability "Switch"
// These strings are comma separated lists of names
attribute "playlists", "json_object"
import groovy.json.JsonSlurper
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv") {
capability "Music Player"
capability "Refresh"
capability "Switch"
// These strings are comma separated lists of names
@nivw
nivw / gist:819aad658484cb1d51eed50e150a741a
Created December 4, 2017 20:34
second attempt at posting for a response
import groovy.json.JsonSlurper
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv") {
capability "Music Player"
capability "Refresh"
capability "Switch"
// These strings are comma separated lists of names
attribute "playlists", "json_object"
@nivw
nivw / gist:3d37108b338852eaec81fdebdd4dba66
Created December 3, 2017 20:15
integration with rompr
/**
* based on ObyThing Music
*
*/
import groovy.json.JsonSlurper
metadata {
definition (name: "Rompr", namespace: "ngw", author: "Niv") {
capability "Music Player"