SlideShare a Scribd company logo
1 of 48
Download to read offline
 
Using	
  JavaScript	
  and	
  COMPOSE	
  to	
  
build	
  cool	
  IoT	
  applica;ons	
  
Charalampos	
  Doukas	
  
@buildingiot	
  
PART	
  A	
  –	
  Some	
  Basics	
  
Using	
  JavaScript	
  and	
  COMPOSE	
  to	
  build	
  cool	
  IoT	
  
applica;ons	
  
IoT:	
  The	
  main	
  components	
  
Devices	
  –	
  ‘Smart	
  
Objects’	
  –	
  ‘Things’	
  
Networks	
  
Online	
  Services	
  
Devices:	
  the	
  community	
  approach	
  	
  
Devices	
  
Devices	
  
•  Prototyping	
  plaHorms	
  (some	
  IoT	
  oriented)	
  
•  Arduino	
  (….)	
  
–  hMp://postscapes.com/arduino-­‐wifi	
  
•  openPicus	
  Flyport	
  (WiFi,	
  Ethernet,	
  GPRS,	
  Enocean)	
  
•  Libelium	
  Waspmote	
  
•  mBed	
  by	
  ARM	
  
•  Pinocc.io	
  (mesh	
  network	
  support,	
  RF+WiFi)	
  
•  (Spark	
  core)	
  Par;cle.io	
  (WiFi,	
  3G)	
  
•  Electric	
  Imp	
  
•  Tessel	
  (WiFi,	
  Node.js)	
  
	
  
Devices	
  
Devices	
  
IoT:	
  the	
  community	
  approach	
  	
  
Devices	
  
IoT:	
  the	
  community	
  approach	
  	
  
Devices	
  
IoT:	
  the	
  community	
  approach	
  	
  
Devices	
  
NodeMCU	
  
WiFI	
  
eLua	
  
12$	
  
Based	
  on	
  ESP8266	
  WiFI	
  SoC	
  
Community	
  based	
  development	
  SW	
  +	
  HW	
  
	
  
IoT:	
  the	
  community	
  approach	
  	
  
Devices	
  
IoT Gateways
IoT:	
  the	
  community	
  approach	
  	
  
Devices	
  
Wearables?
Devices	
  	
  
•  SODAQ	
  (WiFi,	
  Xbee,	
  ..)	
  
•  XinoRF	
  
•  PanStamps	
  
•  Intel	
  boards	
  
•  TI	
  CC3200	
  (SimpleLink)	
  
•  Domain	
  specific	
  
–  BITalino	
  (Wearables)	
  
–  Thingsquare	
  
–  FluMer	
  
hMp://postscapes.com/internet-­‐of-­‐things-­‐diy	
  
hMp://postscapes.com/internet-­‐of-­‐things-­‐hardware	
  
	
  
Sensors	
  &	
  Actuators	
  
•  Gas	
  &	
  Air	
  quality	
  
•  Barometric	
  pressure	
  
•  Temperature	
  &	
  Humidity	
  
•  Light	
  &	
  Sound	
  
•  Mo;on	
  
•  Flex	
  &	
  Force	
  
•  Posi;on	
  
•  Magne;c	
  fields	
  
•  Electricity	
  
•  Biometrics	
  
Sensors	
  &	
  Actuators	
  
•  Proximity	
  &	
  Presence	
  
•  Weight	
  
•  Liquids	
  &	
  Liquid	
  flow	
  
•  Radia;on	
  
•  …	
  
Sensors	
  &	
  Actuators	
  
•  Move	
  things	
  (motors)	
  
•  Ac;vate	
  (switches)	
  
•  Interfaces	
  
–  Sound	
  
–  Light	
  
–  Displays	
  
•  Remote	
  interfaces	
  
–  Social	
  
–  Email,	
  text,	
  …	
  
–  Phone	
  (twillio)	
  
Soiware	
  
•  Standard	
  IDEs	
  
–  Arduino	
  IDE	
  
–  Eclipse	
  
•  Code	
  –	
  less:	
  
–  Scratch	
  
•  Cloud-­‐based	
  
–  Codebender	
  (codebender.cc)	
  
–  par;cle.io	
  
•  Browser-­‐based	
  
–  mBed	
  
–  Electron	
  
–  Noduino	
  
–  …	
  
Workflow	
  -­‐	
  based	
  
