ebay’s IoT Collections: The Mashable Web of Things Home

Welcome to our final blog from the eBay Internet of Things collections series!

In our penultimate post in this series, we were showing you how to implement a low-tech version of home automation using NFC and the EVRYTHNG engine.

This time we’ll look at the bleeding-edge version of our connected home! A home where appliances can be piped together easily to create a dynamically reconfigurable home. Just like you can use IFTTT or Yahoo Pipes to create smart workflows for your data (e.g. if I tweet this, post this to my LinkedIn profile and update this Google Spreadsheet) you should be able to configure the real world just as it suits you. This is what we call: Physical Mashups, i.e. the fast and easy composition of the services of physical devices to create unforeseen applications that meet our needs! Sorry for getting over-excited here but Physical Mashups were a big chunk of my PhD 🙂

The Web is mashable mainly because of APIs (Application Programming Interfaces). This is a little revolution that started a few years ago whereby Websites slowly but steadily started to get APIs, making them Web apps rather than plain sites, the Programmable Web directory is here to witness it! So, the first step in building our futuristic house is to make sure all our devices are accessible via an API (a REST API Link), either directly or indirectly through a gateway or online service like the EVRYTHNG API.

While we won’t be able to review all appliances you have in your home here let us discuss three cases to see how they fit in the picture:

1) First, appliances that come directly with a Web API like the Hue Lamps we talked about in another recipe. These are very easy to integrate to Physical Mashups as they basically tick all the boxes: they are accessible on the IP network and offer a REST API!

2) Secondly, appliances that are hooked up to or proxied by a Web of Things Cloud service such as the EVRYTHNG API. As an example, consider the Smart Coffee Machine we created in a previous post in this series. These are also easy to integrate because the cloud service offers a Web API for the devices.

3) Thirdly, devices that are neither offering a Web API directly, nor through a Cloud service (how dare they in 2014? ;-)). A good example would be all the not-so-smart devices that you have at home like your plain-old-lamps, fans, kettles, old-school-TVs, etc. Well, for those not all hope is lost: we can still make them smart at least at the basic level (on/off) without too much effort. For this we will hack an 433Mhz AM power-switch transmitter, no clue what this is? Well it is a set usually containing a remote control and a number of radio powered power-switches like the one in our collection.

 

transmitter-connected-1024x768

 

Then, thanks to the following tutorial we connect a $5 RF transmitter to an Arduino then connect these to a Raspberry Pi turning it into a 433Mhz RF remote control!

We finally need to Web-enable this so that we can trigger the Raspberry PI “remote control” by means of REST calls. There are several ways of doing this like the very neat heimcontrol.js or the more featureful Webiopi.

Regardless of which one you pick you should now be able to turn on and off literally any device connected to your RF power-sockets!

Last but not least, the mashability comes into play: “How do you wire all these devices together in the same way that you would create Web Mashups?” Well this is where Physical Mashup editors come handy: they let you rewire your home visually! Let me introduce you to two of them: WoT-a-Mashup is a prototyping tool that lets you create your mashups in a snap, directly from your browser (currently only Firefox is supported). It is built on ClickScript, an IDE and great visual language designed to teach kids the art of programming, so it is quite easy to grasp.

Basically each resource you want to integrate into your mashup (including the physical ones!) is a little box that accepts a number of inputs and has 0 or 1 output.

We created two simple EVRYTHNG modules, one that lets you read a property of a Thng (see here) and one that lets you update the property of a Thng.

Now, we can use these two simple modules and combine them with the default modules to create a workflow – workflow below is an example of combining modules. It fetches temperature data that you’ve pushed to the EVRYTHNG API. You can find code examples of how to do this with an OpenPicus Flyport (here) or an Arduino (here).

Then, we check if the temperature is greater than 10; if it is, we send an off command to a device controlled by the EVRYTHNG API (e.g., a heater).

wot-a-mashup

We can also create the same type of workflow to include our Raspberry Pi remote controlled devices. All we need to do is to create our own mashup module. Let’s look at the code of the simple EVRYTHNG module I created as an example.

