Skip to content

Instantly share code, notes, and snippets.

@aurman
aurman / read_from_arduino.groovy
Last active April 12, 2017 15:42
Read string from Arduino
/**
* Read From Arduino
*
* Author: urman
* Date: 2013-03-14
* Revision 2014-07-10
*/
// for the UI
metadata {
@aurman
aurman / on-off-shield-example.groovy
Last active May 27, 2018 07:13
Device Handler Code for On/Off Shield (example)
/*
* On/Off Shield (example)
*
* Author: urman
* Date: 2013-03-14
* Revision: 2014-07-10
* Capabilities:
* Switch
* Custom Attributes:
* greeting
@aurman
aurman / enpointExample.groovy
Created March 27, 2014 17:33
SmartThings API Endpoint Example
/**
* App Endpoint API Access Example
*
* Author: SmartThings
*/
preferences {
section("Allow Endpoint to Control These Things...") {
input "switches", "capability.switch", title: "Which Switches?", multiple: true
input "locks", "capability.lock", title: "Which Locks?", multiple: true
@aurman
aurman / exampleOauth.php
Last active July 4, 2022 13:00
SmartThings .php example authenticating and controlling SmartThings API endpoints
<?php
//client id and client secret
$client = '';
$secret = '';
//hardcode the full url to redirect to this file
$url = "";
//STEP 1 - Get Access Code