A simple flask server for esp32-cam to upload captured image.
$ pip install -r requirements.txt
In ubuntu:
$ sudo apt-get install nginx
Create a file /etc/nginx/sites-available/esp32 and type the following:
server {
location / {
proxy_pass http://127.0.0.1:8000;
}
}
Create a symbolic link in the sites-enabled directory:
$ ln -s /etc/nginx/sites-available/esp32 /etc/nginx/sites-enabled/esp32
Restart nginx service:
$ sudo service nginx restart
$ cd flask_app
$ gunicorn run:app
The esp32-cam/client_image_post/client_image_post.ino sketch is based on project ESP32-CAM-Arduino-IDE by Rui Santos.
- Gallery UI to view uploaded images