Basically, we create two simple Javascript methods, one for reading the property (GET), one for updating it (PUT). Both methods also contain the descriptions of the expected inputs and outputs of our module. We then place this file in a folder underneath the /lib folder and name it init.js and off we go, we have created a new module!

This tool is great for quick-prototyping but because it runs your workflows in the browser, it isn’t really a viable option for long-running mashups and real-world use cases.

This is when the great Node-RED enters the game! Node-RED provides a browser-based mashup editor that makes it easy to wire together flows using the wide range nodes in the palette, but it actually runs the mashups on Node.js which means that even when closing your browser they’ll still run!

Node-RED is slightly more complicated to use than the Clickscript language, but it offers a lot more options and is truly tailored for the IoT. To interact with the EVRYTHNG API you could simply use the provided HTTP module, but to make it even easier, we created a Node-RED library for the EVRYTHNG API which you can download and install from here. Note that it currently only offers the option to read and update EVRYTHNG Properties, but we’ll add more features soon!

You can see a sample workflow below where we connected our EVRYTHNG-connected Smart Coffee Machine to Twitter so that if we send a tweet with a special hashtag, we get our favorite coffee served straight away!

node-red

Adding our Raspberry Pi remote controlled devices is as easy as pi(e)! Indeed, because they are behind a REST API, all we need to do is to use the HTTP module to issue the REST calls. Finally, we need a place for our workflows to run. Fortunately, Node-RED runs can be installed on a Rasberry Pi as well (see here), so we can actually push it to our Pi where the workflows will be running until we terminate them.

Here we go, we closed the loop and can now start rewiring our home, thanks to the Web of Things and Physical Mashups!

