Time stamp

Hi, I have a temp sensor project working on an ESP8266 and two ds1b20 temp sensors. The temperatures are viewd in a browser with the ESP IP address. I wish to add two things to the program, one is an over temp alarm sounding on my tablet the other is a date stamp and time that the last reading occurred. I gather I would use an if statement for the over temp but not sure where in the code to add it. The date stamp I am not sure but I think a date and time would suffice. The project was "display values of multiple ds1b20 on esp8266 Node MCU Web server" by last minute engineers.

I gather I would use an if statement for the over temp but not sure where in the code to add it.

No, me neither.

start here

Fourm Rules

simple things like how to post code, and why posting your code allows us to help you

#7 is of particular importance.

then, read this. what you are looking for is really well covered.

[Beginners Guide](http://tttapa.github.io/ESP8266/Chap01 - ESP8266.html)

Realtime Clock but, since you are using a Node-MCU, you might get the time via an NTP service, incorporate the result in your secret code, and send it out with the temperature data, thereby saving you getting an RTC. You might also have the PC record the time it receives data, for the same result, or you could actually use an RTC.

Nick_Pyner:
Realtime Clock but, since you are using a Node-MCU, you might get the time via an NTP service, incorporate the result in your secret code, and send it out with the temperature data, thereby saving you getting an RTC. You might also have the PC record the time it receives data, for the same result, or you could actually use an RTC.

NTP chapter 15
[Beginners Guide](http://tttapa.github.io/ESP8266/Chap01 - ESP8266.html)