•  Node-­‐RED	
  
Networks	
  
Protocols	
  
•  Web	
  based:	
  
•  HTTP	
  
–  REST	
  
–  WebSockets	
  
•  M2M	
  (lower	
  resources	
  +	
  actua;on)	
  
–  MQTT	
  
–  CoAP	
  -­‐	
  LWM2M	
  
–  XMPP	
  
–  STOMP	
  
–  …	
  
Online	
  Services	
  
•  Sensor	
  Data	
  
–  Pachube/Cosm/Xively	
  
–  Paraimpu	
  
–  TheThingsystem.io	
  
•  Device	
  Management	
  
	
  
•  Full	
  PaaS	
  
IoT	
  &	
  JavaScript	
  
Why	
  JavaScript?	
  
IoT	
  &	
  JavaScript	
  
Why	
  JavaScript?	
  
IoT	
  &	
  JavaScript	
  
Why	
  JavaScript?	
  
IoT	
  &	
  JavaScript	
  
Why	
  JavaScript?	
  
IoT	
  &	
  JavaScript	
  
Why	
  JavaScript?	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Noduino	
  
•  A	
  simple	
  and	
  flexible	
  JavaScript	
  and	
  Node.js	
  Framework	
  for	
  
accessing	
  basic	
  Arduino	
  controls	
  from	
  Web	
  Applica;ons	
  
using	
  HTML5,	
  Socket.IO	
  and	
  Node.js	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Device.js	
  
•  DeviceJS	
  is	
  a	
  JavaScript	
  based	
  development	
  plaHorm	
  for	
  
reac;ng	
  to	
  sensors	
  and	
  controlling	
  devices.	
  It’s	
  built	
  on	
  top	
  
of	
  Google’s	
  V8	
  JavaScript	
  engine,	
  Node.js	
  and	
  a	
  real-­‐;me	
  
JSON	
  database	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Node-­‐RED	
  
–  Node-­‐RED	
  is	
  a	
  tool	
  for	
  wiring	
  together	
  hardware	
  devices,	
  APIs	
  and	
  
online	
  services	
  
–  Web-­‐based	
  
–  O/S	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Node-­‐RED	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Node-­‐RED	
  
•  Nodes	
  available:	
  
	
  Over	
  40	
  
	
  user	
  contributed	
  
	
  nodes	
  
IoT	
  &	
  JavaScript	
  
SoEware	
  
•  Node-­‐RED	
  
IoT:	
  the	
  community	
  approach	
  	
  
Device	
  SoEware	
  
Cylon.js	
   is	
   a	
   JavaScript	
  
framework	
   for	
   robo9cs,	
  
physical	
   compu9ng,	
   and	
   the	
  
Internet	
  of	
  Things.	
  It	
  makes	
  it	
  
incredibly	
   easy	
   to	
   command	
  
robots	
  and	
  devices.	
  
Device	
  SDK	
  over	
  JS/Node.JS	
  
	
  
REST/WebSockets/MQTT	
  
	
  
Browser/Mobile	
  support	
  
Building	
  IoT	
  Applica;ons	
  
What	
  else	
  does	
  it	
  take?	
  
Devices	
  –	
  ‘Smart	
  
Objects’	
  –	
  ‘Things’	
  
Networks	
  
Online	
  Services	
  
Building	
  IoT	
  Applica;ons	
  
What	
  else	
  does	
  it	
  take?	
  
Deploy	
  &	
  Manage	
  Back-­‐
End	
  
Many	
  APIs	
  to	
  connect	
  and	
  
integrate	
  
Management	
  &	
  Data	
  
Maintenance	
  
Building	
  IoT	
  Applica;ons	
  
What	
  else	
  does	
  it	
  take?	
  
Soiware	
  
Hardware	
  
Libraries	
  
APIs	
  
Data?
Users?
Building	
  IoT	
  Applica;ons	
  
What	
  else	
  does	
  it	
  take?	
  
Hosting
Management
Outsourcing
Resources
scalable
More	
  than	
  sensor	
  data	
  storing…	
  
What	
  is	
  COMPOSE?	
  
Scalable	
  PaaS	
  
IoT	
  Marketplace	
  
Development	
  Tools	
  
Sensor	
  
Communica;on	
  
Technologies	
  
MQTT	
  
WebSockets	
  
XMPP	
  
