,

Connect anything to thethings.iO IoT platform with HTTP/S and your JSON

On this post we would like to show you how to connect anything using HTTP/S and your JSON. We used to get contacted by IoT developers and companies who were having devices already connected with their own JSON structures. Usually they wanted to move to thethings.iO IoT platform, so this is the reason why we created the HTTP subscription gateways.

The HTTP subscription gateways enables developers to send data to a unique URL without need to deal with thingTokens, activations among others. We provision automagically all the devices identified with an ID or name to thethings.iO in a simple way.

Find below the video tutorial with an example or find here the HTTP subscription documentation.

Step by Step tutorial

First of all, create a thethings.iO IoT platform account. Go to https://thethings.io and follow the steps. In addition, try to fill the information during the first session so we will be able to help you more.

After that, go to create a Product at the Things Manager. Select JSON as a type of product. Once created, then click on Details of the created Product.

Now it’s important to learn to create the subscription URL. The base path for the subscription is:

https://subscription.thethings.io/http/{productId}/{hash}

Get the Product ID and the Hash defined on the Details box of your recently created Product at thethings.iO. With these values you will be able to generate the correct HTTP subscription URL. The subscription URL will be followed by the parameters idname and fname. The idname parameter will define the name that the ID of the device will have inside the JSON coming in the body (e.g. in LoRa dev_id, in Sigfox idname, etc). The fname parameter will define the name of the function developed on Cloud Code that will parse the JSON sent in the body (e.g. http_parser). The final URL should be something like this:

https://subscription.thethings.io/http/{productId}/{hash}?idname={idname}&fname={fname}

After that, this is the moment to create the function on Cloud Code to parse the JSON sent to thethings.iO. Let’s imagine that you are going to send the JSON file:


{"id": "1234", "temperature": "10"}

For that type of JSON you will need a function on Cloud Code like this:

function main(params, callback){

var result = [
{
"key": "temp",
"value": params.payload.temperature
}
];

callback(null, result);
}

All the data coming at the JSON is coming into the object params.payload. That means that if you have a complex JSON, just use the object params.payload to find all your data and store it at thethings.iO with the key-value JSON needed at thethings.iO.

From now, you will be receiving the temperature and store it as temp, so you are ready to create a dashboard and more with thethings.iO. BTW at the video we used Postman to simulate a device sending data. Nevertheless we have clients using this technique to connect LoRa connectivity services, Sigfox, BLE gateways and others.

Use thethings.iO the most simple enterprise IoT platform. And feel free to send us questions and contact us in case we have to help you more!

, ,

Internet of Things; Why? Because we can…

IoT - The Big Bang Theory

Everyone knows the comedy show The Big Bang Theory. We knew everyone was talking about the Internet of Things, but to our surprise, an episode of this hit comedy show suggests the main characters, Leonard and Sheldon, connect their flat lights and stereo using an X-10 system.

You can notice this in the video:

 

For anyone out there wondering why this is done, the most famous nerds of The Big Bang Theory have a simple answer for you: “Because we can.”

Technology is always growing and advancing for one main reason: convenience and simplicity. We use technology to make our lives easier. We are always looking for ways to efficiently use our time and technology provides that incentive for us. The Internet of Things also does this; it has become a big part of our daily lives whether we realize it or not.

We provide simple ways to help companies and developers connect to the internet in a timely and easy manner through our APIs.

Don’t forget to follow us on Twitter and be sure to check out our #IoTFriday blog!

 

, ,

How To Start With Internet of Things #IoTFriday

Welcome to the new edition of IoTFriday at thethings.iO. A lot of people have ask us how to get started with the Internet of Things. Today I would like to talk about what you can learn or do to get into the IoT. It depends on what you do, ideas you have and what you want to learn. Enjoy the new #IoTFriday video.

During this #IoTFriday, we proposed 3 different situations depending on if you are a designer, a programmer, or a business man with a lot of amazing ideas.

If you are a designer our suggestions are to design something useful that solves a problem in your daily life. After that, print your design with a 3D printer. Finally, learn how to code to continue working on your solution.

 

If you are a developer our first suggestion is first to buy electronics such as Arduino, Raspberry Pi or Intel Edison and begin the coding process. Learn how these IoT platforms work;  it’s quite simple and the most important part is to have fun programming things. Finally, developers always need to meet a designer.

If you are a business person, create a nice idea and think of the best way to scale it. If you have a business idea related with the Internet of Things that scales, meet with developers and designers to make it happen.

Feel free to write in the comment area below if you have any questions or comments! We will do our best to respond promptly. If you need to test our back-end solution, write us a message to thethings.iO.

