Smart Homes made smarter with Javascript

J
SMART HOMES MADE
SMARTER WITH
JAVASCRIPT
DevTeach Mtl
July 2016
Joel Lord - Spiria
ABOUT ME
Javascript Junkie
Tinkerer
Technology Enthusiast
7/9/2016 3
@joel__lord
ABOUT ME
I <3 Gadgets
7/9/2016 4
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
7/9/2016 5
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
7/9/2016 6
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
7/9/2016 7
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
7/9/2016 8
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
7/9/2016 9
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
7/9/2016 10
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
7/9/2016 11
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
7/9/2016 12
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
Schlage
7/9/2016 13
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
Schlage
Lutron
7/9/2016 14
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
Schlage
Lutron
Zigbee
7/9/2016 15
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
Schlage
Lutron
Zigbee
Z-wave
7/9/2016 16
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belkin Wemo
iRobot
Schlage
Lutron
Zigbee
Z-wave
X10
7/9/2016 17
@joel__lord
THE HOME AUTOMATION MARKET
There are many options out there !
Nest
GE
Philips
Insteon
Samsung SmartThings
Belking Wemo
iRobot
Schlage
Lutron
Zigbee
Z-wave
X10
7/9/2016 18
@joel__lord
THE HOME AUTOMATION MARKET
Each device has it’s own app
Soon, your phone is a mess
and you can’t control your
devices
7/9/2016 19
@joel__lord
WINK ECOSYSTEM
Connect various devices from various providers within a single
application
7/9/2016 20
@joel__lord
WINK ECOSYSTEM
Connect various devices from various providers within a single
application
But even better… They have an API
7/9/2016 21
@joel__lord
WINK ECOSYSTEM
Connect various devices from various providers within a single
application
But even better… They have an API
It’s not what you do with it that counts, it’s what you can do
7/9/2016 22
@joel__lord
WINK ECOSYSTEM
7/9/2016 23
@joel__lord
WINK ECOSYSTEM
7/9/2016 24
@joel__lord
WINK ECOSYSTEM
7/9/2016 25
@joel__lord
WINK DEMO
7/9/2016 26
@joel__lord
WINK DEMO
7/9/2016 27
@joel__lord
Pretty limited
WINK DEMO
7/9/2016 28
@joel__lord
Pretty limited
Robots are the Wink equivalent to macros
WINK DEMO
7/9/2016 29
@joel__lord
WINK DEMO
7/9/2016 30
@joel__lord
WINK DEMO
7/9/2016 31
@joel__lord
WINK DEMO
7/9/2016 32
@joel__lord
WINK DEMO
7/9/2016 33
@joel__lord
WINK DEMO
7/9/2016 34
@joel__lord
WINK DEMO
7/9/2016 35
@joel__lord
LET’S MAKE IT SMARTER
7/9/2016 36
@joel__lord
Integration with Amazon Echo
LET’S MAKE IT SMARTER
7/9/2016 37
@joel__lord
Integration with Amazon Echo
Integration with IFTTT
 Either using the Maker Channel
 Or using a third party
INTRODUCING IFTTT
7/9/2016 38
@joel__lord
IFTTT is a free web-based service that allows users to create chains
of simple conditional statements, called "recipes", which are triggered
based on changes to other web services such as Gmail, Facebook,
Instagram, and Pinterest. IFTTT is an abbreviation of "If This Then
That"
-Wikipedia
IFTTT DEMO
7/9/2016 39
@joel__lord
http://cl.ly/300R1310191F
AND EVEN MORE SMART !
7/9/2016 40
@joel__lord
Let’s make it even smarter
We need more control over our things
AND EVEN MORE SMART !
7/9/2016 41
@joel__lord
We need :
 Variables
 Functions
 More third party integrations
INTRODUCING WINKJS
7/9/2016 42
@joel__lord
REST API
Uses OAUTH
More or less standard API objects
INTRODUCING WINKJS
7/9/2016 43
@joel__lord
Door Lock object {
last_reading: {
locked: true
},
desired_state: {
}
}
INTRODUCING WINKJS
7/9/2016 44
@joel__lord
Thermostat object {
last_reading: {
temperature: "18.5",
units: "C"
},
desired_state: {
}
}
INTRODUCING WINKJS
7/9/2016 45
@joel__lord
Light Bulb object {
last_reading: {
brightness: 0.5,
powered: true
},
desired_state: {
}
}
INTRODUCING WINKJS
7/9/2016 46
@joel__lord
INTRODUCING WINKJS
7/9/2016 47
@joel__lord
INTRODUCING WINKJS
7/9/2016 48
@joel__lord
A simple Hello World var Wink = require("wink");
var apiCredentials =
require("./credentials");
var wink = new Wink(apiCredentials);
wink.on("ready", function() {
var light = wink.getDeviceByName("Light1");
light.off();
});
INTRODUCING WINKJS
7/9/2016 49
@joel__lord
A Twitter integration //Web server
var express = require("express");
var app = express();
var server =
require("http").createServer(app);
var twit = require("twit");
var keyword = "#devteach";
var Wink = require("../lib");
var apiCredentials =
require("./credentials");
var twitterCredentials =
require("./twitterCredentials");
var wink = new Wink(apiCredentials); //Web
socket var port = 3333; //Start server
server.listen(port, function () {
console.log("Server started on port " +
port); }); //Twitter Stream listener var t =
HOW ABOUT SECURITY?
7/9/2016 50
@joel__lord
You have to be intentional
HOW ABOUT SECURITY?
7/9/2016 51
@joel__lord
You have to be intentional
Keep in mind that you are exposing your home lights to hackers
HOW ABOUT SECURITY?
7/9/2016 52
@joel__lord
You have to be intentional
Keep in mind that you are exposing your home lights to hackers
Or worse… your front door lock.
HOW ABOUT SECURITY?
7/9/2016 53
@joel__lord
Killing a Jeep on the highway: https://www.wired.com/2015/07/hackers-
remotely-kill-jeep-highway/
Hacking smart door bells: http://thehackernews.com/2016/01/doorbell-
hacking-wifi-pasword.html
THANK YOU
7/9/2016 54
@joel__lord
Questions?
Follow me on Twitter for the full slides
@joel__lord
^- Yup, two underscores
1 of 53

More Related Content

Viewers also liked(18)

Юпитер ТПУЮпитер ТПУ
Юпитер ТПУ
Vera Kovaleva471 views
Review for article 2Review for article 2
Review for article 2
Andres Molina67 views
Start fast OverviewStart fast Overview
Start fast Overview
sfva1.1K views
Social media is big businessSocial media is big business
Social media is big business
Colvin Consulting Group264 views
jQueryjQuery
jQuery
Vishwa Mohan3.3K views
Open Data - Smart Community ContinuumOpen Data - Smart Community Continuum
Open Data - Smart Community Continuum
Open Knowledge Canada1.2K views
Cloogy: a step towards the smart home conceptCloogy: a step towards the smart home concept
Cloogy: a step towards the smart home concept
ISA - Intelligent Sensing Anywhere1.8K views
Hoffmen Hoffmen
Hoffmen
Hoffmen Fashions Pvt. Ltd.406 views
Smart Community IntroductionSmart Community Introduction
Smart Community Introduction
Smart Community Source310 views
Beyond The Smart Home Beyond The Smart Home
Beyond The Smart Home
skytsai1.2K views
Kangen water samirKangen water samir
Kangen water samir
arunjpatil2.4K views

Similar to Smart Homes made smarter with Javascript(20)

Recently uploaded(20)

Smart Homes made smarter with Javascript