This commit is contained in:
CaCO3
2025-03-15 22:28:53 +01:00
parent 8d5bdda7d2
commit 95cc4501ec
2 changed files with 18 additions and 17 deletions

View File

@@ -54,7 +54,7 @@ To test it locally:
1. Install the required tools (See also [.github/workflows/build-docs.yaml](.github/workflows/build-docs.yaml)): 1. Install the required tools (See also [.github/workflows/build-docs.yaml](.github/workflows/build-docs.yaml)):
``` ```
pip install --upgrade pip pip install --upgrade pip
pip install mkdocs mkdocs-gen-files mkdocs-awesome-pages-plugin mkdocs-material pymdown-extensions mkdocs-enumerate-headings-plugin mkdocs-redirects-plugin pip install mkdocs mkdocs-gen-files mkdocs-awesome-pages-plugin mkdocs-material pymdown-extensions mkdocs-enumerate-headings-plugin
``` ```
1. In the main folder of the repo, call `mkdocs serve` (and keep it running). 1. In the main folder of the repo, call `mkdocs serve` (and keep it running).
This will locally generate the documentation. This will locally generate the documentation.

View File

@@ -34,12 +34,12 @@ There are several ways to collect images from your device:
1. Use the Webhook to send the raw image on each round to a dedicated server, see [Webhook](../Webhook) resp. [../Parameter `UploadImg`](Parameters/#parameter-uploadimg). 1. Use the Webhook to send the raw image on each round to a dedicated server, see [Webhook](../Webhook) resp. [../Parameter `UploadImg`](Parameters/#parameter-uploadimg).
1. Another option is to pull the images periodically from `http://<IP>/img_tmp/raw.jpg`. Eg. with an external service. Below is a (Linux)-Bash script to do it: 1. Another option is to pull the images periodically from `http://<IP>/img_tmp/raw.jpg`. Eg. with an external service. Below is a (Linux)-Bash script to do it:
```bash ```Bash
#!/bin/bash #!/bin/bash
while [[ true ]]; do while [[ true ]]; do
echo "fetching value..." echo "fetching value..."
wget -q http://192.168.1.151/value -O value.txt wget -q http://192.168.1.151/value -O value.txt
value=`cat value.txt` value=`cat value.txt`
echo "Value: $value" echo "Value: $value"
@@ -47,23 +47,24 @@ There are several ways to collect images from your device:
changed=$? changed=$?
#echo "Diff: $diff" #echo "Diff: $diff"
if [[ $changed -ne 0 ]]; then if [[ $changed -ne 0 ]]; then
echo "Value changed:" echo "Value changed:"
echo $diff echo $diff
echo "fetching image..." echo "fetching image..."
wget -q http://192.168.1.151/img_tmp/raw.jpg -O $value.jpg wget -q http://192.168.1.151/img_tmp/raw.jpg -O $value.jpg
else else
echo "Value did not change, skipping image fetching!" echo "Value did not change, skipping image fetching!"
fi fi
cp value.txt value_previous.txt cp value.txt value_previous.txt
echo "waiting 60s..." echo "waiting 60s..."
sleep 60 sleep 60
done done
``` ```
## Use prepared images ## Use prepared images
See the selection below with prepared images. Instead of recoding your own images, you can use one of the selections of prepared images below.
## How does it work ## How does it work
The Demo Mode tries to interfere as less as possible with the normal behavior. Whenever a Cam framebuffer gets taken (`esp_camera_fb_get()`), it replaces the framebuffer with the image from the SD card. The Demo Mode tries to interfere as less as possible with the normal behavior. Whenever a Cam framebuffer gets taken (`esp_camera_fb_get()`), it replaces the framebuffer with the image from the SD card.