This is a small camera module for Prusa Mini+ 3D printer based on ESP32-CAM module. And added temperature and pressure sensor just for fun.
Modify esphome/secrets.yaml to match your WiFi SSID, password, and generate random secure password for your camera setup.
For exmaple, the contents of esphome/secrets.yaml can look like this:
substitutions:
prusa_mini_cam_passwd: "your_very_secure_random_camera_password"
wifi_ssid: "Your_WiFi_Name"
wifi_passwd: "You_WiFi_Password"
Obviously - change values to match your network
Of this is the first time flashing ESPHome to Your ESP32, you will need to physically connect Your ESP32 to the computer. One of the simplest ways to do that is with any USB-to-UART converter.
Instructions on how to do that can be found here
Flash current configuration to the ESP32-CAM board:
docker run --rm -v "${PWD}":/config --device=/dev/ttyUSB0 -it esphome/esphome run esphome/prusa_mini_cam.yaml
If ESP32-CAM is able to succesfully connect to Your WiFi - a red LED on the board will light up. That means, that you should be able to see the camera feed at http://<pursa_mini_cam_IP_address>:8080
If you have Home Assistant configuration - you can now add ESPHome integration.