Hi
I have the two courses home automation and MicroPython and I would like to add a few extra things to the sketch of the web server showing temperature from DS18B20.
One is to introduce a time and date stamp so I can see when the temp reading came through.
Also an alarm output if temperature exceeds a point that I set finally a data logging feature so i can see what happens with temp over time. How would I go about this??
I have the ESP8266 dev board which all works as is with the DS18B20.
Hi.
Are you referring to one particular web server in our courses?
How would you like to program your ESP8266 board? Using Arduino IDE, or MicroPython?
In the MicroPython eBook, we show how to use the DS18B20 temperature sensor (page 254).
We have a project on our website that logs the data to a google spreadsheet using micropython: https://randomnerdtutorials.com/low-power-weather-station-datalogger-using-esp8266-bme280-micropython/
We also recently published a project on how to log data to your own database (Arduino IDE): https://randomnerdtutorials.com/esp32-esp8266-mysql-database-php/
What kind of alarm output would you like to have? Something like an email notification, for example? You can easily do that using IFTTT. See this example: https://randomnerdtutorials.com/door-status-monitor-using-the-esp8266/.
Currently, IFTTT is facing troubles with gmail services. So, instead of choosing “Gmail”, choose “mail” instead, as described here: https://rntlab.com/question/ifttt-what-is-that-all-about/
If you provide more details, maybe I can help you better.
Regards,
Sara
Hi Sara,
I tried MicroPython and had a few issues so proabably more confident with Arduino IDE.
I tried all examples in your books and had a few issues here and there so ended up finding this one and it worked after I changed
it to run with two sensors only.
I also tried this one “We also recently published a project on how to log data to your own database (Arduino IDE): https://randomnerdtutorials.com/esp32-esp8266-mysql-database-php/”
and took on StableHost and had a few problems making it work so that is what led me in frustration to the lastminuteengineers example.
The kind of output I would like is a tone of some sort on my phone or tablet to sound if at all possible.
As I am more confident with Arduino IDE I would rather use that programmer to log data to a Google spreadsheet.
I will give the IFTTT a go and see how it works.
Hi Sara,
I have followed this “Currently, IFTTT is facing troubles with gmail services. So, instead of choosing “Gmail”, choose “mail” instead, as described here: https://rntlab.com/question/ifttt-what-is-that-all-about/” but
However, there is an alternative.”
But can’t see anywhere where I need to change it from “Gmail” to “mail” option.
After clicking the “that” word. Instead of searching for gmail, search for “email” and select the “email” option.
Select the “Send me an email” option.
Hi.
What tutorials of ours did you follow that were not working? So that we can take a look at them and see if there is something missing or if an update is needed.
What kind you trouble did you get following the mysql tutorial?
I didn’t understand if you were successful or not with the IFTTT example. Do you need any help with the IFTTT example?
With IFTTT, you can also send notifications to your smartphone. When something happens you receive a notification in your smartphone. But you need to have the IFTTT app installed and internet connection in your smartphone.
To do this, when creating your applet, in the action service, search for “notification”.
Regards,
Sara
Hi Sara,
The IFFFT app worked (I did install it) to a point but I couldn’t get the email and realised that instead of Gmail it should be Email as you describe. I couldn’t see where I needed to change from Gmail and select Mail – you mention it is after the “that” but I couldn’t find “that”. I will go thru the other tutorials sometime and let you know where I had the difficulty but at present I am pinning hopes on the project that is working as it has allowed me to progress further. So where do I change the Gmail to Mail and if I have things already set up can I modify the Gmail to Mail bit or cancel account and create a new account?
Hi.
Unfortunately, IFTTT doesn’t allow you to change the action for another one. You need to create a new applet to chose another action.
In the process of creating an applet, after selecting the “that” word, choose the “mail” option.
Then, let me know your results.
Regards,
Sara