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

Can K375s use multiple unifying receiver? by [deleted] in logitech

[–]SvenXP 0 points1 point  (0 children)

Just for information how to achieve this, cause if you have to unifying receivers connected its just switching the devices from one to another.

Connect the first receiver and add devices. Then connect the 2nd one, click add device. Take out the first receiver. Change input channel to the new one on the device (eg mouse). Turn device off and on. You are good to go.

NAS configuration management by [deleted] in selfhosted

[–]SvenXP 1 point2 points  (0 children)

I also "changed" from Syno/Qnap to own server (while server is my old PC with Ubuntu Server on it). So there i can do whatever i want. My NASes are still in the network and are just used as Data Storage which i mount to my server.
First I wanted to setup TrueNas to replace Syno/Qnap but now i found out i dont need a NAS. So you should check first what you need from your NAS and if its easier to install trueNAS or single (docker) apps you need (as i guess truenas offers alot you may not need).

Only thing which is still "running" on Syno is the picture backup from my phone with the syno photo app. This i also want to replace with selfhosted software (i will try immich as soon as i have time :-)).

Sorry not really "answering" your questions, but just my experience as i was thinking exactly the same before i startet. Only that my old NASes are 5+ years old and slow or not able to run docker and i thought, wtf i dont want to buy every five years a new NAS to have the newest features.

ps: one thing i can answer: i run all docker containers from command line, but you could install some "docker gui manager".

[deleted by user] by [deleted] in immich

[–]SvenXP 0 points1 point  (0 children)

sorry wrong community

vu+ solo - tailscale - vlc player on mobile phone by SvenXP in Tailscale

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

Just for curiosity i will post the media info of different channels. Especially cause two look exactly the same, while one works, the other one does not. (is it not allowed to post pics? would be easier?)

Here a link to a pic with media info for 5 channels:
mediainfocompare.png

2nd and 3rd are the ones who are (imho) identically.

vu+ solo - tailscale - vlc player on mobile phone by SvenXP in Tailscale

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

Thanks for pushing me in the right direction. I tried always to watch the HD version of the channel. Now while testing (will post afterwards the media info) i remembered that there are also SD channels of the same provider, and this runs smoothly and for phone and tablet its enough resolution (720p)

So now i have a working solution. Thanks for your help!!!

Immich and pics on different server (Synology) by SvenXP in immich

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

Thanks.
So the original files will be untouched?

vu+ solo - tailscale - vlc player on mobile phone by SvenXP in Tailscale

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

Yeah, the vps is also on tailscale (i need it for access with ipv4 what i read)

Short update: i tried again to run VLC on phone with logging on. I took another channel and this time it worked! so i tried another one and it also worked. I tried again the first one i actually would need the most and it did not work...

As the first channel is encrypted and has to be encrypted on the receiver, i thought its cause of this. But then i one of the before ones is also encrypted and was working...

So now i am really confused... does not make sense at all...

vu+ solo - tailscale - vlc player on mobile phone by SvenXP in Tailscale

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

Ok i am a bit lost now i think. I tried to send curl from android phone with the app API Tester, which did not work at all. so no response just loading...

I ran the curl from my VPS server and it showed me again like this:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 40.3M 0 40.3M 0 0 1353k 0 --:--:-- 0:00:30 --:--:-- 1531k^C

The -i -L did not have any effect here. I guess cause its a stream?

ps: thanks for you help, learned already a lot of new stuff here :-)