-
Email ESP32 Cam code changes
01/01/2022 at 16:12 • 0 commentsThe email ESP32 Cam was sending only a partial or no pic so also added a SPIFFS format statement in the setup to correct this. Sends photo every 1/2 hr if bright enough. Removes photo from SPIFFS after email sent.
Code added to example from : https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-715842
bool formatted = SPIFFS.format(); //formats SPIFFS if corrupt and only partial picture
void loop() {
if (digitalRead(2) == LOW) digitalWrite(33, LOW); // TURN on LED if dark
if (digitalRead(2) == HIGH) {
digitalWrite(33, HIGH);
capturePhotoSaveSpiffs();
sendPhoto();
SPIFFS.remove("FILE_PHOTO"); // remove photo after email sent
delay (1800000);
}
} -
Added Email ESP32 Cam
12/30/2021 at 16:33 • 0 commentsAdded Email ESP32 Cam to send email with pic attached when we are away. Mounted to tripod with a coat hangar and hose clamp.
Includes a photoresistor in a voltage divider circuit so it only sends pics when it's bright enough.
I was thinking of sticking it on top of a servo to get various angles every few minutes for a security system.
I could also send the exact time to it from another controller that has a RTC connected using ESP-NOW so the emails are sent on the hour and half hour if bright enough.
-
Added Toggle Clamps
10/06/2021 at 19:09 • 0 commentsUpdated to include quick release toggle clamps to hold roof posts instead of large spring clamps.