how i learned to stop worrying and tweet the... plant?
TRANSCRIPT
confidential not for distribution
How I learned to stop worrying and tweet the... plant?A tale of connecting a dying plant to the internet.
confidential not for distribution
About meDaniel Lanthier
@DC_LAN
@office_shrub
confidential not for distribution
“My fake plant died, because I did not pretend to water them.”Mitch Hedberg
confidential not for distribution
Quick Demo
confidential not for distribution
What you need for hardware
confidential not for distribution
● Google’s Brillio● Raspberry Pi● BeagleBone Black● Tessel● Pinocchio
Some of your options...
confidential not for distribution
Arduino
confidential not for distribution
Particle Platform
confidential not for distribution
Electric Imp
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
confidential not for distribution
But what about the software?
Connecting your thing to the Internet
https://www.youtube.com/watch?v=a8-G4m1LYWs
Electric Imp IDE
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();
Device Example
led <- hardware.pin7;
function blink(duration) { led.write(1); imp.wakeup(duration, function() { led.write(0); });}
agent.on("onThingHappened", blink);
confidential not for distribution
So how did this get built?
Plant Control to Major Tom
?????
Integrated with Other Services...
??????????
Plant Control to Major Tom
????? REST API
Device Code
Send voltage to Pin.
Agent Device
Plant Control to Major Tom
?????
REST API Hygrometer
Agent Device
Photoresistor
ButtonPOST status/update
GET statuses/mentions
What this should look like...
?????
?????
How does the server run?
?????
Hardware Abstraction Layer
Social Layer
Analytics Layer
confidential not for distribution
About Me@DC_LAN
macadamian.com/careers/
tinyurl.com/CUSEC-PLANT
@macadamianlabs
Questions?