This file contains hidden or 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 | |
from gpiozero import Button, TonalBuzzer | |
from gpiozero.tones import Tone | |
from picamera import PiCamera | |
from time import sleep | |
import socket | |
import threading | |
buzzer = TonalBuzzer(27, octaves=1, mid_tone="A4") |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |