Node-Red direct wifi link to DHT22/ESP8266

I currently measure the outside and inside temperature according to the diagram below. It is programmed by a friend to teach me IDE programming. I suppose that Node-Red might be easier to program. I am at least a fan.

image

I now wish to receive a WhatsApp when for example T in = T out or T out reaches its maximum and so on.....

  1. Where can I find the base instructions to do it?
  2. Is it possible to read the data directly from the ESP8266 (NodeMCU Amica V2 – ESP8266-12F-processor Espresif WLAN)?

type or paste code here

How is the esp sending data to the pi?
What s/w is running on the Pi to get the data to influx?


I assume you mean IDE
image

I would program the ESP to send readings by MQTT to a Mosquitto broker on the Raspberry Pi.

In node-red subscribe to the topics used and store the data in Influxdb.

There is a tutorial at https://randomnerdtutorials.com/esp8266-nodemcu-mqtt-publish-dht11-dht22-arduino/
I have not followed that tutorial, I use a different MQTT client library: pubsubclient. It explains the setup though.

Regarding notifications from node-red, I think Telegram is the most popular way.

You are writing direct to InfluxDB but that doesn't pass events onward - so you would have to periodically query the data again in Node-RED.

Put MQTT in the mix and simply send the data to the MQTT broker and use Node-RED to pass it on to InfluxDB. MQTT provides you with an event-driven interface.


As @jbudd mentions, Telegram is preferred for notifications since it is MUCH (I mean really A LOT MUCH!) easier to work with than WhatsApp.

@fredshortlv129bis If you want to learn more about MQTT then see this excellent tutorial MQTT Essentials - All Core Concepts explained

If I'm not talking nonsense, Wathsapp does not have an open API to communicate with the outside world. Unless that has changed recently. So no way to get the info on your phone.
That's why we often use Telegram

It is possible - just not easy.

1 Like

Thank you to all who are thinking along. Due to my ignorance, I have involuntarily asked an inappropriate question apparently. I still do not know how to answer appropriately. I am forced to limit myself to further learning IDE programming and using InfluxDB and Grafana.Preformatted text

if are thinking of getting the whatsapp on your own phone , you might want to give this node a try: