/PiDMS

Some scripts and configs for my Raspberry Pi based DMS setup

Primary LanguageShell

PiDMS

Some scripts and configs for my Raspberry Pi based document managament system (DMS) and personal finance manager setup

Setup

The Pi runs docker containers for paperless and Firefly III

Scripts

  • backup.sh -> used to trigger a backup of the paperless and Firefly data / database
  • fan_control.py -> enables the fan to cool the Pi, when reaching a certain temperature range
  • ocr.sh -> runs OCRmyPDF on new pdf files and moves the OCR'ed version to the paperless input directory (better results than using paperless' OCR feature directly)
  • scan.sh -> calls scanimage to batch scan multiple pages and converts them into a pdf (and moves it to the ocr.sh input directory)
  • scanserver.py -> allows executing the scan.sh script with a HTTP GET request

Crontabs

@reboot /home/pi/ocr.sh &
@reboot /home/pi/fan_control.py &
@reboot /home/pi/scanserver.py &

Usage

Adding documents to the DMS

  • already OCR'ed pdfs can be moved to the /home/pi/paperless.consume folder directly
  • offline documents:
    • via scanner: call http://<ip>:8080/<count> where count is the number of pages to scan (or use the Android client app)
    • via smartphone document scanner (for exmaple ScanPro): upload to /home/pi/scaninput