From cabce29ee2e46948933258529f2b36666149efb0 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Wed, 4 Dec 2024 13:59:49 +0100 Subject: [PATCH] Update changelog --- CHANGELOG.md | 25 ++++++++++++----------- app/services/photoprism/request_photos.rb | 4 ++++ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0bfa4f9..c58f2615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,21 +9,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## The Photoprism integration release -⚠️ This release introduces a breaking change. The `GET /api/v1/photos` endpoint now returns following structure of the response: +⚠️ This release introduces a breaking change. ⚠️ +The `GET /api/v1/photos` endpoint now returns following structure of the response: ```json [ { - "id": id, - "latitude": latitude, - "longitude": longitude, - "localDateTime": local_date_time, - "originalFileName": original_file_name, - "city": city, - "state": state, - "country": country, - "type": type, // "image" or "video" - "source": source // "photoprism" or "immich" + "id": "1", + "latitude": "11.22", + "longitude": "12.33", + "localDateTime": "2024-01-01T00:00:00Z", + "originalFileName": "photo.jpg", + "city": "Berlin", + "state": "Berlin", + "country": "Germany", + "type": "image", // "image" or "video" + "source": "photoprism" // "photoprism" or "immich" } ] ``` @@ -31,7 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Photos from Photoprism are now can be shown on the map. To enable this feature, you need to provide your Photoprism instance URL and API key in the Settings page. Then you need to enable "Photos" layer on the map (top right corner). -- Geodata is now can be imported from Photoprism to Dawarich. +- Geodata is now can be imported from Photoprism to Dawarich. The "Import Photoprism data" button on the Imports page will start the import process. # 0.18.2 - 2024-11-29 diff --git a/app/services/photoprism/request_photos.rb b/app/services/photoprism/request_photos.rb index a7fb000d..276e7e5c 100644 --- a/app/services/photoprism/request_photos.rb +++ b/app/services/photoprism/request_photos.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +# This integration built based on +# [September 15, 2024](https://github.com/photoprism/photoprism/releases/tag/240915-e1280b2fb) +# release of Photoprism. + class Photoprism::RequestPhotos attr_reader :user, :photoprism_api_base_url, :photoprism_api_key, :start_date, :end_date