mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-12-23 04:33:36 +00:00
add camera feed support
This commit is contained in:
parent
13be01f68b
commit
1ea45de67b
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user