SlideShare a Scribd company logo
Web of Things - Connecting
People and Objects on the
           Web
    Workshop @ SXSW10, Austin, 14 March 2010
         Vlad Trifa & Dominique Guinard
          http://www.webofthings.com
Virtual doggy bag online:



     http://www.webofthings.com/sxsw



      Disclaimer: We are going to demo
  undergoing research, so please bear with us.


                    WoT@SXSW10
Electronic things are invading us...
       •   Increasingly powerful CPUs
       •   Sensors & actuators
       •   Web connectivity
           •   Cheap
           •   Ubiquitous




                            WoT@SXSW10
Translation for geeks:
An infinite playground.


YAAAY!
Problem is...


           How to create easily interactive
          applications that combine various
             heterogeneous devices???

                                           That is, without a
•   Tons of different devices:             PhD in Computer
                                                Science
     •   Capabilities/functions
     •   Applications/middlewares
     •   Networking protocols


                              WoT@SXSW10
We need an universal protocol
that is:

simple, lightweight, loosely-
coupled, scalable, flexible

and hopefully... standard
Sounds like the
Web
So let’s leverage it!

       Use Web standards to develop applications for
                   networked devices.
            HTTP, HTML, XML, JSON, RSS, ATOM, MIME,...



   •   TCP/IP & Web granted, WiFi routers ubiquitous
   •   Development of simple Web apps: cheap & quick
   •   Integrate real-world data on the Web
   •   Get features of the Web for free

                          WoT@SXSW10
RESTifying
Things
The Web of Things in a nutshell




  3 steps to create a basic Web of Things:
  •   Connecting things to the Internet (IPv4/IPv6)
  •   Embedded Web servers
  •   Make devices part of the Web (using REST)
      •   Model their function as RESTful resources




                            WoT@SXSW10
RESTful SunSPOTs


                   •     Properties and functions are
                         RESTful resources
                   •     Devices/services become Web
                         resources
                        •   URI-addressed
                        •   Links between them (hateoas)
                        •   Different representations (content
                            negotiation)
                        •   Uniform interface (HTTP verbs,
                            status codes)



                       WoT@SXSW10
Sunspots resources modeling


•   Services on embedded devices are adapted for resource oriented
    architectures
•   root: www.spotshost.com
•   spots list: www.spotshost.com/sunspots
•   spot #1: www.spotshost.com/sunspots/1
•   sensors list: www.spotshost.com/sunspots/1/sensors
•   LEDs : www.spotshost.com/sunspots/1/actuators/leds
•   LED #1 : www.spotshost.com/sunspots/1/actuators/leds/led1




                               WoT@SXSW10
Representations


•   XHTML ideal for browsing
http://webofthings.com/spots


•   JSON ideal for parsing (& lightweight for device)
http://webofthings.com/spots.json




•   XML ideal for business integration
http://webofthings.com/spots.xml


                               WoT@SXSW10
Uniform interface


 •   HTTP verbs
     •   GET: current temperature
     •   POST: add a timer
     •   PUT: turn a device on/off
     •   DELETE: delete a timer on a device

 •   HTTP headers
     •   Accept header for MIME types
     •   Status codes (200 ok, 401 unauthorized)




                               WoT@SXSW10
DEMO - RESTful spots




 •   Browsing the spot manager
 •   Poster with content negotiation
 •   Javascript app to change LEDs colors




                        WoT@SXSW10
Gateways to
Web-enable things
Embedded REST is not always possible




                                       N on
                                          IP es
                                           vic
                                        de

                   WoT@SXSW10
For Wireless Sensor Networks (WSN)...




                    WoT@SXSW10
Example application: Energie Visible

              Web / Mobile 
               Interface              GET http://10.1.1.5:8080/energievisible/ploggs/all


           Gateway                    [{
         (IP:10.1.1.5)                  "deviceName": "ComputerAndScreen",
                                        "currentWatts": 50.52,
                                        "KWh": 5.835,
                                        "maxWattage": 100.56
                                      },
                                        "deviceName": "Fridge",
                         Sensors        "currentWatts": 86.28.,
                         (Ploggs)       "KWh": 4.421,
                                        "maxWattage": 288.92
                                      }, {...}]
                          Electric 
                         appliances




                                      WoT@SXSW10
