Posts

Quick Guide: Connect Your First Thing in 1 Minute

This is a quick guide to connect your first thing using our platform, thethings.iO. thethings.iO is the Internet of Things platform that enables fast and scalable connection of things to the Internet, allowing you to monitor and manage your devices in real time and get flexible analytic reports.

As you will see, it is easy, and you can do it in less than a minute. You just need to follow a few steps we’re going to quickly explain to you in this post. Ready? Let’s start now, then!

Step 0: Signing In at thethings.iO

If you haven’t registered yet, you need to do it. Go to thethings.iO page, and sign in. Remember that you can connect one thing for free, so it is worth it. Once you have done that, you’ll be signed in to your panel.

Sign in

welcome-thethingsio

Step 1: Planning the thing

Before starting with the code, you should have an idea of what you want to connect to the Internet. What kind of data do you want to store and visualize? Is it going to be temperature? Or better humidity? Or other features like strength, noise, light…?

Step 2: Activating your first thing

When you have planned that and you are in your panel, it is time to start with the code. Let’s activate your first thing at thethings.iO! To do that you will need an activation code. You will be redirect to the Things Manager screen, where you will find directly the Activation Code screen.

As you may know, activation codes are needed to activate things. When you activate the thing, you will get something called ‘thingToken’. This Token can be compared to a personal ID but for things. The Token will enable you to make API calls to thethings.iO from your thing.

To activate the code, you just need to click on the Activate More Things. After that, the next window will prompt you to Activate. Click on Activate to activate one of the Activation Codes.

activation-code-thethingsio

activation-code-thethingsio

With all of this done, you will be able to see the thing and the thingToken. You can copy your thingToken, because from now on, all the requests will be done using it. Or you can as easily press Accept and your thing will be activated.

thingtoken-thethingsio

 

Step 3: Coding your thing

Let’s start with the coding. Right now, your thing is capable of performing 3 types of actions: read, write or subscribe. You need to open the Developers Console to see the messages you will post to thethings.iO APIs.

Now let’s see the actions:

  • Write: store one or several key-values pairs.
    To store data, you have to use the next endpoint.
    Advice: only alphanumeric characters and “.”, “-”, “_” symbols are admitted for the resource named “key”.
  • Read: your thing reads the last values for a determined key.
    To read data, use the operation GET/things/ with the thing token and the key that you are using to store the values.
  • Subscribe: subscribes to the real-time streaming channel of your things.
    This last method lets you subscribe to the thing channel and get real-time updates from all the thing’s keys. This way, it is created a streaming channel. If you want to know more about the Keep Alive options, click here.

dev-console-thethingsio

Step 4: Visualizing the data

Right now, you should have your first thing connected. You can see the numeric data you store from thethings.iO Panel. You only need to click at the Things Manager menu and then click on the thing you want to visualize. Check past data on historical tab, or the real-time as the data arrives on the real-time tab.

analytics-thethigsio

 

Step 5: Build your own dashboard

thethings.iO IoT Dashboard is fully customizable with widgets that can show historical or real-time data directly from the dashboard and not going to every thing.

And that’s it! With thethings.iO it’s easy, right?

If you want to learn more about thethings.iO features then you can not miss these posts about Twilio and Sigfox! And make sure you follow us on Twitter to keep you posted about the Internet of Things world and thethings.iO latest news!

Analytics for Sigfox: meet thethings.iO

Analytics for Sigfox with thethings.iO

Analytics for Sigfox with thethings.iO

If you are an Internet of Things enthusiast, you must know Sigfox. In case you don’t, keep reading. Nevertheless, this post is not only about the incredible things you can make with Sigfox but also how you can integrate it with an IoT platform such as thethings.iO.

What’s Sigfox?

Sigfox is a cellular style telecom that enables remote devices to connect using UNB (ultra-narrow band) technology. It appeared trying to solve the network problems that Wi-Fi range may cause (for example, it is short and 3G and 4G are expensive and use too much power while working) to make the Internet of Things easier.

Using Sigfox, you can transfer small amounts of data (each message can be up to 12 bytes of payload data). Any user can send between 0 and 140 messages per day, and if they want a 24 hours distribution, they can also send a maximum of one message every 11 minutes. This means that each message you send doesn’t contain much information.

Do you want to know how to connect a thing with thethings.iO and Sigfox? Then, watch this tutorial:

When Sigfox meets thethings.iO

As you have just seen, Sigfox is perfect for very low power operations. Messages transmitted must be small, which can be seen as a problem. Any user can downlink 4 messages of 8 bytes to the device, and the uplink is up to 140 messages of 12 bytes. Depending on the use case, this is just enough information to be transmitted.

Sigfox doesn’t understand or transform your payload, so you can read the message as is, allowing developers to parse the structured payload and play with bits and bytes. That means, that you cannot see any data or analytics using just Sigfox, and at the moment neither any business logic on the top of it.

With all these limitations, we have integrated Sigfox with thethings.iO, in order to pick up all the data generated and offer it to its users. Actually, it is more than that. Paying the price of a Sigfox device plus 1€ per year to thethings.iO you can get a full customizable analytics, cloud code with triggers and crons and real-time interaction from your Sigfox-connected devices.

In less than 5 minutes you can see your things’ data at thethings.iO panel. Awesome, right?

thethings.iO and Sigfox

thethings.iO and Sigfox

As we have said, with Sigfox you only get Payload data (using binary language). To make it clever, using thethings.iO, data is translated to our JSON diagram, so you can know the exact temperature or humidity (or whatever) value of your device at any time in your Sigfox dashboard with thethings.iO.

thethingsio.dash

You can find libraries for a couple of prototyping shields with Sigfox Antennas at our github account as Sigfox SDK for thethings.iO.

What we do at thethings.iO

At thethings.iO we connect devices or wearables to the Internet. We are a Cloud solution for companies that decide to build new cool things that can be connected to improve our lives. If you want to know more about us, you can create an account by clicking here, sign up to receive our monthly newsletter or follow us on Twitter! Stay tuned and be the first in knowing the latest news of the IoT world and thethings.iO.