#!/usr/bin/haserl <%in p/common.cgi %> <% page_title="OpenWall" config_file=/etc/webui/openwall.conf params="enabled crontab caption interval heif proxy" if [ "$REQUEST_METHOD" = "POST" ]; then for p in $params; do eval openwall_${p}=\$POST_openwall_${p} done if [ "$openwall_enabled" = "true" ]; then [ "$openwall_interval" -lt "15" ] && set_error_flag "Keep interval at 15 minutes or longer." fi if [ -z "$error" ]; then rm -f "$config_file" for p in $params; do echo "openwall_${p}=\"$(eval echo \$openwall_${p})\"" >> "$config_file" done sed -i /openwall/d /etc/crontabs/root if [ "$openwall_enabled" = "true" ] && [ "$openwall_crontab" = "true" ]; then echo "*/${openwall_interval} * * * * /usr/sbin/openwall" >> /etc/crontabs/root fi redirect_back "success" "OpenWall config updated." fi redirect_to "$SCRIPT_NAME" fi [ -e "$config_file" ] && include $config_file [ -z "$openwall_crontab" ] && openwall_crontab="true" [ -z "$openwall_interval" ] && openwall_interval="15" %> <%in p/header.cgi %>

This extension allows you to share images from your OpenIPC camera on the Open Wall page of our website. The images you share will allow us to determine the quality of images from different cameras. We also collect your MAC address, chipset, sensor, flashsize, firmware version, and uptime.

<% field_switch "openwall_enabled" "Enable OpenWall" "eval" %>
<% field_string "openwall_interval" "Interval" "eval" "15 30 60 120" "Minutes between submissions." %> <% field_text "openwall_caption" "Caption" "Location or short description." %>
<% field_switch "openwall_crontab" "Add to Crontab" "eval" "Send pictures timed by interval." %> <% field_switch "openwall_heif" "Use HEIF format" "eval" "Requires H265 codec on Video0." %> <% field_switch "openwall_proxy" "Use SOCKS5" "eval" "Configure proxy access." %>
<% [ -e "$config_file" ] && ex "cat $config_file" %> <% ex "grep openwall /etc/crontabs/root" %>
<% button_submit %>
<%in p/footer.cgi %>