diff --git a/firmware_mod/www/cgi-bin/downloadpic.cgi b/firmware_mod/www/cgi-bin/downloadpic.cgi new file mode 100755 index 0000000..2ebc34c --- /dev/null +++ b/firmware_mod/www/cgi-bin/downloadpic.cgi @@ -0,0 +1,8 @@ +#!/bin/sh + +FILE_NAME="$(date +%Y-%m-%d-%H-%M-%S)" + +echo "Content-type: image/jpeg" +echo "Content-Disposition: attachment; filename=\"$FILE_NAME.jpeg\"" +echo "" +exec /system/sdcard/bin/getimage diff --git a/firmware_mod/www/cgi-bin/ui_camera.cgi b/firmware_mod/www/cgi-bin/ui_camera.cgi index dcff984..d86557e 100755 --- a/firmware_mod/www/cgi-bin/ui_camera.cgi +++ b/firmware_mod/www/cgi-bin/ui_camera.cgi @@ -109,7 +109,7 @@ if [ -n "$F_cmd" ]; then if [ -n "${F_videoPort+x}" ]; then videoport=$(echo "${F_videoPort}"| tr '\n') rewrite_config /system/sdcard/config/rtspserver.conf PORT "$videoport" - echo "Set video port tp ${videoport}" + echo "Set video port tp ${videoport}
" fi if [ -n "${F_autoNightMode+x}" ]; then rewrite_config /system/sdcard/config/autonight.conf autonight_mode $F_autoNightMode diff --git a/firmware_mod/www/js/control.js b/firmware_mod/www/js/control.js index ab3c59a..d447af3 100755 --- a/firmware_mod/www/js/control.js +++ b/firmware_mod/www/js/control.js @@ -57,7 +57,7 @@ function showupdatepage(result) { var update_status = parseInt(update[1],10); if (update_status == 0) { - $('#updatemsg').html("You have already the lastest version from the " + update[0] + " branch") + $('#updatemsg').html("You have already the latest version from the " + update[0] + " branch") if (update[0] == "master") { $('#updatemsg').append(' \

\ diff --git a/firmware_mod/www/js/live.js b/firmware_mod/www/js/live.js index fa26c4d..865ead8 100755 --- a/firmware_mod/www/js/live.js +++ b/firmware_mod/www/js/live.js @@ -13,6 +13,11 @@ function refreshLiveImage() { $("#liveview").attr("src", "/cgi-bin/currentpic.cgi?" + ts); } +//Function to download a screenshot +function downloadScreenshot() { + var ts = new Date().getTime(); + window.location.href = "/cgi-bin/downloadpic.cgi?" + ts; +} //Function to refresh side bar buttons function refreshSideBar() { diff --git a/firmware_mod/www/live.html b/firmware_mod/www/live.html index 3eb25ab..49e75fa 100755 --- a/firmware_mod/www/live.html +++ b/firmware_mod/www/live.html @@ -24,6 +24,7 @@
+