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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import csv | |
import re | |
accounts = [ "add account numbers here" ] | |
def handleAccount(input): |
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
#/bin/bash | |
count=$1 | |
resolution=150 | |
cd /home/pi/scans | |
if [ $count -gt 1 ] | |
then | |
scanimage --batch=scan_%d.tiff --batch-count=$count --format=tiff --resolution $resolution --mode Gray | |
tiffcp scan_* scan.tiff |
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
#/bin/bash | |
workdir=/home/pi/ocr.work | |
scaninput=/home/pi/scaninput | |
outdir=/home/pi/paperless.consume | |
inotifywait -m -e close_write -e moved_to $scaninput | | |
while read -r path action file; do | |
echo "Waiting for $file..." | |
sleep 10 |
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
#! /usr/bin/python | |
import subprocess | |
import time | |
import re | |
from gpiozero import LED | |
PIN = LED(17) | |
MAX_TEMP = 50 | |
MIN_TEMP = 45 |