#1

get gpx


#2

make jsonl:
./gpx2owntracks.sh test/gpx/activity_20019940630.gpx


#3

./publich2owntracks.sh test/rec/activity_20019940630.jsonl 


#4

tag photos
./immich_geotag_from_owntracks.sh test/photos



Przydatne skrypty i komendy


exiftool -overwrite_original -api GeoMaxIntSecs=43200 -api GeoMaxExtSecs=43200 -geotag /tmp/owntracks_gpx_g2feseew/owntracks_export.gpx '-geotime<${CreateDate}' -if 'not $GPSLatitude and not $Keys:GPSCoordinates' ./

exiftool -overwrite_original -api GeoMaxIntSecs=43200 -api GeoMaxExtSecs=43200 -geotag /home/pi/immich_owntracks/test/gpx/full_owntracks20250901.gpx '-geotime<${CreateDate}' -if 'not $GPSLatitude and not $Keys:GPSCoordinates' ./

cp -rp $(find /home/pi/immich/library/upload -type f \( -iname "*.mp4" \) -mtime -21) ./

find /home/pi/immich/library/upload -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" -o -iname "*.bmp" -o -iname "*.tiff" \) -mtime -21


for i in $(cat lista); do _ cp $(basename $i) $i; done 

Podsumowanie:

1. (opcjonalne) zalilenie owntracks dodatkowymi gpx'ami
2. Wygenerowanie z owntracksa gpx'a na potrzeby exiftool'a
3. uzycie exiftoola dodajacego tagi GPS position




odwrotnie

python exif2gpx.py /ścieżka/do/folderu/ze/zdjęciami output.gpx --tz +02:00