Skip to content

Instantly share code, notes, and snippets.

@philippkeller
Last active January 19, 2018 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippkeller/9d6a6ccea6c448bedd67338e8eb98870 to your computer and use it in GitHub Desktop.
Save philippkeller/9d6a6ccea6c448bedd67338e8eb98870 to your computer and use it in GitHub Desktop.
sample scanbd.conf
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