Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Towards the Web of Things: Web Mashups for the Real-World @ MEM 2009

6,796 views

Published on

Towards the Web of Things: Web Mashups for the Real-World @ MEM 2009

Published in: Technology, Business
  • Be the first to comment

Towards the Web of Things: Web Mashups for the Real-World @ MEM 2009

  1. 1. Towards the Web of Things: Web Mashups for Embedded Devices Dominique Guinard and Vlad Trifa Institute for Pervasive Computing, ETH Zurich and SAP Research Zurich [email_address] www.guinard.org
  2. 2. Discussing the Web of Things Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [http://www.flickr.com/photos/sharynmorrow/ ] MEM @ WWW 2009, Madrid
  3. 3. Embedded Devices Invade us! Dominique Guinard, ETH / SAP Research Zurich, webofthings.com <ul><li>Emergence of the physical Web </li></ul><ul><ul><li>Embedded devices get more powerful . </li></ul></ul><ul><ul><li>They are also getting connected to the Web. </li></ul></ul>MEM @ WWW 2009, Madrid
  4. 4. From a Large Ecosystem to a Large Playground <ul><li>Huge eco-system of devices. </li></ul><ul><ul><li>About 1000 smart objects / person: </li></ul></ul><ul><ul><li>and… about 1000 systems to use them and build applications on top of them. </li></ul></ul><ul><li>How do we enable people to create applications on top of this great eco-system? </li></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com “ re-think the way we design computing systems in order to take into account the >1000 smart objects per people we will soon have to deal with.” David Orban MEM @ WWW 2009, Madrid
  5. 5. Web 2.0 Mashups <ul><li>Mashups are a nice example of « easily » building new applications on top of a virtual eco-system of services. </li></ul><ul><li>Not the universal answer but seemingly adapted to dynamic and moderately big use-cases involving end-users. </li></ul><ul><li>How about creating real-world mashups? </li></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  6. 6. Web of Things (WOT) in a Nutshell <ul><li>Fully integrating embedded devices to the Web, by designing “web-oriented” APIs for embedded devices: </li></ul><ul><ul><li>A Web-page for each “service”. </li></ul></ul><ul><ul><li>A RESTful API to access and consume them. </li></ul></ul><ul><li>As a result: </li></ul><ul><ul><li>Embedded devices are easier to build upon. </li></ul></ul><ul><ul><li>We get the goodies of the web almost for free (caching, linking, searching, authenticating, etc.) </li></ul></ul><ul><ul><li>And enable physical mashups, i.e. small, ad-hoc composite applications involving real-world embedded devices. </li></ul></ul>MEM @ WWW 2009, Madrid Dominique Guinard, ETH / SAP Research Zurich, webofthings.com
  7. 7. Our 5 Courses Menu <ul><li>Discussing the Web of Things </li></ul><ul><li>A Web Oriented Architecture for the Real-World </li></ul><ul><ul><li>Building RESTful APIs for Real-World Devices </li></ul></ul><ul><ul><li>Integration Patterns: Gateway vs Direct Integration </li></ul></ul><ul><li>Implementation and Prototypes </li></ul><ul><ul><li>RESTful Sun SPOTs </li></ul></ul><ul><ul><li>RESTful Ploggs </li></ul></ul><ul><li>Real-World Mashups </li></ul><ul><ul><li>Energie Visible Google Web Toolkit UI </li></ul></ul><ul><ul><li>Ambient Meter </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  8. 8. A Web Oriented Architecture for the Real-World Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [ http://www.flickr.com/photos/julianbleecker ] MEM @ WWW 2009, Madrid
  9. 9. Our 5 Courses Menu <ul><li>Discussing the Web of Things </li></ul><ul><li>A Web Oriented Architecture for the Real-World </li></ul><ul><ul><li>Building RESTful APIs for Real-World Devices </li></ul></ul><ul><ul><li>Integration Patterns: Gateway vs Direct Integration </li></ul></ul><ul><li>Implementation and Prototypes </li></ul><ul><ul><li>RESTful Sun SPOTs </li></ul></ul><ul><ul><li>RESTful Ploggs </li></ul></ul><ul><li>Real-World Mashups </li></ul><ul><ul><li>Energie Visible Google Web Toolkit UI </li></ul></ul><ul><ul><li>Ambient Meter </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  10. 10. 1. Resource Design <ul><li>Thanks to their atomicity services on embedded devices are quite adapted to Resource-Oriented Architectures. </li></ul><ul><li>Root: http://webofthings.com/ </li></ul><ul><li>Resources: </li></ul><ul><ul><li>Spots: http://webofthings.com/spots </li></ul></ul><ul><ul><li>Spot 2: http://webofthings.com/spots/2 </li></ul></ul><ul><ul><li>Light Sensor: http://webofthings.com/spots/2/sensors/light </li></ul></ul><ul><ul><li>Led Actuator: http://webofthings.com/spots/2/actuators/led/ </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  11. 11. <ul><li>XHTML as default, ideal for browsing: </li></ul><ul><ul><li>http://webofthings.com/spots </li></ul></ul><ul><li>JSON, ideal for parsing: </li></ul><ul><ul><li>http://webofthings.com/spots.json </li></ul></ul><ul><li>XML, ideal for integration </li></ul><ul><ul><li>http://webofthings.com/spots.xml </li></ul></ul>2. Representation Design Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  12. 12. 3. Uniform Interface Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [ HTTP: http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol] MEM @ WWW 2009, Madrid
  13. 13. 3. Uniform Interface <ul><li>HTTP Verbs: What do you want to do? </li></ul><ul><ul><li>GET: retrieve the representation of a resource. </li></ul></ul><ul><ul><li>PUT: create or update a resource. </li></ul></ul><ul><ul><li>DELETE: remove a resource. </li></ul></ul><ul><ul><li>POST: create a subordinate (or custom: RPC!) </li></ul></ul><ul><li>HTTP Headers: What type of data are you sending me? </li></ul><ul><ul><li>Metadata: </li></ul></ul><ul><ul><ul><li>Content type: application/json, text/html, etc. </li></ul></ul></ul><ul><ul><li>Status: </li></ul></ul><ul><ul><ul><li>200 OK, 201 Create, 400 Bad Request, 401 Unauthorized </li></ul></ul></ul><ul><li>HTTP Body: The actual data. </li></ul><ul><ul><li>The content in its representation. </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  14. 14. Integration Patterns: Gateway vs Direct Dominique Guinard, ETH / SAP Research Zurich, webofthings.com Web Cloud Smart Gateway RESTful API BT Zigbee … API1 API2 Web Cloud Web Server Eventing MEM @ WWW 2009, Madrid IPv6 (lowpan) Compose Visualize Search Physical Mashups Compose Visualize Search Physical Mashups RESTful API Web Server RESTful API Web Server
  15. 15. Implementation and Prototypes Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [http://www.flickr.com/photos/sharynmorrow/47086098/ ] MEM @ WWW 2009, Madrid
  16. 16. Our 5 Courses Menu <ul><li>Discussing the Web of Things </li></ul><ul><li>A Web Oriented Architecture for the Real-World </li></ul><ul><ul><li>Building RESTful APIs for Real-World Devices </li></ul></ul><ul><ul><li>Integration Patterns: Gateway vs Direct Integration </li></ul></ul><ul><li>Implementation and Prototypes </li></ul><ul><ul><li>RESTful Sun SPOTs </li></ul></ul><ul><ul><li>RESTful Ploggs </li></ul></ul><ul><li>Real-World Mashups </li></ul><ul><ul><li>Energie Visible Google Web Toolkit UI </li></ul></ul><ul><ul><li>Ambient Meter </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  17. 17. Direct Integration Dominique Guinard, ETH / SAP Research Zurich, webofthings.com Web Cloud Smart Gateway RESTful API BT Zigbee … API1 API2 Web Cloud Web Server Eventing MEM @ WWW 2009, Madrid IPv6 (lowpan) Compose Visualize Search Physical Mashups Compose Visualize Search Physical Mashups RESTful API Web Server RESTful API Web Server
  18. 18. The RESTful SunSPOTs Project <ul><li>Create a « SmartLogger » that can be attached to shipments. </li></ul><ul><li>www.webofthings.com/ tag/smartlogger/ </li></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  19. 19. Architecture MEM @ WWW 2009, Madrid Dominique Guinard, ETH / SAP Research Zurich, webofthings.com
  20. 20. Integration using Gateways Dominique Guinard, ETH / SAP Research Zurich, webofthings.com Web Cloud Smart Gateway RESTful API BT Zigbee … API1 API2 Web Cloud Web Server Eventing MEM @ WWW 2009, Madrid IPv6 (lowpan) Compose Visualize Search Physical Mashups Compose Visualize Search Physical Mashups RESTful API Web Server RESTful API Web Server
  21. 21. The « Energie Visible » Project Dominique Guinard, ETH / SAP Research Zurich, webofthings.com <ul><li>Aim: </li></ul><ul><ul><li>Monitor and control your energy consumption at home. </li></ul></ul><ul><ul><li>Fully integrate the monitoring and control to the web. </li></ul></ul><ul><li>www.webofthings.com/energievisible/ </li></ul>Gateway and Mini Webserver Sensors (Ploggs) Devices Web / Mobile Interface MEM @ WWW 2009, Madrid
  22. 22. RESTful Plogg Gateway Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  23. 23. Talk to devices: The WEB Way Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  24. 24. Demo Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  25. 25. Examples of Real-World Mashups Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [http://www.flickr.com/photos/kevlar ] MEM @ WWW 2009, Madrid
  26. 26. Our 5 Courses Menu <ul><li>Motivation </li></ul><ul><li>Discussing Real-World Integration Schemes </li></ul><ul><ul><li>WS-* Web Services </li></ul></ul><ul><ul><li>RESTful APIs </li></ul></ul><ul><li>A Web Oriented Architecture for the Real-World </li></ul><ul><ul><li>Building RESTful APIs for Real-World Devices </li></ul></ul><ul><ul><li>Integration Patterns: Gateway vs Direct Integration </li></ul></ul><ul><li>Implementation and Prototypes </li></ul><ul><ul><li>RESTful Sun SPOTs </li></ul></ul><ul><ul><li>RESTful Ploggs </li></ul></ul><ul><li>Real-World Mashups </li></ul><ul><ul><li>Energie Visible Google Web Toolkit UI </li></ul></ul><ul><ul><li>Ambient Meter </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  27. 27. Enable Real-World Mashups Dominique Guinard, ETH / SAP Research Zurich, webofthings.com URL URL URL URL MEM @ WWW 2009, Madrid
  28. 28. Physical-Virtual Mashup: Energy Visualizer for RESTful Ploggs Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  29. 29. Physical-Physical Mashup: Ambient Energy Meter <ul><li>Create an ambient device that can assess the energy consumption of the current place it is in. </li></ul><ul><li>Mashup of: </li></ul><ul><ul><li>The RESTful Ploggs </li></ul></ul><ul><ul><li>The RESTful Sun Spots </li></ul></ul><ul><ul><li>The Smart Gateways. </li></ul></ul>Dominique Guinard, ETH / SAP Research Zurich, webofthings.com MEM @ WWW 2009, Madrid
  30. 30. Outlook <ul><li>REST is quite suitable for composing small, ad-hoc applications [1], why not for small embedded applications? </li></ul><ul><li>Need to go beyond REST: </li></ul><ul><ul><li>Need for asynchronous mechanisms. </li></ul></ul><ul><ul><li>Currently exploring systems such as XMPP and Twitter. </li></ul></ul><ul><li>Need to provide mashup editors for physical mashups (à la “yahoo pipes” or “rooftop”). </li></ul>MEM @ WWW 2009, Madrid Dominique Guinard, ETH / SAP Research Zurich, webofthings.com [1] Pautasso, Cesare, Olaf Zimmermann, and Frank Leymann. “Restful web services vs. &quot;big&quot;' web services: making the right architectural decision.” In WWW '08: Proceeding of the 17th international conference on World Wide Web , 805―814. New York, NY, USA: ACM, 2008.
  31. 31. Thanks a lot for your attention Dominique Guinard, ETH / SAP Research Zurich, webofthings.com www.webofthings.com MEM @ WWW 2009, Madrid

×