antonio almeida- the api of things, ap is, apis all the way down

16
The API of Things, APIs, APIs all the way down Antonio Almeida developer & product evangelist at relayr [email protected] January 16, 2016

Upload: withthebest

Post on 15-Apr-2017

57 views

Category:

Devices & Hardware


0 download

TRANSCRIPT

Page 1: Antonio Almeida- The API of things, ap is, APIs all the way down

The API of Things, APIs, APIs all the waydown

Antonio Almeida

developer & product evangelist at relayr

[email protected]

January 16, 2016

Page 2: Antonio Almeida- The API of things, ap is, APIs all the way down

motivation I

B Internet of Things (IoT) is amisnomer

B it should be called the API of Things (AoT) —everything runs on APIs

B from the sensors to the analysis of the data theyprovide

Page 3: Antonio Almeida- The API of things, ap is, APIs all the way down

internet of hipster junk

B tweeting fridge from LG — added value ≈ 0

Page 4: Antonio Almeida- The API of things, ap is, APIs all the way down

context I

B relayr is a company that focuses on this great chain ofAPIs as the IoT enabler

B we approach IoT end-to-end: from sensors to dataanalysis

Page 5: Antonio Almeida- The API of things, ap is, APIs all the way down

context II

B from the sensors ...

Page 6: Antonio Almeida- The API of things, ap is, APIs all the way down

context III

B ... to the data analysis

Page 7: Antonio Almeida- The API of things, ap is, APIs all the way down

motivation II

B many protocols are used: MQTT, CoAP, HTTP,WebSockets, &c

B the modern protocols are open and fully standardized— APIs are built upon them

B that’s where the value comes from: munging the datastreamed via those APIs

Page 8: Antonio Almeida- The API of things, ap is, APIs all the way down

hardware commoditization

B IoT usually lingers almost to the exclusion ofeverything else in hardware

B on the other hand hardware is becoming a commodity

B hardware is but a tool: it’s what you craft with this toolthat matters

Page 9: Antonio Almeida- The API of things, ap is, APIs all the way down

walking the walk I

B We’ll build a noise sensing device that publishes datato the relayr cloud via MQTT

B we’ll show that the value is extracted through the APIsbeing used, not the hardware

Page 10: Antonio Almeida- The API of things, ap is, APIs all the way down

walking the walk II

B noise is a major health and environmental issue — theworld has become progressively noisier

B silence is a rare and valuable commodity

Page 11: Antonio Almeida- The API of things, ap is, APIs all the way down

he knew silence

js bach

Page 12: Antonio Almeida- The API of things, ap is, APIs all the way down

the plan

B using the Olinuxino A13 with the onboard audio codecfor capture

B using sox to capture a noise sample and analyze it

B publish data via MQTT to the relayr cloud with themosquitto client

Page 13: Antonio Almeida- The API of things, ap is, APIs all the way down

demo time

Page 14: Antonio Almeida- The API of things, ap is, APIs all the way down

going further

B use a microphone array withmultiplexing done viaanalog switches

B use MQTT over SSL for added security

B use the data outside of the relayr cloud for fineranalysis

B use an electretmicrophone capsule with a low noisepreamplifier

Page 15: Antonio Almeida- The API of things, ap is, APIs all the way down

resources

code: https://github.com/relayr/sound-sensing-prototype

relayr cloud: http://dev.relayr.io

Olinuxino A13: https://www.olimex.com/Products/OLinuXino/A13/open-source-hardware