1) The document discusses making smart homes smarter through the use of technologies like Wink, macros, IFTTT, and WinkJS.
2) Wink allows connecting devices from various providers in a single app and has an API to further customize it. Macros in Wink are equivalent to IFTTT recipes for automating devices.
3) WinkJS provides a JavaScript library for the Wink API to control devices and integrate with other services like Twitter. Security concerns around exposing home devices are also addressed.
27. #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
44. #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
55. #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();
});
56. #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;
63. 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
Notas do Editor
Thank you to NEPHP for giving me my first talking opp a few years ago
(Daycamp 4 Dev plug)
Javascript but used to do PHP
I plug things to Arduinos and Pis
I love technology and new gadgets
I work for Spiria
They have a PokeStop
If you want to connect, Twitter
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
I love gadgets
About a year ago, bought a new house
Wanted to connect things
But where do you get started
Many options
Too many apps
Hard to play with it
Faster to use the light switch (girlfriend example)
Disclosure: I don’t work for them or anything but it’s a nice platform
Here’s how Nest thermostat works
When you add in Wink to SEND data to the thermostatn
And receiving thte data back
Open IPEVO
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
This is where macros come in handy
Create a new one
Give it a lable
Add a condition (when I leave this location)
Add an action
Turn off lights
Tada !
Be careful, when you leave if there are people in the house
Just a side note
Back to IFTTT
Show of hands for IFTTT
Quick demo
Ok, so that works but slow (polling 10-15 mintes)
As programmers, we want to integrate with other stuff
Patio door example