ESP32 Scheduling

Caleb.Jones5112
Posts: 2
Joined: Sat May 02, 2020 4:14 am

ESP32 Scheduling

Postby Caleb.Jones5112 » Sat May 02, 2020 4:33 am

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.

username
Posts: 181
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32 Scheduling

Postby username » Mon May 04, 2020 12:09 pm

What is the problem? If your getting the time, and you have the time lapse working.

User avatar
fasani
Posts: 88
Joined: Wed Jan 30, 2019 12:00 pm
Location: Berlin
Contact:

Re: ESP32 Scheduling

Postby fasani » Mon May 04, 2020 12:55 pm

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.
Backend developer-PHP Engineer
https://CALE.es ESP32 E-Ink Screen manager - Berlin, Germany

Caleb.Jones5112
Posts: 2
Joined: Sat May 02, 2020 4:14 am

Re: ESP32 Scheduling

Postby Caleb.Jones5112 » Tue May 05, 2020 10:42 am

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

Who is online

Users browsing this forum: No registered users and 10 guests