API Script Examples #7735
Closed
markeeisner
started this conversation in
General
Replies: 2 comments 10 replies
-
How long is the script? Could it be posted as a guide? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm trying to learn some of this, can you point me to some examples or a place to start? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I relatively recently switched to immich from photoprism. I have a custom made digital photo frame running from a raspberry pi and previously manually added photos to a nextcloud folder and used rclone to sync this folder to the pi to update photos.
After moving to immich I wanted to make use of the api to have a "Photoframe" album in immich and have the photos pulled. This would make the process feasible for my wife to manage the photoframe contents with no input from me and without the manual process of populating the nextcloud folder.
I have some basic coding knowledge but most of my experience is from 10 years ago so I was hoping to find some easily adaptable api examples to be able to cobble things together. In the end I couldn't find anything very helpful and nothing immich specific outside of the api documentation.
I've managed to cobble something together in python that works for me, I tried to keep it simple and efficient and easily sharable. With an api key in a file alongside the script, the instance url, album name and destination folder it will download and delete photos from the destination folder only when there are changes.
I wanted to share the script so wondered if there is already a store of these kinds of example scripts for users to take and adapt that I could contribute to? If not what would be the prefered way of sharing this sort of thing?
Some possible options:
Beta Was this translation helpful? Give feedback.
All reactions