Last active
January 19, 2018 13:09
-
-
Save philippkeller/9d6a6ccea6c448bedd67338e8eb98870 to your computer and use it in GitHub Desktop.
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