…	
   Service	
  Discovery	
  
Security	
  
IoT	
  PlaLorm	
  As	
  A	
  
Service	
  
COMPOSE	
  at	
  heart	
  
servIoTicy	
  
•  IoT	
  Streaming	
  made	
  easy!	
  
•  RESTful	
  API	
  for:	
  
–  Storing	
  device	
  (sensor)	
  data	
  
–  Querying	
  &	
  Retrieving	
  the	
  data	
  
–  Pushing	
  data	
  to	
  the	
  device	
  
–  Subscribing	
  to	
  no;fica;ons	
  (e.g.,	
  new	
  sensor	
  data	
  arrived)	
  
•  Free	
  and	
  Open	
  Source	
  
•  Downloadable	
  bundle	
  (Ubuntu/Debian	
  Image)	
  
•  Soon	
  -­‐>	
  CloudFoundry	
  installa;on	
  
WWW	
  -­‐>	
  IoT	
  
CoAP
REST	
  
MQTT	
  
CoAP	
  
MQTT	
  
STOMP	
  
WS	
  
CoAP	
  
COMPOSE	
  at	
  heart	
  
servIoTicy	
  
•  Integra;on	
  of	
  popular	
  frameworks:	
  
•  Apache	
  STORM	
  
•  Elas;cSearch	
  
•  CouchBase	
  DB	
  
•  Apache	
  Apollo	
  –	
  Ac;veMQ	
  
–  WS/STOMP/MQTT/AMQP/…	
  
•  JeMy	
  
•  ….	
  
COMPOSE	
  
COMPOSE	
  
hMps://github.com/compose-­‐eu	
  servIoTicy	
  
IoT	
  streaming	
  made	
  easy	
  
COMPOSE	
  SDKs	
  
hMp://www.servio;cy.com	
  
hMp://www.gluethings.com	
  
	
  
COMPOSE	
  
Developer Friendly!
Conceptual	
  
idea	
  from	
  
Node-­‐RED	
  
Meet	
  COMPOSE	
  
Security taken seriously!
PART	
  B	
  –	
  Some	
  Fun	
  stuff	
  (Hands	
  on	
  
Demo)	
  
Using	
  JavaScript	
  and	
  COMPOSE	
  to	
  build	
  cool	
  IoT	
  
applica;ons	
  
(Mind	
  the	
  Demo	
  Effect)	
  
Charalampos	
  Doukas	
  
Researcher	
  
•  Informa;on	
  &	
  
Communica;on	
  Systems	
  
Engineer	
  
•  PhD	
  in	
  Health	
  Informa;cs	
  
•  Senior	
  Researcher	
  in	
  
CREATE-­‐NET	
  
•  COMPOSE	
  Project	
  
	
  
Maker	
  
•  IoT	
  Blogger	
  
–  Many	
  DIY	
  IoT	
  Projects	
  
•  Workshops	
  (Makerland,	
  
Makerfaire…)	
  
•  Author	
  
–  Building	
  Internet	
  of	
  Things	
  
with	
  the	
  Arduino	
  
•  Consultancy	
  
@BuildingIoT
hdoukas

More Related Content

What's hot

An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
Alex Kritikos
 

What's hot (16)

Chapter 7
Chapter 7Chapter 7
Chapter 7
 
QuadraSpace Protocol
QuadraSpace ProtocolQuadraSpace Protocol
QuadraSpace Protocol
 
IoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkIoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talk
 
Track 2 session 1 - st dev con 2016 - avnet - making things real
Track 2   session 1 - st dev con 2016 - avnet - making things realTrack 2   session 1 - st dev con 2016 - avnet - making things real
Track 2 session 1 - st dev con 2016 - avnet - making things real
 
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
 
Private cloud networking_cloudstack_days_austin
Private cloud networking_cloudstack_days_austinPrivate cloud networking_cloudstack_days_austin
Private cloud networking_cloudstack_days_austin
 
Connecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and SparkplugConnecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and Sparkplug
 
Avi Network SDN meetup
Avi Network  SDN meetupAvi Network  SDN meetup
Avi Network SDN meetup
 
Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network
 
