regarding the SMART HOME with Raspberry Pi, ESP32, and ESP8266 eBook I must say I am a bit disappointed.
I can see there is a lot of copy paste from previous courses I have bought and that is probably ok. but I had hoped for something new about Node-Red and MQTT, like connecting to InfluxD. which is great.
my problem.
Note-Red reads from an ESP32 a temperature from a room where my inverter for solar cells is located. when the temperature reaches 24 degrees Node-Red sends a message to another ESP32 to start a Fan and below 23.5 degrees stop the fan .if the temperature reaches 27 Node-Red sends an e-mail about too high temperature to me.
and it works great
problem 1
how to prevent Node-Red from sending continuous emails when the temperature is too high..
problem 2
how do I save the status of the fan in influxDB
Greeting
Aage
Hi.
I’m sorry that you’re disappointed with the eBook.
You can ask for a refund if what you bought is not exactly what you expected.
1) You need to create a global variable in Node-RED that saves whether a notification was sent or not. Then change the value of that variable when a message is sent and when the temperature goes below the threshold. We don’t have a specific example like that. But, I think if you take a look at project 7.4 you’ll be able to understand how global variables work and implement that in your project.
2) For saving the state of the fan in influxDB, I recommend taking a look at project 6.5. You should be able to easily adapt it for your project.
I hope this helps.
Regards,
Sara
Yes, the website and books have overlapping material, but that is not what you’re paying for. You’re paying for access to this forum where not just fellow Random Nerds are responding to your questions, but the developers themselves. And they respond fairly quickly, which is well worth the cost of the courses in my opinion.