MSA-1961: Slingtv app

This commit is contained in:
Eddie winter
2017-05-06 09:21:55 -07:00
parent 68f5cda945
commit f403b10f7a
2 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
/**
* Sony Blu-ray
*
* Copyright 2017 Eddie winter
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
metadata {
definition (name: "Sony Blu-ray", namespace: "Eddie", author: "Eddie winter") {
capability "Acceleration Sensor"
capability "Buffered Video Capture"
capability "Location Mode"
capability "Media Controller"
capability "Refresh"
capability "Video Stream"
}
simulator {
// TODO: define status and reply messages here
}
tiles {
// TODO: define your main and details tiles here
}
}
// parse events into attributes
def parse(String description) {
log.debug "Parsing '${description}'"
// TODO: handle 'acceleration' attribute
// TODO: handle 'clip' attribute
// TODO: handle 'mode' attribute
// TODO: handle 'activities' attribute
// TODO: handle 'currentActivity' attribute
// TODO: handle 'stream' attribute
}
// handle commands
def capture() {
log.debug "Executing 'capture'"
// TODO: handle 'capture' command
}
def setMode() {
log.debug "Executing 'setMode'"
// TODO: handle 'setMode' command
}
def startActivity() {
log.debug "Executing 'startActivity'"
// TODO: handle 'startActivity' command
}
def refresh() {
log.debug "Executing 'refresh'"
// TODO: handle 'refresh' command
}
def startStream() {
log.debug "Executing 'startStream'"
// TODO: handle 'startStream' command
}
def stopStream() {
log.debug "Executing 'stopStream'"
// TODO: handle 'stopStream' command
}

View File

@@ -0,0 +1,52 @@
/**
* slingtv
*
* Copyright 2017 Eddie winter
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
definition(
name: "slingtv",
namespace: "aenomads63@gmail.com",
author: "Eddie winter",
description: "Slingtv app ",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png") {
appSetting "play store"
}
preferences {
section("Title") {
// TODO: put inputs here
}
}
def installed() {
log.debug "Installed with settings: ${settings}"
initialize()
}
def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
initialize()
}
def initialize() {
// TODO: subscribe to attributes, devices, locations, etc.
}
// TODO: implement event handlers