Periodically upload photos from an ESP32CAM to Google Drive. This code implements a fix over other repos to upload the highest resolution (UXGA).
- Upload the "upload.gs" Google Apps Script to your Google Drive
- Open > adjust baseFolder to your liking (starting from Google Drive root)
- Deploy > allow all access > authorize for your account
- In Google Apps deploy, copy script macro string > place into "esp32cam-gdrive.ino"
- On first upload, connect to your ESP32's hotspot (default name: CAM0)
- Enter WiFi network name and password - you only need to do this once, it will save onto hardware
This is not meant for speedy uploads - encoding the image to a string and uploading to Drive takes several seconds.
Your images will appear in your GDrive as /baseFolder/imgFolder/timeStamp-imgName.jpg
- baseFolder and timeStamp are defined in the GApps Script
- imgFolder and imgName are defined in Arduino program
The GApps Script logs data into a Google Doc to help debug issues with upload
- The Doc is named 'log' and is placed in baseFolder
- It can be disabled in the GApps Script