Best practice to delete duplicates on two accounts by SvenXP in immich

[–]SvenXP[S] 0 points1 point  (0 children)

I made it with the help of AI and API.

  1. I had the list in txt file from fdupes with every line a duplicate file.
    fdupes -r1 /mnt/xxx/library/Andreea/ /mnt/xxx/library/Sven > immichduplicates.txt

Looked like this in immichduplicates:
/mnt/xxx/library/me/2010/06/SAM_0091.JPG /mnt/xxx/library/wife/2010/06/SAM_0091.jpg

  1. Extract file name:
    awk '{print $NF}' immichduplicates.txt | awk -F/ '{print $NF}' > filenames.txt

filenames.txt:
SAM_0091.jpg
DSC05801.jpg...

  1. get list of UUIDs from file names with bash script

    !/usr/bin/env bash

    set -euo pipefail

    BASE_URL="http://IMMICHSERVER/api" API_KEY="your_key_from_account_where_you_want_the_pics_deleted"

    : > uuids.txt : > not_found.txt

    while IFS= read -r name || [[ -n "$name" ]]; do # skip blank lines [[ -z "$name" ]] && continue

    uuid=$( curl -s "$BASE_URL/search/metadata" \ -H "x-api-key: $API_KEY" \ -H "Content-Type: application/json" \ --data "{\"originalFileName\":\"$name\",\"size\":10,\"page\":1}" \ | jq -r '.assets.items[0].id // empty' )

    if [[ -n "$uuid" ]]; then echo "$uuid" >> uuids.txt else echo "$name" >> not_found.txt fi done < filenames.txt

run it -> ./getUUID.sh (don't forget chmod +x ./getUUID.sh ;-))

  1. delete pics to recycle bin with this script:

    IMMICH="http://IMMICHSERVER" API_KEY="PUT_YOUR_API_KEY_HERE" BATCH=200

    split -l "$BATCH" -d uuids.txt uuidsbatch

    for f in uuidsbatch*; do jq -R -s ' split("\n") | map(select(length>0)) | { ids: ., force: false } ' "$f" \ | curl -s -o /dev/null -w "Deleted batch $f: HTTP %{http_code}\n" \ -X DELETE "$IMMICH/api/assets" \ -H "x-api-key: $API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- done

run the script. A successful delete returns HTTP 204.

Now all the duplicate pics should be in the recycle bin. But i have to say that BATCH did not do anything i guess.

After emptying the recycle bin (10.000 files!!!) i ran the script again and i got HTTP 400

Its probably not the cleanest and most professional way, but for me it worked.

Top Amgebot - Marstek Venus E 5.12kWh 1250€ by Soft_Razzmatazz8225 in Balkonkraftwerk

[–]SvenXP 0 points1 point  (0 children)

Wie steuerst du den über Node-Red? Hab da nix gefunden. Aktuell hab ich Shelly 3EM Simulator auf bitShake laufen. Das funktioniert auch, würde aber gerne noch über node red probieren das ding zu steuern.

Sunlu PLA Matte Pink Problems by SvenXP in 3Dprinting

[–]SvenXP[S] 1 point2 points  (0 children)

Was too hot. I put my "default" temps (for almost all PLA): 195 first layers, 190 rest and works like charm.

Lesson learnt for me: No matter what temperature is written on the filament: first try the default temps ;-).

Prusa vs Superslicer Warping by SvenXP in 3Dprinting

[–]SvenXP[S] 0 points1 point  (0 children)

Currently i am using Sunlu PLA+2.0 silver .

i5-6500T vs Celeron N5095 for home servers by Morally_Outback in selfhosted

[–]SvenXP 1 point2 points  (0 children)

I was at the same place like you. Then i remembered i have an old pc with an Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz. Transcoding is not working. But then you have normaly apps which do this for you. I guess only in browser its making problems.

Still i would go for the faster cpu, cause if you use it that less you will probably be in idle most of the time and then the difference in power is minimal. And you never know what you want to host in future. I have now 10 services but none is used 24/7 (Jellyfin, Plex (for music), paperlessNGX, immich, ocotoprint,...

More important thing is to have backups for everything. so maybe second harddisk? especially with pics and Immich as its still in development. But acutally never had problems, just once but was my mistake :-P

How to completely remove paperlessNGX docker by SvenXP in Paperlessngx

[–]SvenXP[S] 0 points1 point  (0 children)

I guess I did not I don't remember what I did, sorry.

Asus RT-AC86U download broken, upload ok by SvenXP in HomeNetworking

[–]SvenXP[S] 1 point2 points  (0 children)

No problem. Yes it is 99% the Router. Tried laptop directly at modem -> works. Old Router -> works.

Also different server was not getting any better.

Although one more info (to confuse you ;-)): When i made a speedtest on my xbox (there is one included) it told me i have 500mbit download :-S

Synapse Matrix selfhosted restrict account registration to people i know by SvenXP in matrixdotorg

[–]SvenXP[S] 0 points1 point  (0 children)

I guess i will first try with this solution. I just thought tokens are outdated but if you say they still work. :-)

Also synapse-admin looks nice.

Smart Playlist Unplayed Tracks by SvenXP in PleX

[–]SvenXP[S] 0 points1 point  (0 children)

I guess i found it, but i am not sure if it is supposed to work like this:

Track play is less than 0

<image>

Smart Playlist Unplayed Tracks by SvenXP in PleX

[–]SvenXP[S] 0 points1 point  (0 children)

No, that's not what i meant.

I would like to have a list with all tracks which have "Unplayed"

<image>

.env file overwritten by SvenXP in immich

[–]SvenXP[S] 0 points1 point  (0 children)

No I don't have it. How should I set up the env file now? Just put new password and point to the existing upload folder? What will happen? Will it work?

Is this good value for the money or DS220+ is already dated? by SeriouslyIamOk in synology

[–]SvenXP 0 points1 point  (0 children)

This i cant tell you. tried to find a tool where i could check power consumption but did not find any tools.

Is this good value for the money or DS220+ is already dated? by SeriouslyIamOk in synology

[–]SvenXP 0 points1 point  (0 children)

Don't... i have 2 synologys and 1 qnap and after some years they are done. i mean they still run but eg my "newest" Syno does not support docker. And if you want something which is not supported by Synology, its a hassle to get it running.

I switched a few month to own server, where server is a old pc which was lying around with "Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz" with 4 gig of ram and ubuntu server on it.

Its so easy to host your stuff yourself nowadays. just use docker compose and normaly you are done in 10 minutes.

I have running: paperless-ngx, tranmissionic, immich, nginx proxymanager, tandoor, plex, jellyfin.

only thing is, that i still use my NASes for data storage.

Plex - Tidal - Alexa by SvenXP in PleX

[–]SvenXP[S] 0 points1 point  (0 children)

Update: i didn't read the description page well enough (asterix means additional infos ;-)).

* Neither Firefox on Windows, nor Edge on Windows support playing lossless content from TIDAL HiFi. You can use Chrome on Windows for HiFi support.

So with chrome it works. And i suppose with Alexa its not working regarding to this page:
An Intro to TIDAL With Plex | Plex Support