Page 1 of 1

ESP32 Scheduling

Posted: Sat May 02, 2020 4:33 am
by Caleb.Jones5112
Hi all,

I've got a time lapse project under way with an ESP32-CAM (AI Thinker module) but I only need it to take photos at day time.
I'd like it to check the time and if its between say 8am-5pm take photos, but between 5.01pm - 7.59 be in deep sleep mode.

I've got the time lapse working and I have played around with the NTP server code
But I'm just not sure the best way to do this

Thanks in advance.

Re: ESP32 Scheduling

Posted: Mon May 04, 2020 12:09 pm
by username
What is the problem? If your getting the time, and you have the time lapse working.

Re: ESP32 Scheduling

Posted: Mon May 04, 2020 12:55 pm
by fasani
I never used NTP since I have my own backends to reply with the time info.
But if you have the time-lapse working, also no idea how that is since you didn't provide any demo code, then just build something that checks the NTP time on every wake up and if it's on the "service time" then take the picture, if not just keep on sleeping another round.

Re: ESP32 Scheduling

Posted: Tue May 05, 2020 10:42 am
by Caleb.Jones5112
Thanks guys,

I'll pursue the Time method, just wasn't sure if there was a better way to do it such as interrupts or something along those lines