157 Responses

  1. DonaldLaf says:

    where can i buy ed pills ed online prescription cost of ed meds

  2. Brettamipt says:

    Buy Cialis online: Generic Cialis without a doctor prescription – Buy Cialis online

  3. RogerBop says:

    http://fastpillseasy.com/# buy ed pills online

  4. Barrysoork says:

    what is the cheapest ed medication: cheap cialis – how to get ed meds online

  5. DonaldLaf says:

    online erectile dysfunction FastPillsEasy ed med online

  6. Brettamipt says:

    ed meds on line: FastPillsEasy – order ed meds online

  7. RogerBop says:

    https://fastpillseasy.com/# generic ed meds online

  8. Barrysoork says:

    best online ed treatment: cheap cialis – online ed pills

  9. DonaldLaf says:

    Buy generic 100mg Viagra online FastPillsForMen.com Viagra without a doctor prescription Canada

  10. Brettamipt says:

    generic sildenafil: FastPillsForMen – Viagra online price

  11. DonaldLaf says:

    sildenafil online Buy Viagra online cheap cheap viagra

  12. Brettamipt says:

    cialis for sale: Max Pills For Men – Generic Cialis without a doctor prescription

  13. RogerBop says:

    http://fastpillseasy.com/# low cost ed meds online

  14. Barrysoork says:

    Cheap generic Viagra: buy viagra online – buy Viagra over the counter

  15. RogerBop says:

    http://fastpillsformen.com/# Viagra without a doctor prescription Canada

  16. DonaldLaf says:

    buy ed medication cheap cialis buy ed medication online

  17. CharlesStact says:

    https://fastpillseasy.com/# online ed meds

  18. Brettamipt says:

    Cheap generic Viagra online: cheap viagra – Buy Viagra online cheap

  19. RogerBop says:

    http://fastpillsformen.com/# Cheapest Sildenafil online

  20. Barrysoork says:

    cheap viagra: buy viagra online – Viagra online price

  21. DonaldLaf says:

    Buy Tadalafil 5mg Max Pills For Men п»їcialis generic

  22. RogerBop says:

    https://maxpillsformen.com/# Cialis over the counter

  23. Brettamipt says:

    Cialis without a doctor prescription: Cialis over the counter – cheapest cialis

  24. Rileywew says:

    Viagra * Cialis * Levitra

    All the products you are looking suitable are currently at one’s disposal for the duration of 1+1.

    4 more tablets of one of the following services: Viagra * Cialis * Levitra

    https://vkdnjaos.com

  25. CharlesStact says:

    https://fastpillsformen.com/# Cheap generic Viagra online

  26. DonaldLaf says:

    Viagra without a doctor prescription Canada FastPillsForMen.com Viagra generic over the counter

  27. Barrysoork says:

    Cheap generic Viagra online: Fast Pills For Men – viagra canada

  28. Brettamipt says:

    buying ed pills online: FastPillsEasy – cheapest ed online

  29. RogerBop says:

    https://maxpillsformen.com/# Generic Cialis without a doctor prescription

  30. CharlesStact says:

    https://fastpillsformen.com/# viagra without prescription

  31. DonaldLaf says:

    cheapest cialis Generic Cialis without a doctor prescription Tadalafil Tablet

  32. RogerBop says:

    http://maxpillsformen.com/# п»їcialis generic

  33. Brettamipt says:

    generic sildenafil: buy viagra online – Cheap Sildenafil 100mg

  34. RogerBop says:

    https://fastpillseasy.com/# online ed treatments

  35. Barrysoork says:

    Cialis 20mg price in USA: MaxPillsForMen.com – Tadalafil price

  36. CharlesStact says:

    http://maxpillsformen.com/# Cialis without a doctor prescription

  37. DonaldLaf says:

    affordable ed medication cheap cialis erectile dysfunction online prescription

  38. RogerBop says:

    http://fastpillsformen.com/# Sildenafil Citrate Tablets 100mg

  39. Brettamipt says:

    Tadalafil price: Generic Cialis without a doctor prescription – Cialis over the counter

  40. CharlesStact says:

    http://fastpillseasy.com/# best ed medication online

  41. DonaldLaf says:

    sildenafil over the counter buy viagra online Viagra Tablet price

  42. Barrysoork says:

    erectile dysfunction pills for sale: FastPillsEasy – buy ed meds online

  43. Brettamipt says:

    Viagra tablet online: cheapest viagra – Cheap generic Viagra online

  44. CharlesStact says:

    http://fastpillseasy.com/# boner pills online

  45. DonaldLaf says:

    ed medication online fast pills easy ed medicines online

  46. Brettamipt says:

    viagra canada: FastPillsForMen – viagra canada

  47. Barrysoork says:

    Generic Tadalafil 20mg price: Max Pills For Men – Generic Cialis price

  48. CharlesStact says:

    https://fastpillseasy.com/# get ed meds today

  49. DonaldLaf says:

    ed online meds cheap cialis online erectile dysfunction

  50. Brettamipt says:

    Generic Cialis without a doctor prescription: MaxPillsForMen.com – Generic Cialis without a doctor prescription

  51. CharlesStact says:

    http://fastpillseasy.com/# online erectile dysfunction medication

  52. DonaldLaf says:

    Generic Tadalafil 20mg price Generic Cialis without a doctor prescription cheapest cialis

  53. Rileywew says:

    Viagra * Cialis * Levitra

    All the products you are looking suitable are currently close by in support of 1+1.

    4 more tablets of identical of the following services: Viagra * Cialis * Levitra

    https://vkdnjaos.com

  54. WallaceHit says:

    guvenilir slot siteleri: slot oyunlar? puf noktalar? – az parayla cok kazandiran slot oyunlar?

  55. Frankrep says:

    pronet giriЕџ: guvenilir casino siteleri – Deneme Bonusu Veren Siteler

  56. Davidler says:

    http://denemebonusuverensiteler25.com/# deneme bonusu veren yeni siteler

  57. BradleyApack says:

    sweet bonanza kazanma saatleri sweet bonanza guncel sweet bonanza yorumlar

  58. Davidler says:

    http://slotsiteleri25.com/# slot casino siteleri

  59. Davidler says:

    https://casinositeleri25.com/# canl? casino siteleri

  60. WallaceHit says:

    sweet bonanza oyna: sweet bonanza oyna – sweet bonanza guncel

  61. BradleyApack says:

    slot siteleri az parayla cok kazandiran slot oyunlar? en kazancl? slot oyunlar?

  62. JasonJogma says:

    http://sweetbonanza25.com/# sweet bonanza kazanma saatleri

  63. Davidler says:

    http://casinositeleri25.com/# deneme bonusu veren casino siteleri

  64. Frankrep says:

    deneme bonusu veren siteler yeni: yat?r?ms?z deneme bonusu veren siteler – denemebonusuverensiteler25

  65. WallaceHit says:

    yat?r?ms?z deneme bonusu veren siteler: denemebonusuverensiteler25 – yat?r?ms?z deneme bonusu veren siteler

  66. JasonJogma says:

    https://sweetbonanza25.com/# sweet bonanza slot

  67. Frankrep says:

    denemebonusuverensiteler25: yeni deneme bonusu veren siteler – deneme bonusu veren siteler yeni

  68. BradleyApack says:

    guvenilir casino siteleri deneme bonusu veren casino siteleri en guvenilir casino siteleri

  69. WallaceHit says:

    Casino Siteleri: Canl? Casino Siteleri – casino bahis siteleri

  70. JasonJogma says:

    https://casinositeleri25.com/# canl? casino siteleri

  71. BradleyApack says:

    deneme bonusu veren yeni siteler yat?r?ms?z deneme bonusu veren siteler deneme bonusu veren siteler

  72. WallaceHit says:

    yat?r?ms?z deneme bonusu veren siteler: deneme bonusu veren siteler yeni – deneme bonusu veren yeni siteler

  73. JasonJogma says:

    http://casinositeleri25.com/# 1xbet bonus Г§evrim ЕџartlarД±

  74. Frankrep says:

    sweet bonanza: sweet bonanza guncel – sweet bonanza slot

  75. BradleyApack says:

    Deneme Bonusu Veren Siteler deneme bonusu veren casino siteleri Deneme Bonusu Veren Siteler

  76. JasonJogma says:

    http://denemebonusuverensiteler25.com/# denemebonusuverensiteler25

  77. WallaceHit says:

    deneme bonusu veren siteler: denemebonusuverensiteler25 – deneme bonusu veren siteler yeni

  78. Frankrep says:

    en cok kazand?ran slot oyunlar?: en kazancl? slot oyunlar? – en kazancl? slot oyunlar?

  79. BradleyApack says:

    az parayla cok kazandiran slot oyunlar? slot casino siteleri slot casino siteleri

  80. WallaceHit says:

    sweet bonanza slot: sweet bonanza demo oyna – sweet bonanza slot

  81. JasonJogma says:

    https://sweetbonanza25.com/# sweet bonanza guncel

  82. OrvillePed says:

    slot siteleri: slot oyunlar? – az parayla cok kazandiran slot oyunlar?
    orisbet giriЕџ

  83. BradleyApack says:

    sweet bonanza oyna sweet bonanza kazanma saatleri sweet bonanza demo oyna

  84. Frankrep says:

    en cok kazand?ran slot oyunlar?: en cok kazand?ran slot oyunlar? – slot siteleri

  85. WallaceHit says:

    deneme bonusu veren yeni siteler: deneme bonusu veren yeni siteler – denemebonusuverensiteler25

  86. BradleyApack says:

    canl? casino siteleri Canl? Casino Siteleri deneme bonusu veren casino siteleri

  87. JasonJogma says:

    http://denemebonusuverensiteler25.com/# yeni deneme bonusu veren siteler

  88. WallaceHit says:

    slot oyunlar?: slot oyunlar? – guvenilir slot siteleri

  89. Frankrep says:

    az parayla cok kazandiran slot oyunlar?: en cok kazand?ran slot oyunlar? – guvenilir slot siteleri

  90. Douglasenuro says:

    I’ve started using CBD gummies like https://www.cornbreadhemp.com/collections/full-spectrum-cbd-oil , and they’ve made a noticeable quarrel in my routine. They’re casually to turn to account, style monstrous, and yield a unembellished character to incorporate CBD into my day. I’ve originate they support me relax and enhance my sleep after a extensive daytime, which has been a colossal benefit. The in keeping CBD dosage in each gummy is a humongous benefit for managing intake. If you’re making allowance for CBD, gummies are an excellent opportunity to start with—honourable draw up tried you settle upon a incorruptible disgrace for the best results!

  91. BradleyApack says:

    sweet bonanza giris sweet bonanza guncel sweet bonanza giris

  92. WallaceHit says:

    en kazancl? slot oyunlar?: slot casino siteleri – en cok kazand?ran slot oyunlar?

  93. Frankrep says:

    sweet bonanza slot: sweet bonanza oyna – sweet bonanza oyna

  94. BradleyApack says:

    sweet bonanza sweet bonanza demo oyna sweet bonanza yorumlar

  95. WallaceHit says:

    guvenilir slot siteleri: en cok kazand?ran slot oyunlar? – slot casino siteleri

  96. BradleyApack says:

    deneme bonusu veren siteler yeni deneme bonusu veren siteler yeni deneme bonusu veren siteler

  97. JasonJogma says:

    http://denemebonusuverensiteler25.com/# deneme bonusu veren yeni siteler

  98. Frankrep says:

    Casino Siteleri: canl? casino siteleri – deneme bonusu veren casino siteleri

  99. WallaceHit says:

    slot oyunlar?: en kazancl? slot oyunlar? – az parayla cok kazandiran slot oyunlar?

  100. BradleyApack says:

    canl? casino siteleri Canl? Casino Siteleri guvenilir casino siteleri

  101. CarrollAdhex says:

    https://mexicaneasypharm.com/# mexican rx online
    northwest pharmacy canada

  102. CurtisPit says:

    Mexican Easy Pharm: pharmacies in mexico that ship to usa – mexican drugstore online

  103. AndreSlack says:

    canadian mail order pharmacy https://canadianmdpharm.com/# canadian pharmacy ltd
    world pharmacy india

  104. BrandonPoush says:

    IndianCertPharm: buy prescription drugs from india – Indian Cert Pharm

  105. Larryhab says:

    Indian pharmacy that ships to usa Best Indian pharmacy IndianCertPharm

  106. AndreSlack says:

    canadian compounding pharmacy https://indiancertpharm.com/# Indian Cert Pharm
    Online medicine home delivery

  107. CurtisPit says:

    Online pharmacy: IndianCertPharm – indian pharmacy paypal

  108. CarrollAdhex says:

    https://canadianmdpharm.com/# adderall canadian pharmacy
    reputable canadian online pharmacies

  109. BrandonPoush says:

    Online medicine: Indian Cert Pharm – Indian pharmacy international shipping

  110. Qwtbmq says:

    accutane 10mg pill – zyvox 600mg usa order linezolid generic

  111. AndreSlack says:

    buying from canadian pharmacies https://mexicaneasypharm.com/# Mexican Easy Pharm
    indianpharmacy com

  112. CurtisPit says:

    pet meds without vet prescription canada: CanadianMdPharm – canadian drug prices

  113. Larryhab says:

    Mexican Easy Pharm Mexican Easy Pharm mexico drug stores pharmacies

  114. BrandonPoush says:

    best canadian pharmacy online: CanadianMdPharm – canadian pharmacy tampa

  115. AndreSlack says:

    legit canadian online pharmacy https://mexicaneasypharm.shop/# Mexican Easy Pharm
    india pharmacy

  116. AndreSlack says:

    drugs from canada https://mexicaneasypharm.com/# mexican pharmaceuticals online
    best online pharmacy india

  117. CurtisPit says:

    Indian pharmacy international shipping: Best Indian pharmacy – IndianCertPharm

  118. BrandonPoush says:

    indian pharmacy paypal: Indian Cert Pharm – Online pharmacy

  119. Iyqzws says:

    amoxicillin pill – diovan 80mg pills combivent 100 mcg pill

  120. AndreSlack says:

    reliable canadian pharmacy https://canadianmdpharm.com/# canadian pharmacy online reviews
    top 10 pharmacies in india

  121. Larryhab says:

    buying prescription drugs in mexico mexican drugstore online reputable mexican pharmacies online

  122. CurtisPit says:

    mexico pharmacies prescription drugs: Mexican Easy Pharm – Mexican Easy Pharm

  123. BrandonPoush says:

    Indian Cert Pharm: Indian Cert Pharm – Online pharmacy

  124. CurtisPit says:

    IndianCertPharm: Online pharmacy – Indian pharmacy that ships to usa

  125. BrandonPoush says:

    www canadianonlinepharmacy: legitimate canadian mail order pharmacy – legitimate canadian online pharmacies

  126. AndreSlack says:

    canada drug pharmacy https://mexicaneasypharm.shop/# purple pharmacy mexico price list
    Online medicine order

  127. CurtisPit says:

    Indian pharmacy international shipping: Indian Cert Pharm – online pharmacy india

  128. BrandonPoush says:

    pharmacy canadian: canada drugs online – legit canadian pharmacy online

  129. CurtisPit says:

    Indian pharmacy international shipping: Online medicine – Online medicine

  130. AndreSlack says:

    canadian world pharmacy https://indiancertpharm.com/# Online medicine
    world pharmacy india

  131. CarrollAdhex says:

    https://indiancertpharm.com/# Online medicine
    canadianpharmacy com

  132. Larryhab says:

    Online pharmacy indian pharmacy Online pharmacy

  133. CurtisPit says:

    Indian Cert Pharm: Online pharmacy – Online pharmacy

  134. BrandonPoush says:

    legal to buy prescription drugs from canada: Canadian Md Pharm – online canadian pharmacy

  135. CurtisPit says:

    Mexican Easy Pharm: Mexican Easy Pharm – Mexican Easy Pharm

  136. AndreSlack says:

    best mail order pharmacy canada https://canadianmdpharm.com/# canada drugs online review
    top online pharmacy india

  137. BrandonPoush says:

    buy prescription drugs from canada cheap: canadapharmacyonline legit – the canadian drugstore

  138. CurtisPit says:

    reddit canadian pharmacy: CanadianMdPharm – canadian pharmacy 365

  139. BrandonPoush says:

    mexican border pharmacies shipping to usa: buying prescription drugs in mexico – mexican rx online

  140. CurtisPit says:

    purple pharmacy mexico price list: Mexican Easy Pharm – Mexican Easy Pharm

  141. BrandonPoush says:

    pharmacies in mexico that ship to usa: Mexican Easy Pharm – medicine in mexico pharmacies

  142. CurtisPit says:

    canadian pharmacy store: CanadianMdPharm – canadian pharmacy scam

  143. BrandonPoush says:

    canadian 24 hour pharmacy: canada pharmacy world – canadian drug prices

  144. CurtisPit says:

    Indian Cert Pharm: Best Indian pharmacy – best india pharmacy

  145. CarrollAdhex says:

    https://indiancertpharm.com/# Indian Cert Pharm
    legitimate canadian pharmacy

  146. BrandonPoush says:

    Indian Cert Pharm: indian pharmacy – Indian Cert Pharm

  147. CurtisPit says:

    Online pharmacy: indian pharmacy – Best online Indian pharmacy

  148. BrandonPoush says:

    Online medicine: Best Indian pharmacy – Indian Cert Pharm

  149. AndreSlack says:

    canadian pharmacy cheap https://canadianmdpharm.online/# canadian pharmacy service
    indianpharmacy com

  150. CurtisPit says:

    Online pharmacy: Online medicine – IndianCertPharm

Leave a Reply

Your email address will not be published. Required fields are marked *