Menu Close

Thingspeak set up and basics

Robo India explains basics of ThingSpeak in this tutorial. 

Detailed Tutorial

1. Introduction:

This tutorial explains how to setup account with ThingSpeak and basics. ThingSpeak is an open cloud data platform where you can store and retrieve data.

2. ThingSpeak Basics and account setup –

URL : https://thingspeak.com/

If you do not have a ThingSpeak account create one. Once you have a ThingSpeak account login to your account.

Create a new channel by clicking on the button as shown in below image – A channel is the source for your data. Where you can store and retrieve data. A channel can have maximum 8 fields. It means you can store 8 different data to a channel.

Enter basic details of the channel

here we are creating channel to store data from DHT11 temperature and humidity sensor so we need two fields.

Scroll down and save the channel.

Channel ID

Channel Id is the identity of your channel. Note down this.

API Keys

API ( Application Programming Interface ) keys are the keys to access to your channel. In simple language you can understand that these are password to access your channel. You can access your channel in two ways-

1. To update channel / data logging : API Write Key will be used to access in this mode.

2. To retrieve data : API Read Key will be used to access  in this mode.

Click on the API tab to know your API keys. We have blurred our API Keys for security reasons.

3. Accessing Channel:

You may use following URLs to access your channel.

3.1 To Update channel / data uploading / data logging

URL: http://api.thingspeak.com/update?api_key=YOUR-API&field1=VAR-1&field2=VAR-2

make the following replacements in the above mentioned URL-

1. YOUR-API : Your API Write Key

2. VAR-1 : Temperature Data

3. VAR-2 : Humidity Data

Response : If you get a positive number that means the data has been uploaded to your channel. The number is index of the last entry you have made.

3.2 Retrieve channel / data reading

URL: http://api.thingspeak.com/channels/YOUR-CHANNEL-ID/fields/FIELD.json?results=NOS-OF-RESULTS&api_key=YOUR-API

make the following replacements in the above mentioned URL-

1.YOUR-CHANNEL-ID – Your channel ID

2. FIELD – Field you want to retrieve. Write 1 for Field1, 2 for Field2

3. NOS-OF-RESULTS = The number of rows you want to retrieve.

4. YOUR-API : Your API Read Key

Response : You will get data as per your specifications in JSON format.   

4. Reading data through ThingSpeak website.

Login to your account. Select your channel and click on the view as shown in the following image. 

This is a basics and setup tutorial of ROBO INDIA.

If you have any query please write us at support@roboindia.com

Thanks and Regards
Content Development Team 
Robo India
http://roboindia.com


1 Comment

Leave a Reply