Hi,
the official documentation of Photoprism quotes options.yml to customize some advanced preferences, like library paths. As far as I have found, on Syncloud this file is located in: /snap/photoprism/current/config
Unfortunately if I try to edit it with Nano as root user, I got a message related to a read-only file system. Permissions on the file are currently: 0644
Am I editing the wrong file? Thanks
Usually configs are copied after the install into the editable location:
/var/snap/photoprism/current/config
But they will be replaced after the next version upgrade if you edit them.
Can you tell me which config you want to change?
If it is the originals difectory then it points here currently:
/data/photoprism/photos/originals
So what I do to add more is just link other dirs like my nextcloud files:
cd /data/photoprism/photos/originals
ln -s nextcloud /data/nextcloud/[user]/files
Strange that photoprism devs did not allow adding more dirs from the UI.
hi Boris,
yours was a great idea for the existing photos but it does not solve what I want do to with NEW photos: I want to exploit Photoprism “import” function to import and index photos in one shot, without launching the “index” process manually. The problem is: at the end of the import process, your imported photos are located in /data/photoprism/photos/originals while the old library is under nextcloud. It is not very elegant.
So, at the very end, the problem of making configurable the position of “originals” folder still remains in my opinion. Any ideas? Thanks
Simone
Sorry not sure I understand, I think nexcloud link allows originals to stay in nextcloud so you can upload new pictures to nextcloud and they will stay in nextcloud but photoprism will index them and show. Is this not what you want?
yes, but in order to make Photprism aware of the pictures that you add, you must launch the “index” process manually. On the opposite, if you directly use the “import” command, Photoprism acquire new pictures and indexes them in a single shot.
So, my idea is: I put new photos in a temporary folder within Nextcloud dedicated to the import via Nextcloud usual tools (desktop client on PC, app in Android, etc), and then I launch “import” in Photoprism.
This stuff can be done easily through the symbolic links (I can add a custom import path under the standard import folder througn “ln -s…”) the problem is the final results: imported pictures are copied and organized under “originals” folder. At the end I will have: existing photos under a custom path (i.e. /data/nextcloud/…) but newly imported photos under /data/photoprism/photos/originals.
I could do a workaround: put all new photos together with old ones and manually launch the “index” process (that is different from “import”). I think I’ll do this way.
Actually index can be run automatically, Indexing Originals - PhotoPrism
They mention config option:
PHOTOPRISM_INDEX_SCHEDULE
Try adding:
IndexSchedule: "@every 3h"
To
/var/snap/photoprism/current/config/options.yml