Skip to content

neuroid/photoprism-auto-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photoprism-auto-import

PhotoPrism import helper.

While PhotoPrism offers a built-in importer, it's prone to importing partially uploaded files.

To overcome this problem, the import helper can be used to watch the import folder for changes and only trigger an import after a period of filesystem inactivity.

Usage

Usage: photoprism-auto-import [options] PHOTOPRISM_IMPORT_PATH
  -debug
    	Log filesystem events
  -delay duration
    	How soon after the last filesystem event to trigger the import (default 10s)
  -move
    	Tell PhotoPrism to remove imported files
  -url string
    	PhotoPrism API URL (default "http://127.0.0.1:2342/api/v1/")

The PHOTOPRISM_APP_PASSWORD environment variable must be set to an app-specific password.
See https://docs.photoprism.app/user-guide/users/client-credentials/#app-passwords for details.

Example

export PHOTOPRISM_APP_PASSWORD=xxxxxx-xxxxxx-xxxxxx-xxxxxx
photoprism-auto-import --move /var/lib/photoprism/import

The above will watch /var/lib/photoprism/import for changes and trigger an import after 10 seconds of filesystem inactivity.

Installation

go install github.com/neuroid/photoprism-auto-import@latest

About

PhotoPrism import helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages