SlideShare ist ein Scribd-Unternehmen logo
1 von 53
Internet of Python
IOT programming
with python
and serverless computing
HydPy Meetup | Hyderabad | February 2019
@Sonal Raj
2
Your Logo Here 3
THE SCOPE
4
Internet
Of Things
Serverless
Computing
$186.54
$704.78
$191.01
$189.31
Python
Integration
Create
Applications
Ideas
5
Internet of Things Serverless Python Create Ideas
… Enable things to connect with back-end systems that support your
ability to act on the data …. Build a central nervous system that
connects data insights to organizational (or individual) response….
IBM on IOT
6
Internet of Things Serverless Python Create Ideas
Senses
7
Internet of Things Serverless Python Create Ideas
Your location
Your state of motion and
direction
Orientation of the
device
Ambience or light in the
room
Proximity to a surface
Can listen to what you
say
See things in front and
behind it.
Transfer Info over a wireless
network
8
Internet of Things Serverless Python Create Ideas
Raspberry Pi 3B+ Arduino PLC / PAC
9
Internet of Things Serverless Python Create Ideas
How does a basic IOT
system really look like?
10
Internet of Things Serverless Python Create Ideas
11
Internet of Things Serverless Python Create Ideas
12
Internet of Things Serverless Python Create Ideas
13
Internet of Things Serverless Python Create Ideas
14
Internet of Things Serverless Python Create Ideas
Internet Enabled
Support for Digital Assistants
Smart phone Controlled
Programmable APIs
15
Internet of Things Serverless Python Create Ideas
16
Internet of Things Serverless Python Create Ideas
Architecture
17
Internet of Things Serverless Python Create Ideas
Smart Homes
18
Internet of Things Serverless Python Create Ideas
Smart Cities
19
Internet of Things Serverless Python Create Ideas
Serverless Computing
20
Internet of Things Serverless Python Create Ideas
21
Internet of Things Serverless Python Create Ideas
Image Source: Amazon Web Services
22
Internet of Things Serverless Python Create Ideas
Event Triggers
Image Source: Amazon Web Services
23
Internet of Things Serverless Python Create Ideas
• No provisioning or management of infrastructure
• Automatic Scaling
• Pay per use / No Idle Capacity
• Automatic Implied Availability and Scalability
So, why Serverless?
24
Internet of Things Serverless Python Create Ideas
Serverless Providers
25
Internet of Things Serverless Python Create Ideas
The how it works?
26
Internet of Things Serverless Python Create Ideas
Static Websites, Web Apps,
Flask Packages
Backend Apps and Services,
Mobile and IOT
Data Processing in Real Time,
Batch or MapReduce
Creating logic for chatbots
Voice enabled apps and skills
in Alexa assistants
Automation of Services and
Infrastructure management
Applications
27
Internet of Things Serverless Python Create Ideas
What can we do with Python?
28
Internet of Things Serverless Python Create Ideas
29
Internet of Things Serverless Python Create Ideas
MESSAGE QUEUEING
TELEMETRY TRANSPORT
30
Internet of Things Serverless Python Create Ideas
• Machine to Machine connectivity protocol
• Lightweight Publish / Subscribe
• Small Footprint and low bandwidth
• The MQTT protocol is based on TCP/IP.
Topics - series of levels separated by slashes
house/alarm/status
house/alarm/zone
house/camera/capture house/camera/#
house/camera/newpicture house/camera/+
31
Internet of Things Serverless Python Create Ideas
Messages
FFFFF11000 # Float device identifier
2-1235489698.jpg
Quality of Service
0 – best effort
1 – deliver at least once
2 – exactly once delivery
Security
Userid / deviceid / passwords
TLS / Certificate
Clients
Paho-mqtt (https://pypi.org/project/paho-mqtt/)
IOT Services
IBM bluemix
AWS-IOT
AZURE-IOT
Brokers
Mosquitto (Python)
Mosca (NodeJS)
32
Internet of Things Serverless Python Create Ideas
33
Internet of Things Serverless Python Create Ideas
• Easy Portable Interface for working with sensors and actuators
• Low level Interface
• Access and manipulate the basic I/O capabilities of a platform
• Translation layer on top of the Linux GPIO
• Platform Agnostic APIs
• Written in C, but has binding for many languages including Python!
34
Internet of Things Serverless Python Create Ideas
Micropython
35
Internet of Things Serverless Python Create Ideas
36
Internet of Things Serverless Python Create Ideas
A Flask extension that has wrappers for the
common constructs for the alexa skills API.
• Has decorators to map Alexa requests and intent slots to view functions
• Helps construct ask and tell responses, re-prompts and cards
• Makes session management easy
• Allows for the separation of code and speech through Jinja templates
• Verifies Alexa request signatures
37
Go through some smart home
application code
Setup a serverless API using
AWS Lambda functions
Creating an echo skill for voice
control
Internet of Things Serverless Python Create Ideas
38
Smart Home Applications
Code Demo
Internet of Things Serverless Python Create Ideas
39
Setting up and Configuring
Serverless Lambda Functions
on AWS Demo
Internet of Things Serverless Python Create Ideas
40
Create an echo assistant skill
and deploy demo
Internet of Things Serverless Python Create Ideas
41
Internet of Things Serverless Python Create Ideas
“Alexa, ask Zomato for the nearest [restaurantType]”
Invocation Name
Slot
Utterance
Intent
What a user must say to
“start” the skill. Each
skill has a unique
Invocation Name
A variable within an
utterance. Variable
possibilities must be
defined.
The spoken message is
mapped to an intent which
decides what code to run
within your skill.
A spoken phrase that
maps to an intent. A
skill can have many
utterances.
42
Interface
Service
Interaction Model
Utterances
Internet of Things Serverless Python Create Ideas
Internet of Things Serverless Python Create Ideas
Echosim.io
Simulator
44
Internet of Things Serverless Python Create Ideas
45
Internet of Things Serverless Python Create Ideas
AlexaBot
https://github.com/jacobajit/AlexaBot
46
https://goo.gl/UEzRGo
Google Assistant on Your
Amazon Echo
Internet of Things Serverless Python Create Ideas
47
Using data from fitness trackers . . .
• Continuous HR data – detect spikes, stroke patterns, anxiety
• Calorie estimation from step count, and alert when you need to eat.
• Alerting triggers based on thresholds
• Create APIs to connect other devices like glucometers, and Blood
Pressure monitors.
• Publish data to a central store, with web visualization support.
Internet of Things Serverless Python Create Ideas
48
Internet of Things Serverless Python Create Ideas
• Interactive Social Networks
• Interactive Idea boards
• Voice Gaming
• Crisis Alerting
• Office Integration – Meeting room bookings, etc.
• Always aware state!! ( Creepy!! )
The Future
49
Internet of Things Serverless Python Create Ideas
Smart
Problems!
50
Internet of Things Serverless Python Create Ideas
51
Internet of Things Serverless Python Create Ideas
Headed
here….
52
Internet of Things Serverless Python Create Ideas
53
THANKS!!
Questions??

Weitere ähnliche Inhalte

Was ist angesagt?

ThingSpeak: apps for social things
ThingSpeak: apps for social thingsThingSpeak: apps for social things
ThingSpeak: apps for social things
Hans Scharler
 
Driving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConfDriving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConf
Hans Scharler
 

Was ist angesagt? (20)

Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
 
Smart home automation
Smart home automationSmart home automation
Smart home automation
 
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
 
Internet of Things 101 - Part II
Internet of Things 101 - Part IIInternet of Things 101 - Part II
Internet of Things 101 - Part II
 
Home automation using raspberry pi
Home automation using raspberry piHome automation using raspberry pi
Home automation using raspberry pi
 
Use voice recognition with Alexa to control your home [JavaOne]
Use voice recognition with Alexa to control your home [JavaOne]Use voice recognition with Alexa to control your home [JavaOne]
Use voice recognition with Alexa to control your home [JavaOne]
 
Scripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with PerlScripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with Perl
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
 
ThingSpeak: apps for social things
ThingSpeak: apps for social thingsThingSpeak: apps for social things
ThingSpeak: apps for social things
 
Home Automation over Internet
Home Automation over InternetHome Automation over Internet
Home Automation over Internet
 
Driving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConfDriving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConf
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version
 
Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation  Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation
 
Smart Speakers Introduction
Smart Speakers IntroductionSmart Speakers Introduction
Smart Speakers Introduction
 
Making IoT Accessible
Making IoT AccessibleMaking IoT Accessible
Making IoT Accessible
 
IRJET - Google Assistant Controlled Home
IRJET -  	  Google Assistant Controlled HomeIRJET -  	  Google Assistant Controlled Home
IRJET - Google Assistant Controlled Home
 
Smart home with home automation
Smart home with home automationSmart home with home automation
Smart home with home automation
 

Ähnlich wie Internet of Python - IOT with Python and Serverless | Sonal Raj | HydPy Feb 2019

ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
ssuser06ea42
 

Ähnlich wie Internet of Python - IOT with Python and Serverless | Sonal Raj | HydPy Feb 2019 (20)

Creating Datadipity
Creating DatadipityCreating Datadipity
Creating Datadipity
 
Python in the real world : from everyday applications to advanced robotics
Python in the real world : from everyday applications to advanced roboticsPython in the real world : from everyday applications to advanced robotics
Python in the real world : from everyday applications to advanced robotics
 
Iot meets Serverless
Iot meets ServerlessIot meets Serverless
Iot meets Serverless
 
ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
 
IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...
IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...
IoT, AI, ML Mix or How to Deal with New Technologies (Borys Pratsiuk Technolo...
 
Understanding IoT with Cloud IoT Core
Understanding IoT with Cloud IoT CoreUnderstanding IoT with Cloud IoT Core
Understanding IoT with Cloud IoT Core
 
Tour de France Azure PaaS 6/7 Ajouter de l'intelligence
Tour de France Azure PaaS 6/7 Ajouter de l'intelligenceTour de France Azure PaaS 6/7 Ajouter de l'intelligence
Tour de France Azure PaaS 6/7 Ajouter de l'intelligence
 
Transform Your Business with API-led Connectivity
Transform Your Business with API-led ConnectivityTransform Your Business with API-led Connectivity
Transform Your Business with API-led Connectivity
 
🌺 Women in Automation Series: Intro to Studio ▶ Session 1
🌺 Women in Automation Series: Intro to Studio ▶ Session 1🌺 Women in Automation Series: Intro to Studio ▶ Session 1
🌺 Women in Automation Series: Intro to Studio ▶ Session 1
 
Controlling your home with IoT Hub
Controlling your home with IoT HubControlling your home with IoT Hub
Controlling your home with IoT Hub
 
20160813 102-59-kim youngwook
20160813 102-59-kim youngwook20160813 102-59-kim youngwook
20160813 102-59-kim youngwook
 
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
 
Rapid Web Development with Python for Absolute Beginners
Rapid Web Development with Python for Absolute BeginnersRapid Web Development with Python for Absolute Beginners
Rapid Web Development with Python for Absolute Beginners
 
Dev1602: Serving up Watson, IoT and cognitive services into IBM Connections C...
Dev1602: Serving up Watson, IoT and cognitive services into IBM Connections C...Dev1602: Serving up Watson, IoT and cognitive services into IBM Connections C...
Dev1602: Serving up Watson, IoT and cognitive services into IBM Connections C...
 
OUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrateOUGN 2018 - Chatbot and the need to integrate
OUGN 2018 - Chatbot and the need to integrate
 
AT&T Shape Hackathon Kick-off
AT&T Shape Hackathon Kick-offAT&T Shape Hackathon Kick-off
AT&T Shape Hackathon Kick-off
 
Why your APIs should fly first class
Why your APIs should fly first classWhy your APIs should fly first class
Why your APIs should fly first class
 
techienest pvt ltd
techienest  pvt ltdtechienest  pvt ltd
techienest pvt ltd
 
techienest pvt ltd
techienest pvt ltdtechienest pvt ltd
techienest pvt ltd
 
ARTIFICIAL MACHINE LEARNING
ARTIFICIAL MACHINE LEARNING ARTIFICIAL MACHINE LEARNING
ARTIFICIAL MACHINE LEARNING
 

Mehr von Sonal Raj

IT Quiz Mains
IT Quiz MainsIT Quiz Mains
IT Quiz Mains
Sonal Raj
 
IT Quiz Prelims
IT Quiz PrelimsIT Quiz Prelims
IT Quiz Prelims
Sonal Raj
 
Spock the human computer interaction system - synopsis
Spock   the human computer interaction system - synopsisSpock   the human computer interaction system - synopsis
Spock the human computer interaction system - synopsis
Sonal Raj
 

Mehr von Sonal Raj (8)

Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?
 
Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018
 
Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.
 
IT Quiz Mains
IT Quiz MainsIT Quiz Mains
IT Quiz Mains
 
IT Quiz Prelims
IT Quiz PrelimsIT Quiz Prelims
IT Quiz Prelims
 
Spock the human computer interaction system - synopsis
Spock   the human computer interaction system - synopsisSpock   the human computer interaction system - synopsis
Spock the human computer interaction system - synopsis
 
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
 
Storm Real Time Computation
Storm Real Time ComputationStorm Real Time Computation
Storm Real Time Computation
 

KĂźrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

KĂźrzlich hochgeladen (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Internet of Python - IOT with Python and Serverless | Sonal Raj | HydPy Feb 2019

  • 1. Internet of Python IOT programming with python and serverless computing HydPy Meetup | Hyderabad | February 2019 @Sonal Raj
  • 2. 2
  • 5. 5 Internet of Things Serverless Python Create Ideas … Enable things to connect with back-end systems that support your ability to act on the data …. Build a central nervous system that connects data insights to organizational (or individual) response…. IBM on IOT
  • 6. 6 Internet of Things Serverless Python Create Ideas Senses
  • 7. 7 Internet of Things Serverless Python Create Ideas Your location Your state of motion and direction Orientation of the device Ambience or light in the room Proximity to a surface Can listen to what you say See things in front and behind it. Transfer Info over a wireless network
  • 8. 8 Internet of Things Serverless Python Create Ideas Raspberry Pi 3B+ Arduino PLC / PAC
  • 9. 9 Internet of Things Serverless Python Create Ideas How does a basic IOT system really look like?
  • 10. 10 Internet of Things Serverless Python Create Ideas
  • 11. 11 Internet of Things Serverless Python Create Ideas
  • 12. 12 Internet of Things Serverless Python Create Ideas
  • 13. 13 Internet of Things Serverless Python Create Ideas
  • 14. 14 Internet of Things Serverless Python Create Ideas Internet Enabled Support for Digital Assistants Smart phone Controlled Programmable APIs
  • 15. 15 Internet of Things Serverless Python Create Ideas
  • 16. 16 Internet of Things Serverless Python Create Ideas Architecture
  • 17. 17 Internet of Things Serverless Python Create Ideas Smart Homes
  • 18. 18 Internet of Things Serverless Python Create Ideas Smart Cities
  • 19. 19 Internet of Things Serverless Python Create Ideas Serverless Computing
  • 20. 20 Internet of Things Serverless Python Create Ideas
  • 21. 21 Internet of Things Serverless Python Create Ideas Image Source: Amazon Web Services
  • 22. 22 Internet of Things Serverless Python Create Ideas Event Triggers Image Source: Amazon Web Services
  • 23. 23 Internet of Things Serverless Python Create Ideas • No provisioning or management of infrastructure • Automatic Scaling • Pay per use / No Idle Capacity • Automatic Implied Availability and Scalability So, why Serverless?
  • 24. 24 Internet of Things Serverless Python Create Ideas Serverless Providers
  • 25. 25 Internet of Things Serverless Python Create Ideas The how it works?
  • 26. 26 Internet of Things Serverless Python Create Ideas Static Websites, Web Apps, Flask Packages Backend Apps and Services, Mobile and IOT Data Processing in Real Time, Batch or MapReduce Creating logic for chatbots Voice enabled apps and skills in Alexa assistants Automation of Services and Infrastructure management Applications
  • 27. 27 Internet of Things Serverless Python Create Ideas What can we do with Python?
  • 28. 28 Internet of Things Serverless Python Create Ideas
  • 29. 29 Internet of Things Serverless Python Create Ideas MESSAGE QUEUEING TELEMETRY TRANSPORT
  • 30. 30 Internet of Things Serverless Python Create Ideas • Machine to Machine connectivity protocol • Lightweight Publish / Subscribe • Small Footprint and low bandwidth • The MQTT protocol is based on TCP/IP. Topics - series of levels separated by slashes house/alarm/status house/alarm/zone house/camera/capture house/camera/# house/camera/newpicture house/camera/+
  • 31. 31 Internet of Things Serverless Python Create Ideas Messages FFFFF11000 # Float device identifier 2-1235489698.jpg Quality of Service 0 – best effort 1 – deliver at least once 2 – exactly once delivery Security Userid / deviceid / passwords TLS / Certificate Clients Paho-mqtt (https://pypi.org/project/paho-mqtt/) IOT Services IBM bluemix AWS-IOT AZURE-IOT Brokers Mosquitto (Python) Mosca (NodeJS)
  • 32. 32 Internet of Things Serverless Python Create Ideas
  • 33. 33 Internet of Things Serverless Python Create Ideas • Easy Portable Interface for working with sensors and actuators • Low level Interface • Access and manipulate the basic I/O capabilities of a platform • Translation layer on top of the Linux GPIO • Platform Agnostic APIs • Written in C, but has binding for many languages including Python!
  • 34. 34 Internet of Things Serverless Python Create Ideas Micropython
  • 35. 35 Internet of Things Serverless Python Create Ideas
  • 36. 36 Internet of Things Serverless Python Create Ideas A Flask extension that has wrappers for the common constructs for the alexa skills API. • Has decorators to map Alexa requests and intent slots to view functions • Helps construct ask and tell responses, re-prompts and cards • Makes session management easy • Allows for the separation of code and speech through Jinja templates • Verifies Alexa request signatures
  • 37. 37 Go through some smart home application code Setup a serverless API using AWS Lambda functions Creating an echo skill for voice control Internet of Things Serverless Python Create Ideas
  • 38. 38 Smart Home Applications Code Demo Internet of Things Serverless Python Create Ideas
  • 39. 39 Setting up and Configuring Serverless Lambda Functions on AWS Demo Internet of Things Serverless Python Create Ideas
  • 40. 40 Create an echo assistant skill and deploy demo Internet of Things Serverless Python Create Ideas
  • 41. 41 Internet of Things Serverless Python Create Ideas “Alexa, ask Zomato for the nearest [restaurantType]” Invocation Name Slot Utterance Intent What a user must say to “start” the skill. Each skill has a unique Invocation Name A variable within an utterance. Variable possibilities must be defined. The spoken message is mapped to an intent which decides what code to run within your skill. A spoken phrase that maps to an intent. A skill can have many utterances.
  • 42. 42 Interface Service Interaction Model Utterances Internet of Things Serverless Python Create Ideas
  • 43. Internet of Things Serverless Python Create Ideas Echosim.io Simulator
  • 44. 44 Internet of Things Serverless Python Create Ideas
  • 45. 45 Internet of Things Serverless Python Create Ideas AlexaBot https://github.com/jacobajit/AlexaBot
  • 46. 46 https://goo.gl/UEzRGo Google Assistant on Your Amazon Echo Internet of Things Serverless Python Create Ideas
  • 47. 47 Using data from fitness trackers . . . • Continuous HR data – detect spikes, stroke patterns, anxiety • Calorie estimation from step count, and alert when you need to eat. • Alerting triggers based on thresholds • Create APIs to connect other devices like glucometers, and Blood Pressure monitors. • Publish data to a central store, with web visualization support. Internet of Things Serverless Python Create Ideas
  • 48. 48 Internet of Things Serverless Python Create Ideas • Interactive Social Networks • Interactive Idea boards • Voice Gaming • Crisis Alerting • Office Integration – Meeting room bookings, etc. • Always aware state!! ( Creepy!! ) The Future
  • 49. 49 Internet of Things Serverless Python Create Ideas Smart Problems!
  • 50. 50 Internet of Things Serverless Python Create Ideas
  • 51. 51 Internet of Things Serverless Python Create Ideas Headed here….
  • 52. 52 Internet of Things Serverless Python Create Ideas