sample scanbd.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global { | |
# log to console. put to 'false' once you're done with testing | |
debug = true | |
# 1=error, 2=warn, 3=info, 4-7=debug | |
# 3 was sufficient for me (shows when script is triggered) | |
debug-level = 3 | |
scriptdir = /etc/scanbd/scripts | |
user = pi | |
group = pi | |
saned_env = { "SANE_CONFIG_DIR=/usr/local/etc/scanbd" } | |
# checks if button is pressed every x milliseconds | |
# set that low for very quick scans, high for less cpu consumption | |
timeout = 700 | |
action scan { | |
filter = "^scan.*" | |
numerical-trigger { | |
from-value = 1 | |
to-value = 0 | |
} | |
desc = "Scan to file and upload to s3" | |
script = "scan.sh" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment