Despite my personal aversion to cloud services, especially in times of rampant IoT devices, I want to show you today how to get your sample sensor online.
There are several services available that vie for the customer's favor, there is a real boom in the market and when you read into the topic you get the feeling that every IT company offers a different solution. Microsoft, Oracle, Amazon, Intel, Telekom, Q-Loud, Sparkfun, Adafruit to name just a few of the larger representatives of this division. If you are looking for a cloud for your larger project or even for your company, you are spoiled for choice because price and performance differ considerably in some cases. However, the choice of the right provider depends on many factors and is not the subject of our project today. We chose Thingspeak at the customer's request.
In previous posts we have already shown how ESP-Easy compiled, transferred and with a Sensor configured has been. Today we create an account at ThingSpeak and configure a channel to stream the values of our sensor into the cloud.
First you have to here create a user account. Once you have entered your data and confirmed the email, you can log in. With the wizard you can easily create channels:
Click here on "New Channel"
and enter this data:
do not forget. You will then be redirected to the channel you just created. The header should look something like this:
To configure the ESP, we still need the API key to be able to write to the channel. To do this, click on the API Keys tab.
Make a note of the Write API Key. We continue with the configuration of the ESP. To do this, we call up the web interface of the ESPEasy and click on the "Controllers" tab via the "Edit" button to proceed to setting the controller. Enter the following data here together with your noted API key:
Save with Submit.
Then change another setting in the "Tools" button "Advanced" button: Under "Controller Settings" set a message delay of 15000ms:
Now everything is configured. After a while we see results in Thingspeak.
And the data from our sensors are recorded.
In one of the next posts we will show you how easy it is to integrate ESP Easy with MQTT in OpenHAB.
Until next time :)