1. To use ThingSpeak, we need to create channels. To create channels, log in with your account in thingspeak.
2. You can change the name to fit your need and you can add a description corresponding to the channel. You can add any other useful description into the metadata field. In the same page, you should see the fields for Latitude, Longitude and Elevation. Also, when you scroll down you should see a check box that says ‘Make Public?’. Let us consider the significance of the various fields and the tabs:
Latitude, longitude and elevation – These fields correspond to the location of a ‘thing’ and are especially significant for moving things.
Make Public? – If the channel is made public, anyone can view the channel’s data feed and the corresponding charts. If this check box is not checked, the channel is private, which means for every read or write operation, the user has to pass a corresponding API key.
URL – This can be the URL of your blog or website and if specified, will appear on the public view of the channel.
Video ID – This is the ID corresponding to your YouTube or Vimeo ID. If specified, the video appears on the public view of the channel.
Fields 1 to 8 – These are the fields which correspond to the data sent by a sensor or a ‘thing’. A field has to be added before it can be used to store data. By default, Field 1 is added. In case you try posting to fields that you have not added, your request will still be successful, but you will not be able to see the field in the charts and the corresponding data. You can click on the small box before the ‘add field’ text corresponding to each field to add it.
3. Once you have edited the fields, click on ‘Save Channel’ button. You should now see a page as shown below:
4. For using ThingSpeak with Node MCU, we have to use the API key of the channel in the programming.
Note: You can create or generate a new API key or you can use the predefined API keys.