SlideShare a Scribd company logo
Smart Homes Made
Smarter With JS
Joel Lord
Guidebook app: NEPHP2016
www.spiria.com
Smart Homes MadeSmarter With
Javascript
PresentedBy
JOEL LORD
North EastPHP 2016,Charlottetown,PE
August 5th,2016
#NEPHP
@joel__lord
JOEL LORD
About me,eh?
• Javascript Junkie
• Tinkerer
• Technology enthusiast
#NEPHP
@joel__lord
#NEPHP
@joel__lord
JOEL LORD
About me,eh?
• Javascript Junkie
• Tinkerer
• Technology enthusiast
#NEPHP
@joel__lord
AGENDA Wink Ecosystem
Macros (or Robots)
IFTTT
Introducing WinkJS
Demos
Q&A
#NEPHP
@joel__lord
I <3 GADGETS
About me,eh?
State of the Market
HOME AUTOMATION
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
• Schlage
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
• Schlage
• Lutron
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
• Schlage
• Lutron
• Zigbee
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
• Schlage
• Lutron
• Zigbee
• Z-wave
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belkin Wemo
• iRobot
• Schlage
• Lutron
• Zigbee
• Z-wave
• X10
@joel__lord
#NEPHP
@joel__lord
TheHome automation market
• There are many options out there !
• Nest
• GE
• Philips
• Insteon
• Samsung SmartThings
• Belking Wemo
• iRobot
• Schlage
• Lutron
• Zigbee
• Z-wave
• X10
@joel__lord
#NEPHP
@joel__lord
Thehome automation market
• Each device has it’s own app
• Soon, your phone is a mess and you can’t control your devices
@joel__lord
#NEPHP
@joel__lord
Wink ecosystem
• Connect various devices from various providers within a single application
8/4/2016 24
@joel__lord
#NEPHP
@joel__lord
Wink ecosystem
• Connect various devices from various providers within a single application
• But even better…
8/4/2016 25
@joel__lord
#NEPHP
@joel__lord
Wink ecosystem
• Connect various devices from various providers within a single application
• But even better… They have an API
8/4/2016 26
@joel__lord
#NEPHP
@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
8/4/2016 27
@joel__lord
#NEPHP
@joel__lord
Wink ecosystem
8/4/2016
@joel__lord
28
#NEPHP
@joel__lord
Wink ecosystem
8/4/2016
@joel__lord
29
#NEPHP
@joel__lord
Wink ecosystem
8/4/2016
@joel__lord
30
#NEPHP
@joel__lord
Wink demo
8/4/2016 31
@joel__lord
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
32
• Pretty limited
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
33
• Pretty limited
• Robots are the Wink equivalent to macros
Wink Robots
MAKE IT SMARTER
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
35
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
36
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
37
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
38
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
39
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
40
#NEPHP
@joel__lord
Wink demo
8/4/2016
@joel__lord
41
IFTTT Integration
MAKE IT SMARTER
#NEPHP
@joel__lord
Let’s makeit smarter
8/4/2016
@joel__lord
43
• Integration with Amazon Echo
• Integration with IFTTT
– Either using the Maker Channel
– Or using a third party
#NEPHP
@joel__lord
Introducing IFTTT
8/4/2016
@joel__lord
44
• 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
#NEPHP
@joel__lord
IFTTT demo
8/4/2016
@joel__lord
45
• http://cl.ly/300R1310191F
#NEPHP
@joel__lord
And evenmore smart !
8/4/2016
@joel__lord
46
• Let’s make it even smarter
• We need more control over our things
#NEPHP
@joel__lord
And evenmore smart !
8/4/2016
@joel__lord
47
• We need :
– Variables
– Functions
– More third party integrations
Introducing WinkJs
MAKE IT SMARTER
#NEPHP
@joel__lord
Introducing Winkjs
8/4/2016
@joel__lord
49
• REST API
• Uses OAUTH
• More or less standard API objects
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
50
• Door Lock object
{
last_reading: {
locked: true
},
desired_state: {
}
}
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
51
• Thermostat object
{
last_reading: {
temperature: "18.5",
units: "C"
},
desired_state: {
}
}
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
52
• Light Bulb object
{
last_reading: {
brightness: 0.5,
powered: true
},
desired_state: {
}
}
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
53
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
54
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
55
• 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();
});
#NEPHP
@joel__lord
Introducing winkjs
8/4/2016
@joel__lord
56
• 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 =
new twit(twitterCredentials); var stream =
t.stream("statuses/filter", {track:
keyword}); var lights = []; var winkReady =
false; wink.on("ready", function(devices) {
console.log("ready"); winkReady = true;
IT’S CODING TIME!
LET’S GET SERIOUS
IT’S CODING TIME!
LET’S GET SERIOUS
#NEPHP
@joel__lord
Howabout Security?
8/4/2016
@joel__lord
59
• You have to be intentional
#NEPHP
@joel__lord
Howabout Security?
8/4/2016
@joel__lord
60
• You have to be intentional
• Keep in mind that you are exposing your home lights to hackers
#NEPHP
@joel__lord
Howabout Security?
8/4/2016
@joel__lord
61
• You have to be intentional
• Keep in mind that you are exposing your home lights to hackers
• Or worse… your front door lock.
#NEPHP
@joel__lord
Howabout Security?
8/4/2016
@joel__lord
62
• 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
DOCUMENT CONFIDENTIEL, TOUT DROIT RÉSERVÉ
PRESENTED BY
TheEnd !
Questions ?
JOEL LORD
August2016
TWITTER: @JOEL__LORD
GITHUB: HTTP://GITHUB.COM/JOELLORD
http://bit.ly/2au33dH

More Related Content

PDF
Smart Homes Made Smarter With Javascript
PDF
Use voice recognition with Alexa to control your home [JavaOne]
PDF
Welcome alexa, your personal assistant
PDF
TDC2016SP - Otimização Prematura: a Raíz de Todo o Mal
PPTX
JavaOne: Welcome alexa, your personal assistant [con1700]
PDF
20110805 ui14課題2
PDF
Geolocation in Web and Native Mobile Apps
PDF
SPAと覚悟
Smart Homes Made Smarter With Javascript
Use voice recognition with Alexa to control your home [JavaOne]
Welcome alexa, your personal assistant
TDC2016SP - Otimização Prematura: a Raíz de Todo o Mal
JavaOne: Welcome alexa, your personal assistant [con1700]
20110805 ui14課題2
Geolocation in Web and Native Mobile Apps
SPAと覚悟

What's hot (12)

PPTX
Tech Nottingham Build your Home API - 2015-02-02
PDF
Business of APIs
PDF
Grow as you go: lesson learned as a tech startupper
PDF
Grow as you go: lesson learned as a tech startupper - Iacobelli
PPTX
Evolution of computers
PDF
A Peek Under the Hood at FamilySearch Syllabus
PPTX
IOT BASED SYSTEM DESIGN
PDF
Low Friction Personal Data Collection - Open Source Bridge
PDF
Voice interface project
PPTX
Robocalypse: Controlling Robots with a Kinect
PPTX
DevTalks Romania Cluj - Spring Boot for DevOps (rebooted for 2.0)
PDF
Andrew Mager, Spotify
Tech Nottingham Build your Home API - 2015-02-02
Business of APIs
Grow as you go: lesson learned as a tech startupper
Grow as you go: lesson learned as a tech startupper - Iacobelli
Evolution of computers
A Peek Under the Hood at FamilySearch Syllabus
IOT BASED SYSTEM DESIGN
Low Friction Personal Data Collection - Open Source Bridge
Voice interface project
Robocalypse: Controlling Robots with a Kinect
DevTalks Romania Cluj - Spring Boot for DevOps (rebooted for 2.0)
Andrew Mager, Spotify
Ad

Viewers also liked (16)

DOCX
Review for the book 2 Crosscultural management Essential concepts
PPTX
Kathleen Hasleidy Palacios
DOCX
Survivor
PDF
A study and comparison of olsr, aodv and zrp routing protocols in ad hoc netw...
PPTX
Evaluación de las funciones de Excel
PPTX
Introduction To The Engineering Profession
ODP
What is and is not QA!
PDF
TPDL 2015 - Profiling Web Archives
PDF
Sd4(1)
PDF
Informe general tema 2 maria laura coelho eslava
PPT
Panel 11 Guillermo Carbó Ronderos
PDF
Tony CV77
DOC
Microsoft Excel Avanzado
PPTX
FUTURE LEADERS 2016 INNOVATIVE THINKING IN ORGANISATION
PPT
Usabilidad
PPT
人格四象學 廣利版
Review for the book 2 Crosscultural management Essential concepts
Kathleen Hasleidy Palacios
Survivor
A study and comparison of olsr, aodv and zrp routing protocols in ad hoc netw...
Evaluación de las funciones de Excel
Introduction To The Engineering Profession
What is and is not QA!
TPDL 2015 - Profiling Web Archives
Sd4(1)
Informe general tema 2 maria laura coelho eslava
Panel 11 Guillermo Carbó Ronderos
Tony CV77
Microsoft Excel Avanzado
FUTURE LEADERS 2016 INNOVATIVE THINKING IN ORGANISATION
Usabilidad
人格四象學 廣利版
Ad

Similar to Making Smart Homes Smarter With Javascript (20)

PDF
A Smart Home to Call Your Own
PDF
Why the Internet of Things will be built on Open Source
PPTX
Cross Device Optimisation - Google Analytics Shortcuts
PPTX
Smart Homes made smarter with Javascript
PDF
Real World Agile at Agile in the City London
PDF
Crazy cool or boring - what good hardware startups look like
 
PPTX
How to SEO your website and a look into voice search VSEO
PDF
IoT is Something to Figure Out
PDF
Gaming is on-the-go
PDF
Mike King - Futureproofing your SEO
PDF
Mike King - Futureproofing your SEO
PDF
Thibaut rouffineau
PDF
ARToolworks ARE 2011 Presentation
PDF
HTML5 for mobile - DiGi Challenge for Change
PDF
PlansBook_CODEBLUE
PPT
Contruindo Robots com Java Embedded Suite, Raspberry PI, Arduino e Things API
PPTX
Droidcon moscow
PDF
[Elite Camp 2016] Craig Sullivan - Elite Camp Summary Session
 
PPTX
infoShare 2014: Mark Johnson, Lessons from the Trenches: How I sold Zite twice
PDF
Peter Paul Koch - mobile convention amsterdam
A Smart Home to Call Your Own
Why the Internet of Things will be built on Open Source
Cross Device Optimisation - Google Analytics Shortcuts
Smart Homes made smarter with Javascript
Real World Agile at Agile in the City London
Crazy cool or boring - what good hardware startups look like
 
How to SEO your website and a look into voice search VSEO
IoT is Something to Figure Out
Gaming is on-the-go
Mike King - Futureproofing your SEO
Mike King - Futureproofing your SEO
Thibaut rouffineau
ARToolworks ARE 2011 Presentation
HTML5 for mobile - DiGi Challenge for Change
PlansBook_CODEBLUE
Contruindo Robots com Java Embedded Suite, Raspberry PI, Arduino e Things API
Droidcon moscow
[Elite Camp 2016] Craig Sullivan - Elite Camp Summary Session
 
infoShare 2014: Mark Johnson, Lessons from the Trenches: How I sold Zite twice
Peter Paul Koch - mobile convention amsterdam

More from Joel Lord (20)

PDF
From Ceasar Cipher To Quantum Cryptography
PDF
I Don't Care About Security (And Neither Should You)
PDF
I Don't Care About Security (And Neither Should You)
PDF
I Don't Care About Security (And Neither Should You)
PDF
Forgot Password? Yes I Did!
PDF
I Don't Care About Security (And Neither Should You)
PDF
Mot de passe oublié? Absolument!
PDF
Asynchronicity: concurrency. A tale of
PDF
Learning Machine Learning
PDF
Forgot Password? Yes I Did!
PDF
WTH is a JWT
PDF
I Don't Care About Security (And Neither Should You)
PDF
Forgot Password? Yes I Did!
PDF
I Don't Care About Security (And Neither Should You)
PDF
WTH is a JWT
PDF
Asynchonicity: concurrency. A tale of
PDF
I Don't Care About Security
PDF
I Don't Care About Security (And Neither Should You)
PDF
I Don't Care About Security (And Neither Should You)
PDF
Secure your SPA with Auth0
From Ceasar Cipher To Quantum Cryptography
I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Forgot Password? Yes I Did!
I Don't Care About Security (And Neither Should You)
Mot de passe oublié? Absolument!
Asynchronicity: concurrency. A tale of
Learning Machine Learning
Forgot Password? Yes I Did!
WTH is a JWT
I Don't Care About Security (And Neither Should You)
Forgot Password? Yes I Did!
I Don't Care About Security (And Neither Should You)
WTH is a JWT
Asynchonicity: concurrency. A tale of
I Don't Care About Security
I Don't Care About Security (And Neither Should You)
I Don't Care About Security (And Neither Should You)
Secure your SPA with Auth0

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
PPT on Performance Review to get promotions
PPTX
Construction Project Organization Group 2.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT
Project quality management in manufacturing
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPT
Total quality management ppt for engineering students
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Foundation to blockchain - A guide to Blockchain Tech
Embodied AI: Ushering in the Next Era of Intelligent Systems
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Fundamentals of Mechanical Engineering.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Sustainable Sites - Green Building Construction
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPT on Performance Review to get promotions
Construction Project Organization Group 2.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Project quality management in manufacturing
UNIT 4 Total Quality Management .pptx
Internet of Things (IOT) - A guide to understanding
Total quality management ppt for engineering students

Making Smart Homes Smarter With Javascript

Editor's Notes

  • #2: Thank you to NEPHP for giving me my first talking opp a few years ago (Daycamp 4 Dev plug)
  • #4: Javascript but used to do PHP I plug things to Arduinos and Pis I love technology and new gadgets I work for Spiria
  • #5: They have a PokeStop
  • #6: If you want to connect, Twitter
  • #7: What I want you to learn from this. I feel that we are not quite there yet. I want to inspire you to start playing with smart home stuff Our responsibility as tech people As we start adding scripts and shit, manufacturers will join in
  • #8: I love gadgets About a year ago, bought a new house Wanted to connect things
  • #9: But where do you get started
  • #10: Many options
  • #24: Too many apps Hard to play with it Faster to use the light switch (girlfriend example)
  • #25: Disclosure: I don’t work for them or anything but it’s a nice platform
  • #29: Here’s how Nest thermostat works
  • #30: When you add in Wink to SEND data to the thermostatn
  • #31: And receiving thte data back
  • #32: Open IPEVO
  • #33: As you can see, very limited to my interactions with the app Not smart Technology is useful when you don’t see it Garage lights example
  • #34: This is where macros come in handy
  • #36: Create a new one
  • #37: Give it a lable
  • #38: Add a condition (when I leave this location)
  • #39: Add an action
  • #41: Turn off lights
  • #42: Tada ! Be careful, when you leave if there are people in the house
  • #44: Just a side note Back to IFTTT Show of hands for IFTTT
  • #46: Quick demo
  • #47: Ok, so that works but slow (polling 10-15 mintes)
  • #48: As programmers, we want to integrate with other stuff Patio door example
  • #50: Node wrapper around the API
  • #54: Here is where it fits in
  • #55: Integration with IFTTT, Twitter or Pi and Arduino