DEMO - Energie Visible




                                More? Webofthings.com/
                                energievisible

                   WoT@SXSW10
Devices gone
Web
Devices gone
Social
SAC: Social Access Controller



•   Access Control Lists
    not suited for real-
    world sharing
•   Leverage social
    networks for sharing
    devices
•   OAuth for delegated
    authentication


                           WoT@SXSW10
FAT: Friends and Things




   •   GWT application on top of SAC
   •   Log in using your social networks.
   •   Discover, share, and advertise devices with friends.
   •   Serves ATOM feeds of aggregated device data.




                         WoT@SXSW10
DEMO - FAT




                          More? tinyurl.com/
                          ygy2kwb
             WoT@SXSW10
The era of physical
Mashups
Real-world Web applications


                            REST                                               URL

                                                   REST



                                 I
                               AP




                                                                   Ja
                 P




                            ST




                                                                        va
              PH




                                                                           S
                            RE




                                                                          cr
                                                                            ipt
  [hCp://www.pachube.com]   [hCp://www.webothings.com/energievisible]          [hCp://www.clickscript.ch]




                                       WoT@SXSW10
Clickscript




• Javascript-based visual
    mashup editor
•   Firefox plugin/Web app
•   Based on DOJO/jQuery




                                          www.clickscript.ch

                             WoT@SXSW10
Clickscript component



	   csComponentContainer.push({
	   	   name : "cs.web.things.switch",
	   	   description : "switch on or off",
	   	   inputs : [{name: "IP",type: "cs.type.String"},
	   	   	         {name: "on/off",	type: "cs.type.Boolean"}],
	   	   outputs: [ ],
	   	   image: "web/things/plogg.png",
	   	   exec : function(state){
	   	   	    this.setAsync();
	   	   	    var ip = state.inputs.item(0).getValue();	
	   	   	    var aurl = "http://"+ip+":8082/EnergieVisible/ploggs/008098e7cb71/status.html";
	   	   	    var onoff = state.inputs.item(1).getValue() ? "on" : "off";
	   	   	    var component = this;




                                       WoT@SXSW10
jQuery HTTP request
	   $.ajax({
	   	    url: aurl,
	   	    type: "PUT",
	   	    data: ({status : onoff}),
	   	    success: function(html){
	   	       alert("status of Plogg : " +onoff);
	   	       component.finishAsync();
	   	    },
	   	    error: function(msg){
	   	 	 alert("Error on: "+aurl);
	   	    }
	   	 });
                                       Demo
                       WoT@SXSW10
Advanced
Web of Things
Err, what about eventing & streaming ?
The web wasn’t quite made for that...


And querying & search?
Here comes Real-Time Web


 •   Scalable pub/sub for devices is needed
     •   Many solutions (XMPP, etc....)
     •   None really integrate with the Web
     •   ATOM/ATOMpub is RESTful, but not push


 •   Push Web technologies
     •   Apply Web PUSH on devices
     •   Comet & Web hooks
     •   Bi-directional Web messaging (Websockets)




                               WoT@SXSW10
Device Discovery


 •   Devices serve semantic metadata: Microformats
     •   Similar to headers metadata for Web robots
     •   Machine-readable user manual
     •   Human-readable documentation

 •   MF describe
     •   Available resources and sub-resources
     •   Accepted methods and their input/output
     •   Keywords/tags
     •   Eventing, rules, channels



                               WoT@SXSW10
<span class="service">
    <span class="mftitle">Label: </span><span class="label"></span><br/>
    <span class="mftitle">Data Format: </span><span class="data-format">Integer</
span><br/>
    <span class="mftitle">Operation: </span><span class="operation"><br/>
    <span class="mftitle">Method: </span><span class="method">POST</span><br/>
    <span class="mftitle">Address: </span><span class="address">http://spotmanager:
8081/sunspots/Core2TestSpot/actuators/leds/led1</span><br/>
    <span class="mftitle">Input: </span><span class="input">Red</span><br/>
    <span class="mftitle">Output: </span><span class="output">The updated Resource</
span><br/>
</span>




                                   WoT@SXSW10
Does that scale?
Hierarchic gateways binding: InfraWoT



•   Gateways find and integrate mf-enabled devices
•   Gateways bind to each other and form geographical
    hierarchies
    http://europe.eu/switzerland/zurich/eth/building4
    http://usa.com/texas/austin/sxsw/ballroom/e

•   Based on OSGi and RESTlet




                        WoT@SXSW10
DEMO - InfraWoT




                  WoT@SXSW10
Enterprise
Web of Things
Browsable EPC Network
                                               Tag



                                          EPC

 •
                                       standardized
     Standards for Supply Chain          identifiers


     Management
 •   EPC Network set of RFID
     standards                                  Reader


 •   Global (closed?) network
 •   EPCIS is the information server    Reader
                                       Protocol

 •
                                       Standard
     WS-* interface
 •   RESTful EPCIS
                                                  EPCIS




                         WoT@SXSW10
RESTful EPCIS in a Nutshell

 •   On top of Fosstrak EPCIS
 •   Based on Jersey
 •   Apache Abdera for Feeds
 •   Faster than the original EPCIS (Duh!)




                          WoT@SXSW10
Widgets on top!


 •   Business intelligence
     dashboard
 •   Implemented in
     Javascript (GWT)
 •   Integrating loads of
     Web resources:
     •   Google Viz/Maps/Cal
     •   Wikipedia
     •   Twitter, etc.



                                            Demo
                               WoT@SXSW10
Take home notes


 •   It’s time for devices to join the Web
 •   Tradeoff features/performance
 •   Huge opportunities for the Web of Things


 •   Tools & best practices for Web-enabled things
     are needed
 •   Web developers need to apply their skills to
     build a programmable world



                        WoT@SXSW10
Thanks for your attention !




www.webofthings.com

More Related Content

PPTX
The Web of Things: Enabling the Physical World to the Web
PDF
Web of Things - Towards Open and Sharable Networks of Embedded Devices
PDF
Web of Things Platforms Tutorial
PDF
EVRYTHNG: Concepts, technologies and applications for connecting physical obj...
PDF
ISWC 2013 Tutorial on the Web of Things
PPT
The Web of Things in Practice
PPT
Towards the Web of Things: Web Mashups for the Real-World @ MEM 2009
PDF
Imagining the Web of Things
The Web of Things: Enabling the Physical World to the Web
Web of Things - Towards Open and Sharable Networks of Embedded Devices
Web of Things Platforms Tutorial
EVRYTHNG: Concepts, technologies and applications for connecting physical obj...
ISWC 2013 Tutorial on the Web of Things
The Web of Things in Practice
Towards the Web of Things: Web Mashups for the Real-World @ MEM 2009
Imagining the Web of Things

What's hot (20)

PDF
The Web of Things
PDF
Physical Mashups in the Web-Home
PDF
Web of Things Application Architecture
PDF
PPTX
Web of things introduction
PDF
Vlad Trifa - Final PhD Thesis Defense at ETH Zurich
PPTX
EPC Cloud: Using the Web to Simplify the Global RFID Network
PDF
5 Years of Web of Things Workshops
PDF
RESTifyng Physical Products
PDF
WoT framework and use cases
PDF
The Web of Things - Giving physical products a digital voice.
PPTX
IndianaJS - Building spatially aware web sites for the Web of Things
PPTX
Social Sharing In a Web of Things
PDF
Semantics for the Web of Things
PPTX
WoT 2016 - Seventh International Workshop on the Web of Things
PPTX
Tourism and the Web of Things
PDF
Hypermedia-driven Socio-technical Networks for Goal-driven Discovery in the W...
PDF
WoT Tutorial @ Cisco
PPT
When Things will Speak "Web" (Lecture)
PPTX
WoT @ Oracle-Labs
The Web of Things
Physical Mashups in the Web-Home
Web of Things Application Architecture
Web of things introduction
Vlad Trifa - Final PhD Thesis Defense at ETH Zurich
EPC Cloud: Using the Web to Simplify the Global RFID Network
5 Years of Web of Things Workshops
RESTifyng Physical Products
WoT framework and use cases
The Web of Things - Giving physical products a digital voice.
IndianaJS - Building spatially aware web sites for the Web of Things
Social Sharing In a Web of Things
Semantics for the Web of Things
WoT 2016 - Seventh International Workshop on the Web of Things
Tourism and the Web of Things
Hypermedia-driven Socio-technical Networks for Goal-driven Discovery in the W...
WoT Tutorial @ Cisco
When Things will Speak "Web" (Lecture)
WoT @ Oracle-Labs
Ad

Viewers also liked (18)

PDF
2016 F8 Facebook Developer Conference Overview_Innobirds Media
PDF
Things that go bump on the web - Web Application Security
PDF
Web Meets World (2009)
PPT
Towards the Design of Intelligible Object-based Applications for the Web of T...
PDF
Pattern recognition Tutorial 2
PDF
Connecting to Web Services on Android
PDF
Mobile Backend as a Service(MBaaS)
PDF
Distributed Data Flow for the Web of Things: Distributed Node-RED
PDF
[2016 데이터 그랜드 컨퍼런스] 3 1(io t). 핸디소프트-finding benefits of iot_service by case ...
PDF
AWS로 연결하는 사물인터넷의 세계 :: 이경수 :: AWS Summit Seoul 2016
PDF
IoT and WoT (Internet of Things and Web of Things)
PDF
Mobile + Cloud + IoT - Case Study
PDF
The Bible of IoTs
PPTX
Webinar IoT Cloud Platforms and Middleware for Rapid Application Development
PDF
AWS IoT 서비스 활용하기- 윤석찬, AWS 테크에반젤리스트 :: IoT Convergence Conference 2015
PPT
AUGMENTED REALITY PPT's
PDF
IoT & 오픈소스
PPSX
IoT 기반 융합 서비스 기술 (응용사례)
2016 F8 Facebook Developer Conference Overview_Innobirds Media
Things that go bump on the web - Web Application Security
Web Meets World (2009)
Towards the Design of Intelligible Object-based Applications for the Web of T...
Pattern recognition Tutorial 2
Connecting to Web Services on Android
Mobile Backend as a Service(MBaaS)
Distributed Data Flow for the Web of Things: Distributed Node-RED
[2016 데이터 그랜드 컨퍼런스] 3 1(io t). 핸디소프트-finding benefits of iot_service by case ...
AWS로 연결하는 사물인터넷의 세계 :: 이경수 :: AWS Summit Seoul 2016
IoT and WoT (Internet of Things and Web of Things)
Mobile + Cloud + IoT - Case Study
The Bible of IoTs
Webinar IoT Cloud Platforms and Middleware for Rapid Application Development
AWS IoT 서비스 활용하기- 윤석찬, AWS 테크에반젤리스트 :: IoT Convergence Conference 2015
AUGMENTED REALITY PPT's
IoT & 오픈소스
IoT 기반 융합 서비스 기술 (응용사례)
Ad

Similar to Web of Things - Connecting People and Objects on the Web (20)

PDF
WebSocket Perspectives 2015 - Clouds, Streams, Microservices and WoT
PPTX
V2 peter-lubbers-sf-jug-websocket
PPT
HTML5 WebSocket: The New Network Stack for the Web
PDF
API Design and WebSocket
PPT
Let's Peel Mangos
KEY
The HTML5 WebSocket API
PPT
Azure + WP7 - CodePaLOUsa
PDF
Nodejs and WebSockets
PDF
Web Messaging for Open for Web of Things
PDF
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
PPT
Azure & WP7 at GRDevDay
PDF
WebSockets wiith Scala and Play! Framework
PDF
WebSocket Perspectives and Vision for the Future
PPTX
Websocket vs SSE - Paris.js - 24/06/15
PPT
What's New with Windows Phone - FoxCon Talk
PDF
RESTful OGC Services
PPS
jWebSocket MobileTechCon 2010 - WebSockets on Android, Symbian and BlackBerry
PPS
Jwebsocketmobiletechcon2010en 100912071225 Phpapp01
KEY
Pushing the web — WebSockets
ODP
The Internet as Web Services: introduction to ReST
WebSocket Perspectives 2015 - Clouds, Streams, Microservices and WoT
V2 peter-lubbers-sf-jug-websocket
HTML5 WebSocket: The New Network Stack for the Web
API Design and WebSocket
Let's Peel Mangos
The HTML5 WebSocket API
Azure + WP7 - CodePaLOUsa
Nodejs and WebSockets
Web Messaging for Open for Web of Things
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Azure & WP7 at GRDevDay
WebSockets wiith Scala and Play! Framework
WebSocket Perspectives and Vision for the Future
Websocket vs SSE - Paris.js - 24/06/15
What's New with Windows Phone - FoxCon Talk
RESTful OGC Services
jWebSocket MobileTechCon 2010 - WebSockets on Android, Symbian and BlackBerry
Jwebsocketmobiletechcon2010en 100912071225 Phpapp01
Pushing the web — WebSockets
The Internet as Web Services: introduction to ReST

More from Dominique Guinard (19)

PDF
From the internet of things to the web of things course
PDF
1 billion thngs at a time
PDF
The Art of API Crafting for the IoT
PDF
Dumb Products can be Smart Too!
PDF
3 Cups of Java Drivers with a Slice of MongoDB
PDF
If Spock had an Android phone: QRs, 1D, NFC, BLE, Arduinos & the Web of Things
PPTX
Business Aspects of the IoT: Making Products Smart
PDF
Android and the Web of Things: NFC, QR, BLE, Bluetooth, EPC, Arduino
PPTX
Evrythng @ Web of Things
PDF
Activity Digital Identities in the Web of Things
PPTX
A Universal Application Platform for Sensors, RFID, NFC and Embedded Devices
PDF
HTML5, Websockets & the Mobile Web
PDF
Cloud Computing, REST and Mashups to Simplify RFID Application Development an...
PDF
Comparing SOAs for the Internet of Things
PPTX
Giving RFID a REST: Web-enabled EPCIS
PPTX
A ROA for the WOT
PPTX
Epc Mashup Dashboard Salespitch
PPT
RESTifying WS-* Services: Case Study in RFID
PPT
Using Spatial Conditions for Mobile Applications
From the internet of things to the web of things course
1 billion thngs at a time
The Art of API Crafting for the IoT
Dumb Products can be Smart Too!
3 Cups of Java Drivers with a Slice of MongoDB
If Spock had an Android phone: QRs, 1D, NFC, BLE, Arduinos & the Web of Things
Business Aspects of the IoT: Making Products Smart
Android and the Web of Things: NFC, QR, BLE, Bluetooth, EPC, Arduino
Evrythng @ Web of Things
Activity Digital Identities in the Web of Things
A Universal Application Platform for Sensors, RFID, NFC and Embedded Devices
HTML5, Websockets & the Mobile Web
Cloud Computing, REST and Mashups to Simplify RFID Application Development an...
Comparing SOAs for the Internet of Things
Giving RFID a REST: Web-enabled EPCIS
A ROA for the WOT
Epc Mashup Dashboard Salespitch
RESTifying WS-* Services: Case Study in RFID
Using Spatial Conditions for Mobile Applications

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
KodekX | Application Modernization Development
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Programs and apps: productivity, graphics, security and other tools
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation_ Review paper, used for researhc scholars
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
20250228 LYD VKU AI Blended-Learning.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
KodekX | Application Modernization Development
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Web of Things - Connecting People and Objects on the Web

  • 1. Web of Things - Connecting People and Objects on the Web Workshop @ SXSW10, Austin, 14 March 2010 Vlad Trifa & Dominique Guinard http://www.webofthings.com
  • 2. Virtual doggy bag online: http://www.webofthings.com/sxsw Disclaimer: We are going to demo undergoing research, so please bear with us. WoT@SXSW10
  • 3. Electronic things are invading us... • Increasingly powerful CPUs • Sensors & actuators • Web connectivity • Cheap • Ubiquitous WoT@SXSW10
  • 4. Translation for geeks: An infinite playground. YAAAY!
  • 5. Problem is... How to create easily interactive applications that combine various heterogeneous devices??? That is, without a • Tons of different devices: PhD in Computer Science • Capabilities/functions • Applications/middlewares • Networking protocols WoT@SXSW10
  • 6. We need an universal protocol that is: simple, lightweight, loosely- coupled, scalable, flexible and hopefully... standard
  • 8. So let’s leverage it! Use Web standards to develop applications for networked devices. HTTP, HTML, XML, JSON, RSS, ATOM, MIME,... • TCP/IP & Web granted, WiFi routers ubiquitous • Development of simple Web apps: cheap & quick • Integrate real-world data on the Web • Get features of the Web for free WoT@SXSW10
  • 10. The Web of Things in a nutshell 3 steps to create a basic Web of Things: • Connecting things to the Internet (IPv4/IPv6) • Embedded Web servers • Make devices part of the Web (using REST) • Model their function as RESTful resources WoT@SXSW10
  • 11. RESTful SunSPOTs • Properties and functions are RESTful resources • Devices/services become Web resources • URI-addressed • Links between them (hateoas) • Different representations (content negotiation) • Uniform interface (HTTP verbs, status codes) WoT@SXSW10
  • 12. Sunspots resources modeling • Services on embedded devices are adapted for resource oriented architectures • root: www.spotshost.com • spots list: www.spotshost.com/sunspots • spot #1: www.spotshost.com/sunspots/1 • sensors list: www.spotshost.com/sunspots/1/sensors • LEDs : www.spotshost.com/sunspots/1/actuators/leds • LED #1 : www.spotshost.com/sunspots/1/actuators/leds/led1 WoT@SXSW10
  • 13. Representations • XHTML ideal for browsing http://webofthings.com/spots • JSON ideal for parsing (& lightweight for device) http://webofthings.com/spots.json • XML ideal for business integration http://webofthings.com/spots.xml WoT@SXSW10
  • 14. Uniform interface • HTTP verbs • GET: current temperature • POST: add a timer • PUT: turn a device on/off • DELETE: delete a timer on a device • HTTP headers • Accept header for MIME types • Status codes (200 ok, 401 unauthorized) WoT@SXSW10
  • 15. DEMO - RESTful spots • Browsing the spot manager • Poster with content negotiation • Javascript app to change LEDs colors WoT@SXSW10
  • 17. Embedded REST is not always possible N on IP es vic de WoT@SXSW10
  • 18. For Wireless Sensor Networks (WSN)... WoT@SXSW10
  • 19. Example application: Energie Visible Web / Mobile  Interface GET http://10.1.1.5:8080/energievisible/ploggs/all Gateway  [{ (IP:10.1.1.5) "deviceName": "ComputerAndScreen", "currentWatts": 50.52, "KWh": 5.835, "maxWattage": 100.56 }, "deviceName": "Fridge", Sensors "currentWatts": 86.28., (Ploggs) "KWh": 4.421, "maxWattage": 288.92 }, {...}] Electric  appliances WoT@SXSW10
  • 20. DEMO - Energie Visible More? Webofthings.com/ energievisible WoT@SXSW10
  • 23. SAC: Social Access Controller • Access Control Lists not suited for real- world sharing • Leverage social networks for sharing devices • OAuth for delegated authentication WoT@SXSW10
  • 24. FAT: Friends and Things • GWT application on top of SAC • Log in using your social networks. • Discover, share, and advertise devices with friends. • Serves ATOM feeds of aggregated device data. WoT@SXSW10
  • 25. DEMO - FAT More? tinyurl.com/ ygy2kwb WoT@SXSW10
  • 26. The era of physical Mashups
  • 27. Real-world Web applications REST URL REST I AP Ja P ST va PH S RE cr ipt [hCp://www.pachube.com] [hCp://www.webothings.com/energievisible] [hCp://www.clickscript.ch] WoT@SXSW10
  • 28. Clickscript • Javascript-based visual mashup editor • Firefox plugin/Web app • Based on DOJO/jQuery www.clickscript.ch WoT@SXSW10
  • 29. Clickscript component csComponentContainer.push({ name : "cs.web.things.switch", description : "switch on or off", inputs : [{name: "IP",type: "cs.type.String"}, {name: "on/off", type: "cs.type.Boolean"}], outputs: [ ], image: "web/things/plogg.png", exec : function(state){ this.setAsync(); var ip = state.inputs.item(0).getValue(); var aurl = "http://"+ip+":8082/EnergieVisible/ploggs/008098e7cb71/status.html"; var onoff = state.inputs.item(1).getValue() ? "on" : "off"; var component = this; WoT@SXSW10
  • 30. jQuery HTTP request $.ajax({ url: aurl, type: "PUT", data: ({status : onoff}), success: function(html){ alert("status of Plogg : " +onoff); component.finishAsync(); }, error: function(msg){ alert("Error on: "+aurl); } }); Demo WoT@SXSW10
  • 32. Err, what about eventing & streaming ? The web wasn’t quite made for that... And querying & search?
  • 33. Here comes Real-Time Web • Scalable pub/sub for devices is needed • Many solutions (XMPP, etc....) • None really integrate with the Web • ATOM/ATOMpub is RESTful, but not push • Push Web technologies • Apply Web PUSH on devices • Comet & Web hooks • Bi-directional Web messaging (Websockets) WoT@SXSW10
  • 34. Device Discovery • Devices serve semantic metadata: Microformats • Similar to headers metadata for Web robots • Machine-readable user manual • Human-readable documentation • MF describe • Available resources and sub-resources • Accepted methods and their input/output • Keywords/tags • Eventing, rules, channels WoT@SXSW10
  • 35. <span class="service"> <span class="mftitle">Label: </span><span class="label"></span><br/> <span class="mftitle">Data Format: </span><span class="data-format">Integer</ span><br/> <span class="mftitle">Operation: </span><span class="operation"><br/> <span class="mftitle">Method: </span><span class="method">POST</span><br/> <span class="mftitle">Address: </span><span class="address">http://spotmanager: 8081/sunspots/Core2TestSpot/actuators/leds/led1</span><br/> <span class="mftitle">Input: </span><span class="input">Red</span><br/> <span class="mftitle">Output: </span><span class="output">The updated Resource</ span><br/> </span> WoT@SXSW10
  • 37. Hierarchic gateways binding: InfraWoT • Gateways find and integrate mf-enabled devices • Gateways bind to each other and form geographical hierarchies http://europe.eu/switzerland/zurich/eth/building4 http://usa.com/texas/austin/sxsw/ballroom/e • Based on OSGi and RESTlet WoT@SXSW10
  • 38. DEMO - InfraWoT WoT@SXSW10
  • 40. Browsable EPC Network Tag EPC • standardized Standards for Supply Chain identifiers Management • EPC Network set of RFID standards Reader • Global (closed?) network • EPCIS is the information server Reader Protocol • Standard WS-* interface • RESTful EPCIS EPCIS WoT@SXSW10
  • 41. RESTful EPCIS in a Nutshell • On top of Fosstrak EPCIS • Based on Jersey • Apache Abdera for Feeds • Faster than the original EPCIS (Duh!) WoT@SXSW10
  • 42. Widgets on top! • Business intelligence dashboard • Implemented in Javascript (GWT) • Integrating loads of Web resources: • Google Viz/Maps/Cal • Wikipedia • Twitter, etc. Demo WoT@SXSW10
  • 43. Take home notes • It’s time for devices to join the Web • Tradeoff features/performance • Huge opportunities for the Web of Things • Tools & best practices for Web-enabled things are needed • Web developers need to apply their skills to build a programmable world WoT@SXSW10
  • 44. Thanks for your attention ! www.webofthings.com