Zetta js Hands on IoT

Post on 14-Apr-2017

454 views 2 download

transcript

©2015 Apigee Corp. All Rights Reserved.

IoT Craft – Meetup 8.0

©2015 Apigee Corp. All Rights Reserved.

Today’s speaker

Anil Sagar

©2015 Apigee Corp. All Rights Reserved.

AgendaTime Topic Duration

11.00 – 11.10 Welcome & Session Goals 10 min11:10 – 11.20 About IoT Craft Meetup Group 10 min11.20 – 11.30 Introduction to IoT - Challenges 10 min

11:30 – 01.00 Introduction to Zetta – Building Connected Home Security System 90 min

01.00 – 02:00 Lunch 60 min

01.00 – 03.00 Building Connected Home Security System 90 min

03.00 – 04.00 Q & A - Closing & Summary 60 min

©2015 Apigee Corp. All Rights Reserved.

IoT Systems are complex combination of web, app, embedded systems

4

©2015 Apigee Corp. All Rights Reserved.

IoT Big Picture …

©2015 Apigee Corp. All Rights Reserved.

Internet of Things

©2015 Apigee Corp. All Rights Reserved.

The Promise – Everything is connected

©2015 Apigee Corp. All Rights Reserved.

The reality: unnerving

9©2015 Apigee Corp. All Rights Reserved.

Today• Multiple Experiences

• Multiple APPs

• Multiple Developers

• Multiple Devices

10©2015 Apigee Corp. All Rights Reserved.

Tomorrow• One Experience

• One APP

• One Ecosystem

• Multiple Devices

11©2015 Apigee Corp. All Rights Reserved.

Multiple Devices

app app app appapp

72

app app

12©2015 Apigee Corp. All Rights Reserved.

One Experience

app app app appapp

72

app app

One Experience

13©2015 Apigee Corp. All Rights Reserved.

One Big App

app app app appapp

72

app app

One experience

One big app

14©2015 Apigee Corp. All Rights Reserved.

Powered by APIs

app app app appapp

72

app app

One experience

One big app

(Powered by APIs)

©2015 Apigee Corp. All Rights Reserved.

An Introduction to ZettaJS

©2015 Apigee Corp. All Rights Reserved.

Introducing....

16

17©2015 Apigee Corp. All Rights Reserved.

Zetta Combines..• Reactive Programming

• Web Sockets

• Rest APIs

18

Zetta Architecture…

19©2015 Apigee Corp. All Rights Reserved.

Zetta Server• Highest Level Of Abstraction in Zetta

• Runs on Hardware such as Intel Edison, Raspberry PI etc..

• Generates APIs

• Coordinates Interaction

20©2015 Apigee Corp. All Rights Reserved.

Zetta Drivers..• State Machine Representation of Devices

• Models Devices & Facilitates Interaction

• Device Models - APIs

Off On

turn-off

turn-on

21©2015 Apigee Corp. All Rights Reserved.

Zetta Scouts..• Discovery Mechanism

• Search for Devices

• Report Backs

22©2015 Apigee Corp. All Rights Reserved.

Zetta Apps• Written in Javascript

• Interact with Multiple Devices

• Interaction based on Sensor Streams

23©2015 Apigee Corp. All Rights Reserved.

Zetta Server Extensions• Pluggable Models

• Node Modules

• For Example– Adding Additional APIs– Adding Security to APIs

24©2015 Apigee Corp. All Rights Reserved.

Zetta Registry• Small Database

• Information about Devices

• Information about Server Itself

25©2015 Apigee Corp. All Rights Reserved.

Zetta Deployment

26©2015 Apigee Corp. All Rights Reserved.

Zetta Linking..Linking establishes a secure connection between two Zetta servers. It uses the Z2Z protocol to efficiently proxy API requests, and streaming data between servers.

Z1Z2

Firewall

HTTP Proxy

27©2015 Apigee Corp. All Rights Reserved.

Zetta APIs• Query Devices

• Sensor Data Streams

• Interact with Devices

• Links between Servers

©2015 Apigee Corp. All Rights Reserved.

IoT Lab

©2015 Apigee Corp. All Rights Reserved.

IoT Craft – Elite Club

©2015 Apigee Corp. All Rights Reserved.

IoT Craft – Elite Club• No Strings Attached to Apigee

• Free to Innovate

• Contribute to open source – Zetta IoT Platform – Become Member

• 24 x 7 Access

• Have fun

©2015 Apigee Corp. All Rights Reserved.

1. Zetta Github - http://github.com/zettajs/zetta2. Zetta Mailing List - https://groups.google.com/forum/#!forum/zetta-discuss3. IoT Craft - http://www.meetup.com/IoT-Craft-Open-Source-Internet-of-Things-Group

/4. My Personal Email - asagar@apigee.com5. Q & A – http://community.apigee.com6. Zetta - http://zettajs.org/

Additional Resources

Thank you