Skip to content

Instantly share code, notes, and snippets.

View rappleg's full-sized avatar

Ryan Applegate rappleg

  • One Tap Away
  • Minneapolis, MN
View GitHub Profile
/**
* ParentChildParent
*
* Author: scott
* Date: 2014-02-14
*/
preferences {
section("Title") {
// TODO: put inputs here
}
metadata {
// simulator metadata
simulator {
// status messages
status "on": "on/off: 1"
status "off": "on/off: 0"
// reply messages
reply "zcl on-off on": "on/off: 1"
reply "zcl on-off off": "on/off: 0"
/**
* Foscam
*
* Author: danny@smartthings.com
* Date: 2013-07-25
* Revisions: Chris Yard
* Edits for Foscam FI9831 commands
*/
// for the UI
metadata {
/**
* Page Navigation
*
* Author: steve
* Date: 2013-08-23
*/
preferences {
page(name:"A", title:"A", content:"A", params:["foo":1])
page(name:"B", title:"B", content:"B", params:["foo":1])
@rappleg
rappleg / gist:9557444
Created March 14, 2014 21:33
Button Lord
/**
* Button Lord
*
* Author: SmartThings
* Date: 2013-11-27
*/
preferences {
page(name: "selectButton")
page(name: "configureButton1")
page(name: "configureButton2")
### Keybase proof
I hereby claim:
* I am rappleg on github.
* I am rappleg (https://keybase.io/rappleg) on keybase.
* I have a public key whose fingerprint is 102D B542 6D8E 4DC5 5217 2DEF FB36 FB29 413A EB16
To claim this, I am signing this object:
@rappleg
rappleg / gist:5852620
Created June 24, 2013 19:11
.bash_profile
# vi keybindings
#set -o vi
# Color for ls
export CLICOLOR=true
export LSCOLORS="exfxcxdxbxegedabagacad"
# Prompt
if [ -f $HOME/scripts/bash/.git_ps1 ]; then
. $HOME/scripts/bash/.git_ps1
/**
* Text Me A Picture When There's Motion
*
* Author: SmartThings
*/
preferences {
section("When there's movement..."){
input "motion1", "capability.motionSensor", title: "Front Door"
}
section("Take a picture..."){
metadata {
simulator {
status "image": "raw:C45F5708D89A4F3CB1A7EEEE2E0C73D900, image:C45F5708D89A4F3CB1A7EEEE2E0C73D9, result:00"
reply "take C45F5708D89A4F3CB1A7EEEE2E0C73D9": "raw:C45F5708D89A4F3CB1A7EEEE2E0C73D900, image:C45F5708D89A4F3CB1A7EEEE2E0C73D9, result:00"
}
tiles {
standardTile("camera", "device.image", width: 1, height: 1, canChangeIcon: false, inactiveLabel: true, canChangeBackground: false) {
state "default", label: "", action: "", icon: "st.camera.dropcam-centered", backgroundColor: "#FFFFFF"
@rappleg
rappleg / gist:5904660
Created July 1, 2013 21:09
Legacy DropCam Handler
metadata {
simulator {
status "image": "raw:C45F5708D89A4F3CB1A7EEEE2E0C73D900, image:C45F5708D89A4F3CB1A7EEEE2E0C73D9, result:00"
reply "take C45F5708D89A4F3CB1A7EEEE2E0C73D9": "raw:C45F5708D89A4F3CB1A7EEEE2E0C73D900, image:C45F5708D89A4F3CB1A7EEEE2E0C73D9, result:00"
}
tiles {
standardTile("camera", "device.image", width: 1, height: 1, canChangeIcon: false, inactiveLabel: true, canChangeBackground: false) {
state "default", label: "", action: "", icon: "st.camera.dropcam-centered", backgroundColor: "#FFFFFF"