ESPHome camera snapshot

With esphome camera with snapshot we can use the ultimate power of curl
command to fetch the image from the camera.
Prepare esphome device
Configure esphome device:
- install esphome camera
on the device and add
esp32_cameraandesp32_camera_web_serverwithsnapshotmodules:
esp32_camera:
... (skipped due to the fact there are different modules)
esp32_camera_web_server:
- port: 8081
mode: snapshot
Flash the device and wait until it boots and is available.
Create config for script
- copy
esphome-snapshot.distas.env - in copied file
.envreplacetoken-change-mewith the value of the token you copied - in copied file
.envreplacefingerprint-change-mewith some random value, which is alphanumeric and has at least 16 chars (and max of 40 chars), for example set it tofingerprint-myprinter3-camera-3 - in copied file
.envreplace your esphome device address and port inCAMERA_COMMAND_EXTRA_PARAMS - save edited file
.env
Next, test config.
Real world example
I have esp32-wrover-dev board with camera + esphome + web ui for camera exposing
snapshot frame on port 8081.
We can use curl to fetch it.