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
| <link rel="import" href="../paper-toggle-button/paper-toggle-button.html"> | |
| <link rel="import" href="../paper-slider/paper-slider.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; |
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 -r ' | |
| $filename = "index2.html"; | |
| $file = file_get_contents($filename); | |
| $views = str_replace("</script>", "</script>\n", `cat views/*`); | |
| $find = "/(<!--StartTemplates-->)(.*)(<!--EndTemplates)/s"; | |
| $replace = "$1\n{{templates}}\n$3"; | |
| $file = preg_replace($find, $replace, $file); | |
| $file = str_replace("{{templates}}", $views, $file); |
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
| /** | |
| * Nest Direct | |
| * | |
| * Author: dianoga7@3dgo.net | |
| * Date: 2013-07-18 | |
| * Code: https://gist.github.com/Dianoga/6055918 | |
| * | |
| * INSTALLATION | |
| * ========================================= | |
| * 1) Create a new device type (https://graph.api.smartthings.com/ide/devices) |
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
| /** | |
| * HVAC Auto Off | |
| * | |
| * Author: dianoga7@3dgo.net | |
| * Date: 2013-07-21 | |
| */ | |
| preferences { | |
| section("Control") { | |
| input("thermostat", "capability.thermostat", title: "Thermostat") | |
| } |
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
| /** | |
| * Sunrise/Sunset | |
| * | |
| * Author: dianoga7@3dgo.net | |
| * Date: 2013-06-26 | |
| */ | |
| preferences { | |
| section("Sunrise") { | |
| input ('sunrise_mode', 'mode', title: 'Change to mode: ') | |
| } |
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
| /** | |
| * Clever Night Light | |
| * | |
| * Author: Brian Steere | |
| */ | |
| preferences { | |
| section("Turn on which things") { | |
| input "switches", "capability.switch", title: "Things", 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
| /** | |
| * Nest | |
| * | |
| * Author: dianoga7@3dgo.net | |
| * Date: 2013-06-24 | |
| */ | |
| // for the UI | |
| 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
| [Unit] | |
| Description=Start Herir Node.js Service | |
| Requires=network.target | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| WorkingDirectory=/srv/hereir/node | |
| ExecStart=/usr/bin/forever start --pidFile /var/run/hereir.pid HereIR.js | |
| ExecStop=/usr/bin/forever stop HereIR.js |
NewerOlder