This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var https = require('https'); | |
var path = require('path'); | |
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var passport = require('passport'); | |
var NestStrategy = require('passport-nest').Strategy; | |
var session = require('express-session'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata { | |
// Automatically generated. Make future change here. | |
definition (name: "Exhalr", namespace: "smartthings", author: "SmartThings") { | |
capability "Actuator" | |
capability "Switch" | |
capability "Sensor" | |
} | |
// Simulator metadata | |
simulator { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* GE Link Bulb | |
* | |
* Copyright 2014 SmartThings | |
* | |
* 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 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug PresenceSensors/subscriptions | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug contactSensors/subscriptions | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors Deleted | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors added | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug switches added | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug PresenceSensors/subscriptions | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug contactSensors/subscriptions | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors Deleted | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors added | |
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug switches added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//client id and client secret | |
$client = ''; | |
$secret = ''; | |
//hardcode the full url to redirect to this file | |
$url = ""; | |
//STEP 1 - Get Access Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* App Name: Wireless 3-Way | |
* | |
* Author: chrisb | |
* Date: 2013-07-16 | |
* | |
* This app "groups" a set of switches together so that if any one is turned on | |
* or off, they all will go on or off. This allows them to act as three-way | |
* without needing wiring between the switches. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* On/Off Shield (example) | |
* | |
* Author: urman | |
* Date: 2013-03-14 | |
* Revision: 2014-07-10 | |
* Capabilities: | |
* Switch | |
* Custom Attributes: | |
* greeting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Aeon Door/Window Sensor | |
* | |
* Author: SmartThings | |
* Date: 2013-04-23 | |
*/ | |
// for the UI | |
metadata { | |
// simulator metadata |
NewerOlder