Deployed 185327a with MkDocs version: 1.6.1

This commit is contained in:
github-actions[bot]
2025-03-15 21:11:53 +00:00
parent a3ea0dae23
commit 99e20c3913
2 changed files with 26 additions and 24 deletions

View File

@@ -826,40 +826,42 @@
</li> </li>
</ul> </ul>
<h2 id="collecting-images-of-your-device"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.2</span> Collecting images of your device</h2> <h2 id="collecting-images-of-your-device"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.2</span> Collecting images of your device</h2>
<p>There are several ways to collect images from your device: <p>There are several ways to collect images from your device:</p>
1. Use the <code>RawImagesLocation</code> parameter to store them directly onto your SD card, see <a href="../Parameters/#parameter-rawimageslocation">Parameter <code>RawImagesLocation</code></a> <ol>
1. Use the Webhook to send the raw image on each round to a dedicated server, see <a href="../Webhook">Webhook</a> resp. <a href="Parameters/#parameter-uploadimg">../Parameter <code>UploadImg</code></a>. <li>Use the <a href="../Parameters/#parameter-rawimageslocation">Parameter <code>RawImagesLocation</code></a> to store them directly onto your SD card.</li>
1. Another option is to pull the images periodically from <code>http://&lt;IP&gt;/img_tmp/raw.jpg</code>. Eg. with an external service. Below is a (Linux)-Bash script to do it: <li>Use the Webhook to send the raw image on each round to a dedicated server, see <a href="../Webhook">Webhook</a> resp. <a href="Parameters/#parameter-uploadimg">../Parameter <code>UploadImg</code></a>.</li>
<li>Another option is to pull the images periodically from <code>http://&lt;IP&gt;/img_tmp/raw.jpg</code>. 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</p> wget -q http://192.168.1.151/value -O value.txt<div class="language-text highlight"><pre><span></span><code>value=`cat value.txt`
<div class="language-text highlight"><pre><span></span><code> value=`cat value.txt` echo "Value: $value"
echo "Value: $value"
diff=`diff value.txt value_previous.txt` diff=`diff value.txt value_previous.txt`
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
```
</code></pre></div> </code></pre></div>
<p>done
```</p>
<h2 id="use-prepared-images"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.3</span> Use prepared images</h2> <h2 id="use-prepared-images"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.3</span> Use prepared images</h2>
<p>See the selection below with prepared images.</p> <p>See the selection below with prepared images.</p>
</li>
</ol>
<h2 id="how-does-it-work"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.4</span> How does it work</h2> <h2 id="how-does-it-work"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.4</span> How does it work</h2>
<p>The Demo Mode tries to interfere as less as possible with the normal behavior. Whenever a Cam framebuffer gets taken (<code>esp_camera_fb_get()</code>), it replaces the framebuffer with the image from the SD card.</p> <p>The Demo Mode tries to interfere as less as possible with the normal behavior. Whenever a Cam framebuffer gets taken (<code>esp_camera_fb_get()</code>), it replaces the framebuffer with the image from the SD card.</p>
<h2 id="example-data-of-a-water-meter"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.5</span> Example Data of a Water Meter</h2> <h2 id="example-data-of-a-water-meter"><span class="enumerate-headings-plugin enumerate-heading-plugin">1.5</span> Example Data of a Water Meter</h2>

File diff suppressed because one or more lines are too long