From 761d1b8ba7edb43431f87ac457028d9e16351029 Mon Sep 17 00:00:00 2001 From: oskar Date: Thu, 28 Aug 2025 17:46:00 +0200 Subject: [PATCH] remove idea, more changes --- .gitignore | 2 + .idea/immich_owntracks.iml | 8 - .../inspectionProfiles/profiles_settings.xml | 6 - .idea/misc.xml | 7 - .idea/modules.xml | 8 - .idea/workspace.xml | 166 ------------------ immich_geotag_from_owntracks.sh | 26 +-- immich_geotag_from_owntracks_final.sh | 15 -- 8 files changed, 8 insertions(+), 230 deletions(-) create mode 100644 .gitignore delete mode 100644 .idea/immich_owntracks.iml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/workspace.xml mode change 100644 => 100755 immich_geotag_from_owntracks.sh delete mode 100755 immich_geotag_from_owntracks_final.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a3a3f1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.venv/ +/.idea/ diff --git a/.idea/immich_owntracks.iml b/.idea/immich_owntracks.iml deleted file mode 100644 index 8437fe6..0000000 --- a/.idea/immich_owntracks.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 9de2865..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 408af21..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index b08fa44..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1756366589997 - - - - - - - - file://$PROJECT_DIR$/immich_geotag_from_owntracks.py - 216 - - - file://$PROJECT_DIR$/immich_geotag_from_owntracks.py - 96 - - - file://$PROJECT_DIR$/immich_geotag_from_owntracks.py - 86 - - - file://$PROJECT_DIR$/immich_geotag_from_owntracks.py - 87 - - - - - \ No newline at end of file diff --git a/immich_geotag_from_owntracks.sh b/immich_geotag_from_owntracks.sh old mode 100644 new mode 100755 index cfef31d..f109ff8 --- a/immich_geotag_from_owntracks.sh +++ b/immich_geotag_from_owntracks.sh @@ -1,29 +1,15 @@ #/bin/bash -# set -x +set -x + +echo running immich_geotag_from_owntracks_final_2.py photoDir="$1" -runCond=${2:-'no'} -# Najpierw test bez zapisu: -python3 immich_geotag_from_owntracks.py \ +python3 immich_geotag_from_owntracks_final_2.py \ --photos $photoDir \ --json /home/pi/own-tracks/owntracks/store/rec/owntracksusr/oskar \ --json-glob "*.rec" \ - --json-max-age-secs 1000 \ - --recursive --dry-run - -if [ $runCond != 'run' ]; then - echo "Dry run done, exiting" - exit 0 -else - # JSON -> GPX -> geotag - python3 immich_geotag_from_owntracks.py \ - --photos $photoDir \ - --json /home/pi/own-tracks/owntracks/store/rec/owntracksusr/oskar/ \ - --recursive \ - --interpolate-secs 180 \ - --time-offset "+00:00" \ - --write inplace -fi + --recursive --dry-run --verbose \ + --json-max-age-secs 3600 \ diff --git a/immich_geotag_from_owntracks_final.sh b/immich_geotag_from_owntracks_final.sh deleted file mode 100755 index c25a7fd..0000000 --- a/immich_geotag_from_owntracks_final.sh +++ /dev/null @@ -1,15 +0,0 @@ -#/bin/bash - -set -x - -photoDir="$1" - -python3 immich_geotag_from_owntracks_final.py \ - --photos $photoDir \ - --json /home/pi/own-tracks/owntracks/store/rec/owntracksusr/oskar \ - --json-glob "*.rec" \ - --recursive --dry-run --verbose - - - -