Code Monkey home page Code Monkey logo

hpanel-server's Introduction

/*
* House Panel PHP application for SmartThings
* author: Ken Washington  (c) 2017
*
* general purpose routines included for authorizing a web service
* specific application shows all switches, motion sensors, and door contacts
* thermostats and doors to open and other capabilities will be added later
*
* for switches the Ajax call is used to turn the switch on and off from the web
* DEBUG flags can be used to show specific data details during installation
* this must be paired with the HousePanel SmartApp on the SmartThings side
*
* CLIENT_ID, CLIENT_SECRET, and ST_WEB must be in a file called clientinfo.php
* which must look as follows:
*
<?php
define('CLIENT_ID', 'abc1abc1-abc2-abc3-abc4-abc5abc5abc5');
define('CLIENT_SECRET', 'abc1abc1-abc2-abc3-abc4-abc5abc5abc5');
define('ST_WEB','https://graph.api.smartthings.com');

* real data for CLIENT_ID and CLIENT_SECRET are found in SmartThings
* after you enable OAUTH2 in the SmartApp panel
*
* Finally, install all files in any web server and you should be good to go
* While any web server will do, I strongly recommend one with SSL or using
* a local webserver on a Raspberry Pi that sits behind your home firewall
* and on the same network as your ST hub. This will make the app run fast.
* 
*/

hpanel-server's People

Contributors

kewashi avatar

Watchers

 avatar

Forkers

cmedica

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.