Skip to content

Instantly share code, notes, and snippets.

@philippkeller

philippkeller/scanbd.conf

Last active Jan 19, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.