TFJ
IImmich
•Created by Quietsy on 9/27/2023 in #help-desk-support
Scan External Libraries from the cli
@Allram @Quietsy
Thank you, Its the fist time I'm using anything
API
and curl
related, so i'm trying to get by... not understanding all I'm doing. I was able to get a script going that does what I need, inspired by a post on Reddit and ChatGPT:
https://www.reddit.com/r/immich/comments/16pmme7/comment/k3b5l8f/?utm_source=share&utm_medium=web2x&context=3
I'm sharing for anyone else who is interested.
setup:
-macOS sonoma 14.0
- Apple Mac Mini M1
- Docker Desktop
- IMMICH 1.82.1 (server)
- IMMICH app 1.82
- fswatch installed on macos.
- homebrew installed on macos
This is mean't to auto scan and remove offline
files on system file change
by watch folder
Given, I have no idea if its the most efficient way? but it works for me for the moment, the removeOffline
command seems to miss files sometimes, not sure why but that is why I added the curl command twice. I have not tested this too long, but here we go. See the Pastebin below:
https://pastebin.com/RbbZFwi2
For the ones who are only interested by the command without using fswatch to monitor changes, this will also automitcally retrieve the external library 🆔endpoint=http://192.168.1.10:2240/api/library #or https://immich.domain.com/api/library
api_key=create_API_inIMMICH
# Make the GET request to retrieve data
response=$(curl -vv --url "$endpoint" --header "x-api-key: $api_key")
id=$(echo "$response" | jq --raw-output '.[] | select(.type=="EXTERNAL") | .id')
# Use the retrieved ID for both the scan and remove commands
curl -vv --url "$endpoint/$id/scan" --data-raw "$id" --header "x-api-key: $api_key"
curl -vv -L -X POST "$endpoint/$id/removeOffline" --header "x-api-key: $api_key"
Happy for suggestion and feedback to implement on the pastebin script 🤷♂️36 replies
IImmich
•Created by Quietsy on 9/27/2023 in #help-desk-support
Scan External Libraries from the cli
Agh, sorry about that. I miss read this the first time. Thank you! I’ll try it out. @Quietsy
36 replies
IImmich
•Created by Quietsy on 9/27/2023 in #help-desk-support
Scan External Libraries from the cli
Oops
36 replies
IImmich
•Created by Quietsy on 9/27/2023 in #help-desk-support
Scan External Libraries from the cli
Might seem obvious for some, but how do I figure out my 🆔 (library_ID) or if I want to the ID than I scan for all users, or users individually.
@Quietsy @Daniel
I'm using a script to run fswatch to trigger a command to scan the library on file system change direclty on macos as I dont know how to this through docker, I was able to make this work great on photoprism but I can't figure the library_id to make this work with IMMICH.
Setup: Running IMMICH on docker desktop for macos, and managing through portainer
36 replies
IImmich
•Created by TFJ on 10/19/2023 in #help-desk-support
Metadata from IOS photos missing?
Hello,
Yes my files are not uploaded through IMMICH, but Id like the ability to see the metadata included in the photos of my iPhone regardless. For example, in Google Photos, I don't use their back up functionally but i'm still able to check some metadata information from within the Google Photos app of the photos in my device.
I try to check permissions for IMMICH but its already in "Full Access"
4 replies
IImmich
•Created by Gines Rico on 10/6/2023 in #help-desk-support
Duplicate photos on IOS phone
I was gonna create a similar post about two duplicate issues:
1) Photos on the phone (IOS17) don’t match the ones scanned from external library, which leads to having duplicates if upload is activated on IMMICH IOS1.82.
2) when purposely duplicating a picture or video on the phone. It won’t show up duplicated from IMMICH GUI. It shows as one picture, which can be problematic says if one was to choose to have two edits of the same picture/video.
2 replies