flare apis overview

57

Upload: cisco-devnet

Post on 08-Jan-2017

146 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Flare APIs Overview
Page 2: Flare APIs Overview

Flare APIs OverviewAndrew Zamler-Carhart, Technical Leader

Page 3: Flare APIs Overview

• What is Flare?• Use cases• Technical info• Code example• Resources

Agenda

Page 4: Flare APIs Overview

What is Flare?

Page 5: Flare APIs Overview

“Flare allows users with mobile devices to discover and interact with things in an environment. It combines multiple location technologieswith a realtime communications architecture, to enable new kinds of user interactions.”

Page 6: Flare APIs Overview

Interaction modes• When the user enters an environment, their device can show the location of

nearby things• When they come near to a thing, they can interact with it by:

• getting information about its current state• changing its state• performing actions

Page 7: Flare APIs Overview
Page 8: Flare APIs Overview
Page 9: Flare APIs Overview
Page 10: Flare APIs Overview

Use cases

Page 11: Flare APIs Overview

Potential markets• Retail• Museums• Advertising• Industrial• Public transport• and more!

Page 12: Flare APIs Overview
Page 13: Flare APIs Overview
Page 14: Flare APIs Overview
Page 15: Flare APIs Overview
Page 16: Flare APIs Overview
Page 17: Flare APIs Overview
Page 18: Flare APIs Overview
Page 19: Flare APIs Overview
Page 20: Flare APIs Overview

Technical Info

Page 21: Flare APIs Overview

Flare server• Open source• Implemented in Node.js and MongoDB• You can run it yourself

Page 22: Flare APIs Overview

Location technologies• Bluetooth beacons (iBeacon, AltBeacon, Eddystone)• Wi-Fi + Cisco CMX (coming soon)• technology agnostic, can work with other kinds of sensors

Page 23: Flare APIs Overview
Page 24: Flare APIs Overview

Flare model• Environment: a geographic location with a grid• Zone: a rectangular division of an environment• Thing: something interesting to the user• Device: a user’s tablet, phone or watch

Page 25: Flare APIs Overview

Flare API• REST: create, read, update, delete Flare objects• Socket.IO: realtime commands and notifications

Page 26: Flare APIs Overview
Page 27: Flare APIs Overview

Socket.IO commands• Subscribe• Unsubscribe• Get data value• Set data value• Get position• Set position• Perform action

Page 28: Flare APIs Overview

Socket.IO notifications• Data changed• Position changed• Device enters zone• Device exits zone• Device near to a thing• Device far from a thing• Handle action

Page 29: Flare APIs Overview

Types of client• User apps on tablet, phone and watch• Interactive displays• Connected things• Admin tools• Import scripts• Logging scripts

Page 30: Flare APIs Overview

Sample code• JavaScript• Swift (iOS and Mac)• Java (Android)• Python

Page 31: Flare APIs Overview
Page 32: Flare APIs Overview
Page 33: Flare APIs Overview
Page 34: Flare APIs Overview
Page 35: Flare APIs Overview

Sample apps• Trilateral: shows map of environment on phone (iOS, Android, Android Wear)• Reflector: interactive digital signage (web) • Explorer: create and modify Flare objects (web, Mac)• Lights: control connected lights (Mac)

Page 36: Flare APIs Overview
Page 37: Flare APIs Overview
Page 38: Flare APIs Overview
Page 39: Flare APIs Overview
Page 40: Flare APIs Overview
Page 41: Flare APIs Overview
Page 42: Flare APIs Overview
Page 43: Flare APIs Overview
Page 44: Flare APIs Overview
Page 45: Flare APIs Overview

Tutorials• Importing data (JavaScript, Swift, Python)• Location (Swift, Java)• Socket.IO (JavaScript, Swift, Java)

Page 46: Flare APIs Overview
Page 47: Flare APIs Overview

Code example

Page 48: Flare APIs Overview
Page 49: Flare APIs Overview

Just a little Swift + JavaScript

Page 50: Flare APIs Overview

And the other way

Page 51: Flare APIs Overview

Resources

Page 52: Flare APIs Overview

Links• Documentation on DevNet: https://developer.cisco.com/site/flare• Source code on GitHub: https://github.com/CiscoDevNet/flare• Video on YouTube: https://youtu.be/HKBnqo9QlEk• Sandbox: http://flaresandbox.cisco.com:8181• Hackathon: http://hackathon.cisco.com/event/PIRL-Hackathon-2015

Page 53: Flare APIs Overview
Page 54: Flare APIs Overview
Page 55: Flare APIs Overview
Page 56: Flare APIs Overview

Thank you

Page 57: Flare APIs Overview