how i learned to stop worrying and tweet the... plant?

24
confidential not for distribution How I learned to stop worrying and tweet the... plant? A tale of connecting a dying plant to the internet.

Upload: daniel-lanthier

Post on 14-Apr-2017

362 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

How I learned to stop worrying and tweet the... plant?A tale of connecting a dying plant to the internet.

Daniel Lanthier
Need a better image
Daniel Lanthier
add text...
Daniel Lanthier
ELABORATE
Daniel Lanthier
replace picture with another meme
Page 2: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

About meDaniel Lanthier

@DC_LAN

@office_shrub

Daniel Lanthier
move elsewhere?
Page 3: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

“My fake plant died, because I did not pretend to water them.”Mitch Hedberg

Page 4: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

Quick Demo

Page 5: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

What you need for hardware

Page 6: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

● Google’s Brillio● Raspberry Pi● BeagleBone Black● Tessel● Pinocchio

Some of your options...

Page 7: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

Arduino

Page 8: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

Particle Platform

Page 9: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

Electric Imp

Page 10: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

● A breadboard● 4 Resistors (220 ohms)● 1 LED (green)● 1 Photoresistor● 1 Hygrometer● 1 push button● Many cables

What you need

Page 11: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

But what about the software?

Page 12: How I learned to stop worrying and tweet the... plant?

Connecting your thing to the Internet

https://www.youtube.com/watch?v=a8-G4m1LYWs

Page 13: How I learned to stop worrying and tweet the... plant?

Electric Imp IDE

Page 14: How I learned to stop worrying and tweet the... plant?

Agent Example

function poll() { local request = http.get("https://someservice.com/api/thing", {}); local response = request.sendSync(); if(response.statusCode == 200) {

device.send("onThingHappened", duration); }}

poll();

Page 15: How I learned to stop worrying and tweet the... plant?

Device Example

led <- hardware.pin7;

function blink(duration) { led.write(1); imp.wakeup(duration, function() { led.write(0); });}

agent.on("onThingHappened", blink);

Page 16: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

So how did this get built?

Page 17: How I learned to stop worrying and tweet the... plant?

Plant Control to Major Tom

?????

Page 18: How I learned to stop worrying and tweet the... plant?

Integrated with Other Services...

??????????

Page 19: How I learned to stop worrying and tweet the... plant?

Plant Control to Major Tom

????? REST API

Device Code

Send voltage to Pin.

Agent Device

Page 20: How I learned to stop worrying and tweet the... plant?

Plant Control to Major Tom

?????

REST API Hygrometer

Agent Device

Photoresistor

ButtonPOST status/update

GET statuses/mentions

Page 21: How I learned to stop worrying and tweet the... plant?

What this should look like...

?????

?????

Page 22: How I learned to stop worrying and tweet the... plant?

How does the server run?

?????

Hardware Abstraction Layer

Social Layer

Analytics Layer

Page 23: How I learned to stop worrying and tweet the... plant?

confidential not for distribution

About Me@DC_LAN

macadamian.com/careers/

tinyurl.com/CUSEC-PLANT

@macadamianlabs

Page 24: How I learned to stop worrying and tweet the... plant?

Questions?