Developed by Mathworks (best known as the creators of MATLAB®), ThingSpeak is “an Internet of Things (IoT) platform that lets you collect and store sensor data in the cloud and develop IoT applications”. A lot of IoT devices can push data to Thingspeak (including but not limited to Arduino, Raspberry Pi). The gathered data can be analyzed online, using MATLAB®.
Unfortunately, this doesn’t come free. There’s the option of a free account for testing and for small non-commercial projects. A student license starts from 55 EUR. Home use licenses start from 75 EUR. Academic and commercial licenses are also available.
In this blog post, I will use a free license, as for the given moment I have no further plans to use ThingSpeak.
If you already own a MathWorks account, you can use it to connect also to ThingSpeak. Otherwise create an account first.
Once you log in, you can check your account settings. Mine is a free account.
To publish data to ThingSpeak, one must create a channel. To do so, go to Channels – My channels and create a new channel.
The new channel is named Dragino_LoRa and has two fields, for temperature and humidity. I didn’t fill any additional data (position and such) as this is for testing purposes only. I’ve left the channel private, for the given moment.
Once the new channel is created, we have to look at the API keys:
Write down the Channel ID and the Write API Key. You will need it later when you will configure the gateway.