add camera feed support

This commit is contained in:
virmaior 2022-07-18 01:20:24 +09:00 committed by GitHub
parent 13be01f68b
commit 1ea45de67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,13 @@ function ini_to_html_tf
documentation_to_html $1 documentation_to_html $1
printf '</div>' printf '</div>'
} }
#function to handle camera feed
function html_cam_feed
{
printf '<img src="/cgi-bin/jpeg.cgi" class="feed" >'
}
echo -ne "<html><head><title>$title</title>" echo -ne "<html><head><title>$title</title>"
echo -ne "<style type=\"text/css\">" echo -ne "<style type=\"text/css\">"
cat wz_mini_web.css cat wz_mini_web.css
@ -131,6 +138,9 @@ echo -ne "</head>"
echo -ne '<body>' echo -ne '<body>'
echo -ne "<h1>$title</h1>"; echo -ne "<h1>$title</h1>";
html_cam_feed
echo -ne '<form name="wz_mini_hack_FORM" method="POST" enctype="application/x-www-form-urlencoded" >' echo -ne '<form name="wz_mini_hack_FORM" method="POST" enctype="application/x-www-form-urlencoded" >'
IFS=$'\n' IFS=$'\n'