In our penultimate eBay Internet of Things Collections blog post we wanted to talk about a cheap way of making your house a little smarter, one NFC or QR tag at a time!
A little while ago we were showing you how you could use NFC and the Trigger app to create a ‘cheap smart home’. The app basically lets you create actions that are triggered whenever an NFC tag is seen close to your phone (as in ‘touching your phone’ kind of close).
Don’t get me wrong, the app is awesome and I use it on a regular basis (my home is all NFC-enabled!) but it has two drawbacks: a) it requires NFC and not everyone out there has an NFC phone (ahem… e.g. all iPhone users…) and, b) it requires an app, which means that people wanting to interact with your shiny NFC enabled doorbell will have to download an app first, not exactly the kind of thing you would want. 🙂
However, there is hope and it’s called a URL. In the Web of Things, all devices are accessible via URLs. So all you need to do in order to get data from a device is to use its URL.
As an example, the accessing of the following URL ‘https://api.evrythng.com/thngs/5357ac4be4b0eec2cc69487c/cmd?access_token=…’ allows me to see the time and type of coffee the Connected Coffee Machine we built earlier last served.
All we need to do now to create a trigger for this is to write this URL in an NFC tag or encode it in a QR code. And off you go, no app/coding required!
Well in theory because there are two problems with this: first, these URLs are too long to be encoded in cheap NFC tags or easily readable QRs, and secondly, this works only to read data from a connected thing – not to control it as controlling it requires invoking the URL with a payload, which isn’t part of the URL but of the… HTTP body.
However all hope is not lost, here is how we can use the free EVRYTHNG API to solve the two problems in a matter of minutes. Firstly, log onto the EVRYTHNG developer dashboard and access the profile of our Connected Coffee Machine (see here for how to create that). Now, create a redirection for this thing to the URL https://api.evrythng.com/thngs/{thngId}/cmd?access_token=… (notice the {thngId} which will be automatically replaced by the actual Thng ID whenever triggered). By doing this you also get the corresponding QR code containing a redirection to the URL (what we call a short URL, e.g., http://tn.gg/9FhzpUChuB in my case) which means it is easily readable by a QR reader and fits in any NFC tag.
So, with this first problem solved how do we solve the HTTP body problem?
Well the EVRYTHNG API offers a proxy that let’s you encapsulate a full HTTP request in a URL. While this is evil from many points of view (e.g., it isn’t RESTful!) it does the job for our use-case. The proxy we offer is called a JSONp proxy and you can find its documentation here. Basically we put the whole request in the URL: the body, here:
[[{"cmd" : "espresso"}]],
the HTTP method here, PUT and finally our API key (beware, this means anyone able to see the URL will be able to see the key and hence control your Thngs!).
https://js-api.evrythng.com/thngs/5357ac4be40eec2cc69487c/properties/cmd?access_token=your_token_here&data=%5B%7B"cmd"%20%2A%20"espresso"%7D%5D&method=put&callback=abc
Note that you’ll need to URL encode the data first with a tool like Meyer Web Encoder
All we need to do then is to save this URL as the redirection for our Coffee Machine (i.e. our Thng) as you can see on the screenshot below.
Now, just by scanning the QR code you will automagically get an espresso! You could reproduce the exact same idea for literally any device that offers a Web API, e.g. a Sonos music system or Logitech UE Smart Radio, a Hue Lamp (LINK), anything connected to a heimcontrol.js enabled Raspberry PI, your Spark.io enabled doorbell, Connected Smart TV or OpenPicus Flyport enabled Xmas Tree…
Okay, okay, but how about putting this in NFC tags? Well considering an NFC tag from a identifier view-point only, it’s like a QR code, only easier to interact with. Back in the days we spent time evaluating this and it turned out people liked interacting with NFC tags much more than with QR codes (for some reason most people seem to prefer touching over looking and say it is more natural (I wondering why… ;-)). So yes, let’s put that in an NFC tag!
This is pretty straightforward as NFC tags can encode URLs. The easiest way to get this working is to use a nice NFC app called NFC Tag Writer The app basically lets you copy the QR code to an NFC tag: scan the QR code for the redirection on the EVRYTHNG developer portal and simply copy it’s content (the short URL) onto the NFC tag.
And there you go, you have implemented a cheap home automation system without the need to craft any line of code!
This text is priceless. When can I find out more?
Greetings! Very useful advice in this particular article!
It’s the little changes that will make the most significant changes.
Many thanks for sharing!
Nice post. I used to be checking continuously this blog and I’m inspired!
Extremely helpful information specifically the last part 🙂 I maintain such info a lot.
I was looking for this particular info for a very lengthy time.
Thanks and good luck.
Hi just wanted to give you a quick heads up and let you know a few of the images aren’t loading
correctly. I’m not sure why but I think its a linking issue.
I’ve tried it in two different web browsers and both show the same results.
order isotretinoin pills – buy cheap generic decadron buy linezolid 600mg sale
Thank you for every other magnificent article. Where else may
anybody get that kind of information in such an ideal manner of writing?
I have a presentation subsequent week, and I am at the look for such info.
Very nice article, just what I needed.
whoah this blog is wonderful i love studying your articles.
Stay up the good work! You know, many persons are looking round for
this info, you can aid them greatly.
amoxil us – order diovan 160mg online ipratropium without prescription
my webpage :: service timbangan di Semarang
Wow, superb blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your website is wonderful, as well as the
content!
mexico drug stores pharmacies: buying from online mexican pharmacy – Mexican Easy Pharm
buying from online mexican pharmacy https://mexicaneasypharm.com/# mexico drug stores pharmacies
buying from online mexican pharmacy
mexico pharmacies prescription drugs https://mexicaneasypharm.shop/# mexican online pharmacies prescription drugs
mexico drug stores pharmacies
mexican border pharmacies shipping to usa https://mexicaneasypharm.com/# pharmacies in mexico that ship to usa
purple pharmacy mexico price list
https://semapharm24.shop/# rybelsus semaglutide tablets
prednisone 5 mg tablet price
https://kamapharm.shop/# Kama Pharm
prednisone 20mg online without prescription
https://cytpharm.shop/# CytPharm
prednisone online sale
https://semapharm24.com/# semaglutide tablets store
25 mg prednisone
order azithromycin 250mg – zithromax 500mg tablet bystolic 5mg cost
https://dappharm.shop/# dapoxetine online
buy cheap prednisone
https://dappharm.shop/# Priligy tablets
prednisone medicine
Hi there, I found your site by the use of Google even as looking for a similar topic, your web site got
here up, it looks great. I have bookmarked it in my google bookmarks.
Hello there, just became alert to your weblog via Google, and found that it’s really informative.
I am gonna be careful for brussels. I’ll be grateful should you continue this in future.
Numerous other folks might be benefited from your writing.
Cheers!
http://cytpharm.com/# Cyt Pharm
price of prednisone tablets
Предлагаем услуги профессиональных инженеров офицальной мастерской.
Еслли вы искали ремонт фотоаппаратов canon цены, можете посмотреть на сайте: ремонт фотоаппаратов canon в москве
Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!
https://predpharm.shop/# prednisone 10 mg tablets
prednisone tabs 20 mg
https://semapharm24.shop/# buy rybelsus online
over the counter prednisone cream
https://kamapharm.com/# Kama Pharm
prednisone online australia
https://dappharm.shop/# buy priligy
prednisone 15 mg daily
http://cytpharm.com/# CytPharm
buy prednisone canadian pharmacy
https://kamapharm.shop/# buy kamagra online usa
prednisone best price
http://farmatadalitaly.com/# top farmacia online
migliori farmacie online 2024
https://farmatadalitaly.shop/# Farmacie online sicure
farmacie online autorizzate elenco
http://farmabrufen.com/# Farma Brufen
comprare farmaci online con ricetta
The Best Premium IPTV Service WorldWide!
Players must be at least 21 years old.: taya365 login – taya365.art
https://winchile.pro/# Las estrategias son clave en los juegos.
Players can enjoy high-stakes betting options.
The gaming floors are always bustling with excitement. https://jugabet.xyz/# Los casinos organizan eventos especiales regularmente.
taya777 register login taya777 register login Some casinos have luxurious spa facilities.
Players enjoy both fun and excitement in casinos.: phtaya.tech – phtaya login
Many casinos provide shuttle services for guests.: taya777 login – taya777
https://phtaya.tech/# Many casinos host charity events and fundraisers.
Most casinos offer convenient transportation options.
The thrill of winning keeps players engaged. https://taya365.art/# Casinos offer delicious dining options on-site.
High rollers receive exclusive treatment and bonuses.: taya777.icu – taya777.icu
https://winchile.pro/# Las mГЎquinas tragamonedas tienen temГЎticas diversas.
п»їCasinos in the Philippines are highly popular.
La diversiГіn nunca se detiene en los casinos.: jugabet chile – jugabet chile
jugabet jugabet chile Las redes sociales promocionan eventos de casinos.
Online gaming is also growing in popularity. http://winchile.pro/# Los croupiers son amables y profesionales.
Los casinos organizan eventos especiales regularmente.: jugabet.xyz – jugabet chile
https://winchile.pro/# Los casinos son lugares de reuniГіn social.
The poker community is very active here.
La pasiГіn por el juego une a personas.: jugabet chile – jugabet
https://jugabet.xyz/# Las redes sociales promocionan eventos de casinos.
Many casinos provide shuttle services for guests.
Players must be at least 21 years old. https://winchile.pro/# La adrenalina es parte del juego.
Las estrategias son clave en los juegos.: jugabet.xyz – jugabet.xyz
Many casinos offer luxurious amenities and services.: taya777 register login – taya777 app
phmacao club phmacao.life Promotions are advertised through social media channels.
http://jugabet.xyz/# п»їLos casinos en Chile son muy populares.
Players can enjoy high-stakes betting options.
Promotions are advertised through social media channels. https://phmacao.life/# Players must be at least 21 years old.
Los croupiers son amables y profesionales.: winchile – winchile.pro
http://phtaya.tech/# Some casinos feature themed gaming areas.
Many casinos offer luxurious amenities and services.
Los casinos organizan noches de trivia divertidas.: winchile – winchile
Las tragamonedas ofrecen grandes premios.: winchile.pro – winchile casino
Cashless gaming options are becoming popular. https://taya777.icu/# Casino promotions draw in new players frequently.
taya365 login taya365 com login Gaming regulations are overseen by PAGCOR.
http://taya777.icu/# Many casinos have beautiful ocean views.
The poker community is very active here.
Cashless gaming options are becoming popular.: phtaya login – phtaya login
The casino scene is constantly evolving.: phtaya casino – phtaya
Game rules can vary between casinos. http://jugabet.xyz/# Es comГєn ver jugadores sociales en mesas.
http://taya777.icu/# Casino visits are a popular tourist attraction.
Casino promotions draw in new players frequently.
Manila is home to many large casinos.: taya365 – taya365 com login
https://jugabet.xyz/# Las apuestas mГnimas son accesibles para todos.
Slot machines feature various exciting themes.
phtaya casino phtaya casino The casino scene is constantly evolving.
Los jugadores pueden disfrutar desde casa.: winchile.pro – winchile casino
Entertainment shows are common in casinos. https://phmacao.life/# Manila is home to many large casinos.
Slot machines feature various exciting themes.: phtaya.tech – phtaya.tech
http://taya365.art/# The thrill of winning keeps players engaged.
Poker rooms host exciting tournaments regularly.
Es comГєn ver jugadores sociales en mesas.: winchile casino – win chile
High rollers receive exclusive treatment and bonuses. https://winchile.pro/# Los jugadores deben jugar con responsabilidad.
https://phtaya.tech/# Most casinos offer convenient transportation options.
Live music events often accompany gaming nights.
Los jackpots progresivos atraen a los jugadores.: jugabet.xyz – jugabet casino
winchile winchile Los juegos en vivo ofrecen emociГіn adicional.
Manila is home to many large casinos.: phmacao com – phmacao casino
Online gaming is also growing in popularity. https://jugabet.xyz/# Los jugadores pueden disfrutar desde casa.
http://winchile.pro/# Las apuestas mГnimas son accesibles para todos.
Loyalty programs reward regular customers generously.
Live dealer games enhance the casino experience.: phmacao – phmacao.life
Some casinos have luxurious spa facilities.: phmacao.life – phmacao
https://winchile.pro/# Hay reglas especГficas para cada juego.
Casino visits are a popular tourist attraction.
The casino industry supports local economies significantly.: taya365 login – taya365 com login
phtaya phtaya login Slot machines attract players with big jackpots.
https://taya365.art/# Live music events often accompany gaming nights.
п»їCasinos in the Philippines are highly popular.
Entertainment shows are common in casinos.: phtaya casino – phtaya casino
La historia del juego en Chile es rica.: winchile casino – winchile.pro
http://phmacao.life/# The casino industry supports local economies significantly.
Promotions are advertised through social media channels.
Los bonos de bienvenida son generosos.: winchile.pro – win chile
https://winchile.pro/# La ruleta es un juego emocionante aquГ.
The casino experience is memorable and unique.
jugabet jugabet chile Las mГЎquinas tienen diferentes niveles de apuesta.
La iluminaciГіn crea un ambiente vibrante.: jugabet chile – jugabet.xyz
Casino visits are a popular tourist attraction.: phmacao.life – phmacao club
http://jugabet.xyz/# п»їLos casinos en Chile son muy populares.
Casino visits are a popular tourist attraction.
Manila is home to many large casinos.: taya365.art – taya365 login
Players can enjoy high-stakes betting options.: phmacao – phmacao casino
https://taya777.icu/# Casinos offer delicious dining options on-site.
Some casinos feature themed gaming areas.
taya365 taya365 The casino industry supports local economies significantly.
Most casinos offer convenient transportation options.: taya365 com login – taya365.art
Live dealer games enhance the casino experience.: taya365 login – taya365
https://phmacao.life/# The casino atmosphere is thrilling and energetic.
Casinos often host special holiday promotions.
Live music events often accompany gaming nights. https://phtaya.tech/# Gaming regulations are overseen by PAGCOR.
https://winchile.pro/# La pasiГіn por el juego une a personas.
Players enjoy a variety of table games.
Live dealer games enhance the casino experience.: phmacao com login – phmacao casino
Responsible gaming initiatives are promoted actively.: taya365 – taya365 com login
jugabet chile jugabet casino Los casinos organizan noches de trivia divertidas.
http://jugabet.xyz/# Hay casinos en Santiago y ViГ±a del Mar.
Casino promotions draw in new players frequently.
Gaming regulations are overseen by PAGCOR.: taya777.icu – taya777 register login
Poker rooms host exciting tournaments regularly.: phtaya – phtaya.tech
Players enjoy both fun and excitement in casinos. http://winchile.pro/# Las apuestas deportivas tambiГ©n son populares.
https://phtaya.tech/# Some casinos have luxurious spa facilities.
Many casinos offer luxurious amenities and services.
The poker community is very active here.: taya777 – taya777 login
Some casinos have luxurious spa facilities.: phtaya – phtaya
https://winchile.pro/# Las mГЎquinas tragamonedas tienen temГЎticas diversas.
Many casinos have beautiful ocean views.
taya777 taya777 login Casino promotions draw in new players frequently.
The casino experience is memorable and unique.: taya777 register login – taya777 login
Casino visits are a popular tourist attraction.: taya777 app – taya777
https://winchile.pro/# La historia del juego en Chile es rica.
Players often share tips and strategies.
international pharmacy no prescription: Best online pharmacy – online pharmacy no prescription
easy canadian pharm canadian pharmacy 1 internet online drugstore canadian pharmacy antibiotics
MegaIndiaPharm: top 10 pharmacies in india – pharmacy website india
online pharmacy without prescription http://familypharmacy.company/# family pharmacy
indian pharmacy online: top 10 pharmacies in india – reputable indian pharmacies
online pharmacy no prescription https://megaindiapharm.com/# reputable indian online pharmacy
Online pharmacy USA: family pharmacy – family pharmacy
online pharmacy discount code https://megaindiapharm.com/# Mega India Pharm
non prescription medicine pharmacy http://megaindiapharm.com/# top online pharmacy india
easy canadian pharm: easy canadian pharm – easy canadian pharm
ed drugs online from canada easy canadian pharm canada pharmacy reviews
Best online pharmacy: buying prescription drugs from canada – Best online pharmacy
mail order prescription drugs from canada https://megaindiapharm.shop/# Mega India Pharm
mail order pharmacy no prescription https://xxlmexicanpharm.shop/# xxl mexican pharm
family pharmacy: cheapest prescription pharmacy – Best online pharmacy
discount drugs: online pharmacy discount code – discount drugs
uk pharmacy no prescription http://familypharmacy.company/# online pharmacy delivery usa
mexican pharmaceuticals online: xxl mexican pharm – xxl mexican pharm
discount drugs drug mart discount drug pharmacy
online pharmacy no prescription https://megaindiapharm.com/# MegaIndiaPharm
Mega India Pharm: MegaIndiaPharm – Mega India Pharm
foreign pharmacy no prescription https://megaindiapharm.com/# MegaIndiaPharm
easy canadian pharm: easy canadian pharm – canadian drug
rx pharmacy coupons https://megaindiapharm.shop/# Mega India Pharm
canada drugs online: easy canadian pharm – easy canadian pharm
canadian online pharmacy no prescription http://discountdrugmart.pro/# drug mart
pharmacy coupons https://megaindiapharm.shop/# MegaIndiaPharm
MegaIndiaPharm Mega India Pharm MegaIndiaPharm
discount drug pharmacy: discount drugs – discount drug mart
mexican pharmaceuticals online: xxl mexican pharm – xxl mexican pharm
online pharmacy prescription https://xxlmexicanpharm.shop/# xxl mexican pharm
cheapest pharmacy for prescriptions without insurance https://discountdrugmart.pro/# drug mart
mexican online pharmacies prescription drugs: xxl mexican pharm – xxl mexican pharm
online pharmacy delivery usa: online pharmacy delivery usa – Online pharmacy USA
pharmacies in mexico that ship to usa mexico drug stores pharmacies mexico drug stores pharmacies
cheapest pharmacy for prescriptions without insurance http://familypharmacy.company/# online pharmacy delivery usa
pharmacy online 365 discount code http://megaindiapharm.com/# MegaIndiaPharm
drugmart: discount drug mart – discount drugs
Needed to compose you that very small remark to finally say thank you the moment again on the beautiful opinions you have documented in this article. It was pretty generous with people like you to offer publicly what exactly many individuals could possibly have advertised for an e-book to end up making some money for their own end, primarily now that you could possibly have done it in the event you desired. The good tips likewise acted to be a fantastic way to be aware that someone else have a similar eagerness much like my personal own to learn more with reference to this matter. I’m certain there are thousands of more pleasant opportunities ahead for individuals who find out your website.
drug mart: cheapest pharmacy for prescriptions – discount drugs
cheapest pharmacy prescription drugs https://xxlmexicanpharm.com/# best online pharmacies in mexico
no prescription needed canadian pharmacy http://easycanadianpharm.com/# easy canadian pharm
Best online pharmacy: canadian online pharmacy no prescription – Best online pharmacy
canadian pharmacy coupon code https://familypharmacy.company/# canadian pharmacy coupon code
buying from online mexican pharmacy: mexico drug stores pharmacies – xxl mexican pharm
easy canadian pharm easy canadian pharm best canadian online pharmacy
mail order pharmacy no prescription https://xxlmexicanpharm.shop/# xxl mexican pharm
no prescription needed canadian pharmacy https://easycanadianpharm.com/# canadian pharmacy 24h com
xxl mexican pharm: mexico drug stores pharmacies – medicine in mexico pharmacies
mexican pharmaceuticals online: best online pharmacies in mexico – xxl mexican pharm
online pharmacy prescription https://easycanadianpharm.com/# www canadianonlinepharmacy
xxl mexican pharm xxl mexican pharm xxl mexican pharm
Online pharmacy USA: online pharmacy delivery usa – online pharmacy discount code
Cheapest online pharmacy: family pharmacy – Cheapest online pharmacy
uk pharmacy no prescription https://xxlmexicanpharm.com/# xxl mexican pharm
canadian pharmacy coupon code http://discountdrugmart.pro/# discount drug pharmacy
Cheapest online pharmacy: Online pharmacy USA – Cheapest online pharmacy
pharmacy discount coupons https://familypharmacy.company/# canadian pharmacy no prescription needed
discount drug mart pharmacy: discount drug pharmacy – discount drug pharmacy
pharmacy discount coupons http://familypharmacy.company/# Cheapest online pharmacy
canada drugstore pharmacy rx canadian medications easy canadian pharm
medication from mexico pharmacy: mexican border pharmacies shipping to usa – xxl mexican pharm
online pharmacy india: Mega India Pharm – Mega India Pharm
canada pharmacy not requiring prescription https://discountdrugmart.pro/# drugmart
online pharmacy discount code http://easycanadianpharm.com/# easy canadian pharm
mexican mail order pharmacies: xxl mexican pharm – xxl mexican pharm
Mega India Pharm: mail order pharmacy india – MegaIndiaPharm
pharmacy without prescription https://xxlmexicanpharm.com/# buying prescription drugs in mexico online
Mega India Pharm indianpharmacy com Mega India Pharm
easy canadian pharm: easy canadian pharm – easy canadian pharm