RTC modual and NPT updating
Posted: Sat Jun 23, 2018 5:30 pm
I am going around in circles at the moment trying to get the time onto a Nodemcu using the Arduino IDE and keep hitting a brick wall. Everything was working with a Nodemcu > Raspberry pi > PC apart from the pi was sleeping/locking up.
I read the Nodemcu clock was not that accurate so decided to get the time from a NPT server. Now I have just read that if I poll the NPT servers to often I could get my IP banned; which may already have happend on one of them!
I have also read about the rtc.deepsleep modul but it looks like it is only for the Lau language. I do not want to try and learn another language as I am currently trying to learn the Arduino one and Python!
Basically I need to timestamp my sensor readings and save the timestamp with the readings into SPIFFS.
Can somebody please help me to get a timestamp into my arduino code. I have read an article about somehow getting the time from my network hub? Polling the NPT server less and using that to correct the Nodemcu time; but the time will be lost when it goes into deep sleep that is why rtc sleep looks better.
I read the Nodemcu clock was not that accurate so decided to get the time from a NPT server. Now I have just read that if I poll the NPT servers to often I could get my IP banned; which may already have happend on one of them!
I have also read about the rtc.deepsleep modul but it looks like it is only for the Lau language. I do not want to try and learn another language as I am currently trying to learn the Arduino one and Python!
Basically I need to timestamp my sensor readings and save the timestamp with the readings into SPIFFS.
Can somebody please help me to get a timestamp into my arduino code. I have read an article about somehow getting the time from my network hub? Polling the NPT server less and using that to correct the Nodemcu time; but the time will be lost when it goes into deep sleep that is why rtc sleep looks better.