user:jan001:intro_iot_tasmota_nig
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jan001:intro_iot_tasmota_nig [2021/10/11 11:15] – jan001 | user:jan001:intro_iot_tasmota_nig [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 66: | Line 66: | ||
==== Breadboard prepartion ==== | ==== Breadboard prepartion ==== | ||
So get all your stuff together and build up the breadboard. Here is the schematic. If your Programmer has male headers, you can plug it directly into the breadboard. {{ : | So get all your stuff together and build up the breadboard. Here is the schematic. If your Programmer has male headers, you can plug it directly into the breadboard. {{ : | ||
+ | |||
+ | <WRAP center round alert 60%> | ||
+ | Short Cut on Board! EORROR! | ||
+ | </ | ||
==== Installing the Tasmotizer ==== | ==== Installing the Tasmotizer ==== | ||
Line 115: | Line 119: | ||
{{ : | {{ : | ||
First we need to go into '' | First we need to go into '' | ||
+ | |||
+ | {{ : | ||
But wouldn' | But wouldn' | ||
+ | ==== Configure Tasmota - Part 2 ==== | ||
+ | |||
+ | Before we can go on with displaying our data on the internet, we need to configure MQTT with our ESP. All you have to know about MQTT is basically, that it is a TCP protocol where you can publish messages on a specific topic and other machines can subscribe to these. It is commonly used in IoT because of its ease of use. All this communication is handled by a so-called MQTT Broker. A Server in simpler terms. For this example, we can use a free MQTT Broker. In production you wouldn' | ||
+ | |||
+ | {{youtube> | ||
+ | |||
+ | To configure MQTT on our ESP8266 we need to go to '' | ||
+ | |||
+ | Tasmota has a preconfigured rule which will publish the sensor data of our sensor every 5 minutes to a specific topic. If you want to learn more about rules you should read this page: [[https:// | ||
+ | |||
+ | '' | ||
+ | |||
+ | I will not go into detail here. This is just for reference. If you really want to know how to utilize rules read the documentation linked above. | ||
+ | |||
+ | The only thing we now need from Tasmota is the topic, on which the sensor data get published. The easiest way to do this is to watch the console. First, open up the console. Somewhere should be a line which includes: '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | The part after the equal is the message. It includes a timestamp and the sensor data. | ||
+ | |||
+ | ==== Making a graph ==== | ||
+ | |||
+ | I hope yall have read the article and followed the steps for setting up your NIG. You are going to need it. | ||
+ | |||
+ | === Node-Red === | ||
+ | So in Node-Red, we have to start with an '' | ||
+ | < | ||
+ | let temperature = msg.payload.DS18B20.Temperature; | ||
+ | return { payload: temperature }; | ||
+ | </ | ||
+ | First we create a value '' | ||
+ | The last node we need is the '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | === Grafana === | ||
+ | We are nearly finished! Let's open up Grafana. Start with creating a new dashboard by hovering over " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | I hope you learned something today! | ||
===== References ===== | ===== References ===== | ||
Line 124: | Line 171: | ||
- [[https:// | - [[https:// | ||
- [[https:// | - [[https:// | ||
+ | - [[https:// |
user/jan001/intro_iot_tasmota_nig.1633943719.txt.gz · Last modified: 2023/01/05 14:38 (external edit)