Don’t forget to follow us on Twitter and be sure to check out our #IoTFriday weekly blog!

,

Learn Electric Imp in 5 minutes #IoTFriday

Welcome at the new edition of the IoTFriday at thethings.iO. Today let me show you a quick overview about how to learn Electric Imp, in a little bit more than 5 minutes. With this quick introduction we show how to blink up the Electric Imp, what is Squirrel and how to program devices and agents. Enjoy!

BTW now you can connect Electric Imp with thethings.iO with the official library!

The main part of the Electric Imp platform are the Imps. The Imps are these tiny modules (some with SD card size if they are developers edition) with CPU, memory and WiFi plugged with electronics through a shield and the GPIOs for sensors and actuators.

To blink up the imps and connect them to the Internet, is needed to BlinkUp them with a patented system that flashes the Electric Imps through the mobile device display. That means, that the WiFi SSID and password is transmitted through blinks.

These imps are connected to the Electric Imp cloud through the WiFi, and every one has an agent running on the cloud that attends the events that affect the device.

Electric Imp SD card developer edition

Electric Imp SD card developer edition

The Web IDE from Electric Imp is simple but it works effectively. The console and the agents are running very well (usually). During next days we are going to publish theThings.IO Electric Imp libraries and code examples.

Sign up at thethings.iO and eel free to send us comments and feedback and even topics for the next IoTFriday

,

Learn Arduino in 5 minutes #IoTFriday

Welcome to another video of IoTFriday here at thethings.iO. Today we plan to give you a quick overview about Arduino.

 

What is Arduino

Arduino was born in Italy in 2005 by a group from the Interaction Design Institute Ivrea (IDII) who wanted a board for its design students to use to build interactive projects during their thesis at the institute.

Arduino Uno - R3

Arduino Uno – R3

Arduino is open hardware and open source. The combination of both plus the simplicity of the product, created an entire ecosystem around Arduino with multiple shields, libraries and add-ons that everyone could build from their house or lab.

Arduino library at thethings.iO

At thethings.iO we published the Arduino library for thethings.iO and we made several examples about how to connect Arduino with thethings.iO using HTTP and MQTT. Some of these examples are built with Arduino Uno and Ethernet shield, WiFi shield (ESP8266, C3300 and Yun) and GPRS (Arduino GSM) in our github account.

Please send us any comments or feedback if you connect Arduino Uno or Arduino Yún at thethings.iO and don’t forget to follow us on Twitter and be sure to check out our #IoTFriday blog!

, ,

Learn Intel Edison In 5 Minutes #IoTFriday

Welcome to the new edition of IoTFriday at theThings.IO. Today we want to show you how to start a project with the new platform made by Intel, the Intel Edison, in just 5 minutes.

A new DIY platform of Internet of Things is on the block! After being announced at the last CES 2013 with a lot of high expectations, Intel Edison has finally arrived! We are happy to say that the final result lived up to these expectations. With the Intel Edison, Intel is pushing their new processor, Intel Atom, to focus on the Internet of Things with a very small energy consumption.

Read more

,

Does Your Thing Need An Open API? #IoTFriday

Welcome to the newest edition of the  IoTFriday segment at thethings.iO. Today, we are trying to answer some questions we have been receiving asking why one should open their devices on API.

 

Remember that the Internet of Things is a bottom-up technology wave, much like the Web was some years ago. Most of the innovation and new features are coming from makers, hackers and new startups. Opening your things’ APIs allows you to build new features on the top of your things. That means more functionalities for you, which in turn leads to a smarter device and finally brings you more revenue due to third party people.

What do you think? Feel free to send us your feedback and comments!

Don’t forget to follow us on Twitter and be sure to check out our #IoTFriday blog!

,

Oktoberfest of Things – #IoTFriday

Welcometo IoTFriday at thethings.iO. This weekend Oktoberfest will be taking place in Munich. For those of you who have never been, it’s a huge, gorgeous party with lots of food and beer. We get the opportunity to co-organize the 3rd edition of the Oktoberfest of Things hackathon. The main goal is to connect Oktoberfest beers to the Internet.

Today at the IoTFriday I’m going to talk about the Oktoberfest of Things and how to connect beers to the Internet.

Oktoberfest of Things whiteboard

Oktoberfest of Things whiteboard

At thethings.iO, we would love to see your projects working with our cloud platform. Feel free to send us your ideas and we will do what we can to help make them real!

Oktoberfest of Things IoTFriday

Oktoberfest of Things IoTFriday

DISCLAIMER: Be careful and don’t mix alcohol with the Internet of Things.

Don’t forget to follow us on Twitter!