<div dir="ltr">How/where would I find the full logs? Thanks for your patience!<div><br></div><div>Adam.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 2:21 AM, Wilhelm Meier <span dir="ltr"><<a href="mailto:wilhelm.wm.meier@googlemail.com" target="_blank">wilhelm.wm.meier@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please post the full log, so that one can see the names of all options.<br>
If the scanner supports a button (option) we will see the name of the<br>
option in the log. Then one can adapt the config file to match the<br>
option name and call a scan-script.<br>
<div><div class="h5"><br>
Am 02.11.2017 um 21:49 schrieb Adam Lloyd:<br>
> Sorry about that. <br>
><br>
> pi@raspberrypi:~ $ export SANE_CONFIG_DIR=/etc/scanbd<br>
> pi@raspberrypi:~ $ scanbd -f<br>
> scanbd: Can't set the effective gid to 116<br>
> scanbd: Can't set the effective uid to 111<br>
> scanbd: dbus match type='signal',interface='org.<wbr>freedesktop.Hal.Manager'<br>
> scanbd: Not Primary Owner (-1)<br>
> scanbd: Name Error (Connection ":1.18" is not allowed to own the service<br>
> "de.kmux.scanbd.server" due to security policies in the configuration file)<br>
> scanbd: option[1] standard for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of<br>
> type BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[1] standard for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of<br>
> type BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[1] standard for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of<br>
> type BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[1] standard for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[5] geometry for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[10] enhancement for device rts8891:libusb:001:006 not of<br>
> type BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
> scanbd: option[20] sensors for device rts8891:libusb:001:006 not of type<br>
> BOOL|INT|FIXED|STRING|BUTTON. Skipping<br>
><br>
> pi@raspberrypi:~ $ scanimage --list-devices<br>
> device `rts8891:libusb:001:006' is a Hewlett-Packard 4470c flatbed scanner<br>
><br>
> here is the script that scandb is running -- (under the action section<br>
> of the scanbd.conf file)<br>
><br>
> #!/bin/bash<br>
><br>
> OUT_DIR=~/scans/Today<br>
> TMP_DIR=`mktemp -d`<br>
> FILE_NAME=scan_`date +%Y-%m-%d-%H%M%S`<br>
> LANGUAGE="eng"                 # the tesseract language - ensure you<br>
> installed it<br>
><br>
> echo 'scanning...'<br>
> scanimage --resolution 300 \<br>
>           --batch="$TMP_DIR/scan_%03d.<wbr>pnm" \<br>
>           --format=pnm \<br>
>           --mode Gray \<br>
>           --source 'ADF Front'<br>
> echo "Output saved in $TMP_DIR/scan*.pnm"<br>
><br>
> cd $TMP_DIR<br>
><br>
> for i in scan_*.pnm; do<br>
>     echo "${i}"<br>
>     convert "${i}" "${i}.tif"<br>
> done<br>
><br>
> # do OCR<br>
> echo 'doing OCR...'<br>
> for i in scan_*.tif; do<br>
>     echo "${i}"<br>
>     tesseract "$i" "$i" -l $LANGUAGE hocr<br>
>     hocr2pdf -i "$i" -s -o "$i.pdf" < "$i.hocr"<br>
> done<br>
><br>
> # create PDF<br>
> echo 'creating PDF...'<br>
> pdftk *.tif.pdf cat output "compiled.pdf"<br>
><br>
> gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook<br>
> -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$FILE_NAME.pdf" compiled.pdf<br>
><br>
> cp $FILE_NAME.pdf $OUT_DIR/<br>
><br>
> rm -rf $TMP_DIR<br>
><br>
><br>
> On Thu, Nov 2, 2017 at 4:49 PM, Wilhelm Meier<br>
> <<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@googlemail.<wbr>com</a><br>
</div></div><span class="">> <mailto:<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@<wbr>googlemail.com</a>>> wrote:<br>
><br>
>     Please post the log as text, not as image ...<br>
><br>
><br>
>     Am 02.11.2017 um 17:21 schrieb Adam Lloyd:<br>
>     > Thanks Wilhelm. <br>
>     ><br>
>     > Here is the issue with my scandb setup.<br>
>     ><br>
>     > [IMG]<a href="http://i67.tinypic.com/2hqq7op.jpg[/IMG]" rel="noreferrer" target="_blank">http://i67.tinypic.com/<wbr>2hqq7op.jpg[/IMG]</a><br>
>     <<a href="http://i67.tinypic.com/2hqq7op.jpg[/IMG]" rel="noreferrer" target="_blank">http://i67.tinypic.com/<wbr>2hqq7op.jpg[/IMG]</a>><br>
>     ><br>
>     ><br>
>     > On Thu, Nov 2, 2017 at 12:06 PM, Wilhelm Meier<br>
>     > <<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@googlemail.<wbr>com</a> <mailto:<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@<wbr>googlemail.com</a>><br>
</span>>     > <mailto:<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@<wbr>googlemail.com</a><br>
<div class="HOEnZb"><div class="h5">>     <mailto:<a href="mailto:wilhelm.wm.meier@googlemail.com">wilhelm.wm.meier@<wbr>googlemail.com</a>>>> wrote:<br>
>     ><br>
>     >     You should have a look at scanbd:<br>
>     ><br>
>     >     <a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a><br>
>     <<a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a>><br>
>     >     <<a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a><br>
>     <<a href="https://sourceforge.net/projects/scanbd/" rel="noreferrer" target="_blank">https://sourceforge.net/<wbr>projects/scanbd/</a>>><br>
>     ><br>
>     ><br>
>     ><br>
>     >     Am 02.11.2017 um 16:19 schrieb Adam Lloyd:<br>
>     >     > Hello,<br>
>     >     ><br>
>     >     > I recently moved an old scanner to a raspberry pi to see if I<br>
>     >     could get<br>
>     >     > it to work on alternative platform. A google search revealed<br>
>     that SANE<br>
>     >     > has "good" support for my particular scanner. After a few<br>
>     attempts I<br>
>     >     > managed to get Xsane working on a raspberry pi 3 running with<br>
>     >     stretch. I<br>
>     >     > was able to successfully scan a document! I would like to<br>
>     setup a dumb<br>
>     >     > terminal station, where the scanner sits in a corner and is<br>
>     idle.<br>
>     >     > Whenever some needs to scan a document they would hit the<br>
>     scan button<br>
>     >     > and the document would get moved to our home NAS. I have<br>
>     attempted to<br>
>     >     > get this setup working but without much luck. <br>
>     >     ><br>
>     >     > Thanks,<br>
>     >     > Adam. <br>
>     >     ><br>
>     >     ><br>
>     ><br>
>     ><br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>