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:24] – jan001 | user:jan001:intro_iot_tasmota_nig [2023/03/28 15:21] (current) – [Doing stuff] rolf.becker | ||
---|---|---|---|
Line 64: | Line 64: | ||
Allons-y! | Allons-y! | ||
+ | ==== DS18B20 Pinout ==== | ||
+ | |||
+ | * Cable VErsion: red -> 3.3V , blue -> GND , yellow -> data (1wire protocol) | ||
+ | * Breakout board version: " | ||
==== 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%> | ||
+ | \\ | ||
+ | The data line of the 1Wire bus (blue) \\ is not connected correctly in the diagram above! | ||
+ | </ | ||
==== Installing the Tasmotizer ==== | ==== Installing the Tasmotizer ==== | ||
Line 122: | Line 131: | ||
==== Configure Tasmota - Part 2 ==== | ==== Configure Tasmota - Part 2 ==== | ||
- | === MQTT === | + | 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. |
- | 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 an so called MQTT Broker. A Server in simpler terms. | + | |
+ | {{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 133: | Line 176: | ||
- [[https:// | - [[https:// | ||
- [[https:// | - [[https:// | ||
+ | - [[https:// |
user/jan001/intro_iot_tasmota_nig.txt · Last modified: 2023/03/28 15:21 by rolf.becker