Enabling IoT Devices’ Hardware and Software Interoperability, IPSO Alliance (...
Enabling IoT Devices’ Hardware and Software Interoperability, IPSO Alliance (...Enabling IoT Devices’ Hardware and Software Interoperability, IPSO Alliance (...
Enabling IoT Devices’ Hardware and Software Interoperability, IPSO Alliance (...
 
IPv6 and the Internet of Things
IPv6 and the Internet of ThingsIPv6 and the Internet of Things
IPv6 and the Internet of Things
 
TechWiseTV Workshop: Digital Building Switches
TechWiseTV Workshop: Digital Building SwitchesTechWiseTV Workshop: Digital Building Switches
TechWiseTV Workshop: Digital Building Switches
 
An Introduction to Eclipse Kura - Eclipse Day Florence 2014
An Introduction to Eclipse Kura - Eclipse Day Florence 2014An Introduction to Eclipse Kura - Eclipse Day Florence 2014
An Introduction to Eclipse Kura - Eclipse Day Florence 2014
 
What's new in the integrated architecture hardware
What's new in the integrated architecture hardwareWhat's new in the integrated architecture hardware
What's new in the integrated architecture hardware
 
Nodeph talk
Nodeph talkNodeph talk
Nodeph talk
 
IoT Seminar (Oct. 2016) Jong Young Lee - MDS Technology
IoT Seminar (Oct. 2016) Jong Young Lee - MDS TechnologyIoT Seminar (Oct. 2016) Jong Young Lee - MDS Technology
IoT Seminar (Oct. 2016) Jong Young Lee - MDS Technology
 

Viewers also liked (6)

An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m services
 
WoT.js - WoT App. Framework for Open Source Hardware
WoT.js - WoT App. Framework for Open Source HardwareWoT.js - WoT App. Framework for Open Source Hardware
WoT.js - WoT App. Framework for Open Source Hardware
 
Kura M2M IoT Gateway
Kura M2M IoT GatewayKura M2M IoT Gateway
Kura M2M IoT Gateway
 
Road Lighting
Road LightingRoad Lighting
Road Lighting
 
Smart Traffic Light Controller
Smart Traffic Light ControllerSmart Traffic Light Controller
Smart Traffic Light Controller
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 

Similar to Using Java Script and COMPOSE to build cool IoT applications, SenZations 2015

Similar to Using Java Script and COMPOSE to build cool IoT applications, SenZations 2015 (20)

Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
Building the Internet of Things with Thingsquare and Contiki - day 1, part 3
 
Scalable Open-Source IoT Solutions on Microsoft Azure
Scalable Open-Source IoT Solutions on Microsoft AzureScalable Open-Source IoT Solutions on Microsoft Azure
Scalable Open-Source IoT Solutions on Microsoft Azure
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Building the Internet of Things with Thingsquare and Contiki - day 1, part 1
Building the Internet of Things with Thingsquare and Contiki - day 1, part 1Building the Internet of Things with Thingsquare and Contiki - day 1, part 1
Building the Internet of Things with Thingsquare and Contiki - day 1, part 1
 
Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...Master-Master Replication and Scaling of an Application Between Each of the I...
Master-Master Replication and Scaling of an Application Between Each of the I...
 
Internet of things (IoT) with Azure
Internet of things (IoT) with AzureInternet of things (IoT) with Azure
Internet of things (IoT) with Azure
 
Role of cloud and analytics in IoT
Role of cloud and analytics in IoTRole of cloud and analytics in IoT
Role of cloud and analytics in IoT
 
The IoT Open Source World: Where WSO2 stands
The IoT Open Source World: Where WSO2 standsThe IoT Open Source World: Where WSO2 stands
The IoT Open Source World: Where WSO2 stands
 
Meetup 4/2/2016 - Functionele en technische architectuur IoT
Meetup  4/2/2016 - Functionele en technische architectuur IoTMeetup  4/2/2016 - Functionele en technische architectuur IoT
Meetup 4/2/2016 - Functionele en technische architectuur IoT
 
Internet of things - The Present & The Future
Internet of things - The Present & The FutureInternet of things - The Present & The Future
Internet of things - The Present & The Future
 
Osiot14 buildout
Osiot14 buildoutOsiot14 buildout
Osiot14 buildout
 
Internet of Things 101 - For software engineers
Internet of Things 101 - For software engineersInternet of Things 101 - For software engineers
Internet of Things 101 - For software engineers
 
Osiot13 IoT buildout
Osiot13 IoT buildoutOsiot13 IoT buildout
Osiot13 IoT buildout
 
End-to-end IoT solutions with Java and Eclipse IoT
End-to-end IoT solutions with Java and Eclipse IoTEnd-to-end IoT solutions with Java and Eclipse IoT
End-to-end IoT solutions with Java and Eclipse IoT
 
Elements of Connected Products
Elements of Connected ProductsElements of Connected Products
Elements of Connected Products
 
Technology Behind IoT (JNTUK - Unit - 1)
Technology Behind IoT (JNTUK - Unit - 1)Technology Behind IoT (JNTUK - Unit - 1)
Technology Behind IoT (JNTUK - Unit - 1)
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
IoT interoperability
IoT interoperabilityIoT interoperability
IoT interoperability
 
Iot meets Serverless
Iot meets ServerlessIot meets Serverless
Iot meets Serverless
 
Open Source IoT Building Blocks for Startups
Open Source IoT Building Blocks for StartupsOpen Source IoT Building Blocks for Startups
Open Source IoT Building Blocks for Startups
 

More from SenZations Summer School

More from SenZations Summer School (20)

Technology joint venture
Technology joint ventureTechnology joint venture
Technology joint venture
 
Strategic pyramid
Strategic pyramidStrategic pyramid
Strategic pyramid
 
Steps in going global: Hope it is not a Strategy
Steps in going global: Hope it is not a StrategySteps in going global: Hope it is not a Strategy
Steps in going global: Hope it is not a Strategy
 
Globalization is going backward
Globalization is going backwardGlobalization is going backward
Globalization is going backward
 
Disruptive leaders are good for business
Disruptive leaders are good for businessDisruptive leaders are good for business
Disruptive leaders are good for business
 
Senzations’15: 10 years retrospective
Senzations’15: 10 years retrospectiveSenzations’15: 10 years retrospective
Senzations’15: 10 years retrospective
 
Senzations’15: Secure Internet of Things
Senzations’15: Secure Internet of ThingsSenzations’15: Secure Internet of Things
Senzations’15: Secure Internet of Things
 
IoT for Healthcare
IoT for HealthcareIoT for Healthcare
IoT for Healthcare
 
IoT and 5G: Opportunities and Challenges, SenZations 2015
IoT and 5G: Opportunities and Challenges, SenZations 2015IoT and 5G: Opportunities and Challenges, SenZations 2015
IoT and 5G: Opportunities and Challenges, SenZations 2015
 
Microsoft Azure and IoT – how to use
Microsoft Azure and IoT – how to useMicrosoft Azure and IoT – how to use
Microsoft Azure and IoT – how to use
 
Azure IoT services - overview, SenZations 2015
Azure IoT services - overview, SenZations 2015Azure IoT services - overview, SenZations 2015
Azure IoT services - overview, SenZations 2015
 
IoT Crowd
IoT CrowdIoT Crowd
IoT Crowd
 
IoT Farm 2 Mouth (F2M) - SenZations 2015 - Team: OKI DOKI
IoT Farm 2 Mouth (F2M) - SenZations 2015 - Team: OKI DOKIIoT Farm 2 Mouth (F2M) - SenZations 2015 - Team: OKI DOKI
IoT Farm 2 Mouth (F2M) - SenZations 2015 - Team: OKI DOKI
 
AgrIoT - Team: FIZURE senzations 2015
AgrIoT - Team: FIZURE senzations 2015AgrIoT - Team: FIZURE senzations 2015
AgrIoT - Team: FIZURE senzations 2015
 
How to Design and Create a Project
How to Design and Create a ProjectHow to Design and Create a Project
How to Design and Create a Project
 
The Process of Creating a Business Idea
The Process of Creating a Business IdeaThe Process of Creating a Business Idea
The Process of Creating a Business Idea
 
UK smart cities
UK smart citiesUK smart cities
UK smart cities
 
AIOTI and IoT LSP
AIOTI and IoT LSPAIOTI and IoT LSP
AIOTI and IoT LSP
 
OdinS smart products
OdinS smart productsOdinS smart products
OdinS smart products
 
Smart campus
Smart campusSmart campus
Smart campus
 

Recently uploaded

Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
raffaeleoman
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
Kayode Fayemi
 

Recently uploaded (20)

Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)Introduction to Prompt Engineering (Focusing on ChatGPT)
Introduction to Prompt Engineering (Focusing on ChatGPT)
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 

Using Java Script and COMPOSE to build cool IoT applications, SenZations 2015

  • 1.   Using  JavaScript  and  COMPOSE  to   build  cool  IoT  applica;ons   Charalampos  Doukas   @buildingiot  
  • 2. PART  A  –  Some  Basics   Using  JavaScript  and  COMPOSE  to  build  cool  IoT   applica;ons  
  • 3. IoT:  The  main  components   Devices  –  ‘Smart   Objects’  –  ‘Things’   Networks   Online  Services  
  • 4. Devices:  the  community  approach     Devices  
  • 5. Devices   •  Prototyping  plaHorms  (some  IoT  oriented)   •  Arduino  (….)   –  hMp://postscapes.com/arduino-­‐wifi   •  openPicus  Flyport  (WiFi,  Ethernet,  GPRS,  Enocean)   •  Libelium  Waspmote   •  mBed  by  ARM   •  Pinocc.io  (mesh  network  support,  RF+WiFi)   •  (Spark  core)  Par;cle.io  (WiFi,  3G)   •  Electric  Imp   •  Tessel  (WiFi,  Node.js)    
  • 7. IoT:  the  community  approach     Devices  
  • 8. IoT:  the  community  approach     Devices  
  • 9. IoT:  the  community  approach     Devices   NodeMCU   WiFI   eLua   12$   Based  on  ESP8266  WiFI  SoC   Community  based  development  SW  +  HW    
  • 10. IoT:  the  community  approach     Devices   IoT Gateways
  • 11. IoT:  the  community  approach     Devices   Wearables?
  • 12. Devices     •  SODAQ  (WiFi,  Xbee,  ..)   •  XinoRF   •  PanStamps   •  Intel  boards   •  TI  CC3200  (SimpleLink)   •  Domain  specific   –  BITalino  (Wearables)   –  Thingsquare   –  FluMer   hMp://postscapes.com/internet-­‐of-­‐things-­‐diy   hMp://postscapes.com/internet-­‐of-­‐things-­‐hardware    
  • 13. Sensors  &  Actuators   •  Gas  &  Air  quality   •  Barometric  pressure   •  Temperature  &  Humidity   •  Light  &  Sound   •  Mo;on   •  Flex  &  Force   •  Posi;on   •  Magne;c  fields   •  Electricity   •  Biometrics  
  • 14. Sensors  &  Actuators   •  Proximity  &  Presence   •  Weight   •  Liquids  &  Liquid  flow   •  Radia;on   •  …  
  • 15. Sensors  &  Actuators   •  Move  things  (motors)   •  Ac;vate  (switches)   •  Interfaces   –  Sound   –  Light   –  Displays   •  Remote  interfaces   –  Social   –  Email,  text,  …   –  Phone  (twillio)  
  • 16. Soiware   •  Standard  IDEs   –  Arduino  IDE   –  Eclipse   •  Code  –  less:   –  Scratch   •  Cloud-­‐based   –  Codebender  (codebender.cc)   –  par;cle.io   •  Browser-­‐based   –  mBed   –  Electron   –  Noduino   –  …  
  • 17. Workflow  -­‐  based   •  Node-­‐RED  
  • 19. Protocols   •  Web  based:   •  HTTP   –  REST   –  WebSockets   •  M2M  (lower  resources  +  actua;on)   –  MQTT   –  CoAP  -­‐  LWM2M   –  XMPP   –  STOMP   –  …  
  • 20. Online  Services   •  Sensor  Data   –  Pachube/Cosm/Xively   –  Paraimpu   –  TheThingsystem.io   •  Device  Management     •  Full  PaaS  
  • 21. IoT  &  JavaScript   Why  JavaScript?  
  • 22. IoT  &  JavaScript   Why  JavaScript?  
  • 23. IoT  &  JavaScript   Why  JavaScript?  
  • 24. IoT  &  JavaScript   Why  JavaScript?  
  • 25. IoT  &  JavaScript   Why  JavaScript?  
  • 26. IoT  &  JavaScript   SoEware   •  Noduino   •  A  simple  and  flexible  JavaScript  and  Node.js  Framework  for   accessing  basic  Arduino  controls  from  Web  Applica;ons   using  HTML5,  Socket.IO  and  Node.js  
  • 27. IoT  &  JavaScript   SoEware   •  Device.js   •  DeviceJS  is  a  JavaScript  based  development  plaHorm  for   reac;ng  to  sensors  and  controlling  devices.  It’s  built  on  top   of  Google’s  V8  JavaScript  engine,  Node.js  and  a  real-­‐;me   JSON  database  
  • 28. IoT  &  JavaScript   SoEware   •  Node-­‐RED   –  Node-­‐RED  is  a  tool  for  wiring  together  hardware  devices,  APIs  and   online  services   –  Web-­‐based   –  O/S  
  • 29. IoT  &  JavaScript   SoEware   •  Node-­‐RED  
  • 30. IoT  &  JavaScript   SoEware   •  Node-­‐RED   •  Nodes  available:    Over  40    user  contributed    nodes  
  • 31. IoT  &  JavaScript   SoEware   •  Node-­‐RED  
  • 32. IoT:  the  community  approach     Device  SoEware   Cylon.js   is   a   JavaScript   framework   for   robo9cs,   physical   compu9ng,   and   the   Internet  of  Things.  It  makes  it   incredibly   easy   to   command   robots  and  devices.   Device  SDK  over  JS/Node.JS     REST/WebSockets/MQTT     Browser/Mobile  support  
  • 33. Building  IoT  Applica;ons   What  else  does  it  take?   Devices  –  ‘Smart   Objects’  –  ‘Things’   Networks   Online  Services  
  • 34. Building  IoT  Applica;ons   What  else  does  it  take?   Deploy  &  Manage  Back-­‐ End   Many  APIs  to  connect  and   integrate   Management  &  Data   Maintenance  
  • 35. Building  IoT  Applica;ons   What  else  does  it  take?   Soiware   Hardware   Libraries   APIs   Data? Users?
  • 36. Building  IoT  Applica;ons   What  else  does  it  take?   Hosting Management Outsourcing Resources scalable
  • 37. More  than  sensor  data  storing…  
  • 38. What  is  COMPOSE?   Scalable  PaaS   IoT  Marketplace   Development  Tools   Sensor   Communica;on   Technologies  
  • 39. MQTT   WebSockets   XMPP   …   Service  Discovery   Security   IoT  PlaLorm  As  A   Service  
  • 40. COMPOSE  at  heart   servIoTicy   •  IoT  Streaming  made  easy!   •  RESTful  API  for:   –  Storing  device  (sensor)  data   –  Querying  &  Retrieving  the  data   –  Pushing  data  to  the  device   –  Subscribing  to  no;fica;ons  (e.g.,  new  sensor  data  arrived)   •  Free  and  Open  Source   •  Downloadable  bundle  (Ubuntu/Debian  Image)   •  Soon  -­‐>  CloudFoundry  installa;on  
  • 41. WWW  -­‐>  IoT   CoAP REST   MQTT   CoAP   MQTT   STOMP   WS   CoAP  
  • 42. COMPOSE  at  heart   servIoTicy   •  Integra;on  of  popular  frameworks:   •  Apache  STORM   •  Elas;cSearch   •  CouchBase  DB   •  Apache  Apollo  –  Ac;veMQ   –  WS/STOMP/MQTT/AMQP/…   •  JeMy   •  ….  
  • 44. COMPOSE   hMps://github.com/compose-­‐eu  servIoTicy   IoT  streaming  made  easy   COMPOSE  SDKs   hMp://www.servio;cy.com   hMp://www.gluethings.com    
  • 45. COMPOSE   Developer Friendly! Conceptual   idea  from   Node-­‐RED  
  • 46. Meet  COMPOSE   Security taken seriously!
  • 47. PART  B  –  Some  Fun  stuff  (Hands  on   Demo)   Using  JavaScript  and  COMPOSE  to  build  cool  IoT   applica;ons   (Mind  the  Demo  Effect)  
  • 48. Charalampos  Doukas   Researcher   •  Informa;on  &   Communica;on  Systems   Engineer   •  PhD  in  Health  Informa;cs   •  Senior  Researcher  in   CREATE-­‐NET   •  COMPOSE  Project     Maker   •  IoT  Blogger   –  Many  DIY  IoT  Projects   •  Workshops  (Makerland,   Makerfaire…)   •  Author   –  Building  Internet  of  Things   with  the  Arduino   •  Consultancy   @BuildingIoT hdoukas