Add Memory Mode as separate feature with independent schedule
Replace the previous memory order_by option with a dedicated Memory Mode feature that has its own enable toggle, schedule (interval/start hour), and settings. Users can now run both Scheduled Assets and Memory Mode independently at different times. Memory Mode fetches photos taken on today's date in previous years using the memory_date parameter, sorted by date ascending (oldest first). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -199,19 +199,12 @@ Sends scheduled notifications with existing assets from tracked albums. Uses the
|
||||
| `limit` | Maximum number of assets to fetch (1-100) |
|
||||
| `favorite_only` | Only fetch favorite assets |
|
||||
| `asset_type` | Filter by type (all, photo, video) |
|
||||
| `order_by` | Sort by (random, date, rating, name, memory) |
|
||||
| `order_by` | Sort by (random, date, rating, name) |
|
||||
| `order` | Sort direction (ascending, descending) |
|
||||
| `filter_min_rating` | Minimum rating filter (1-5, 0 = no filter) |
|
||||
| `min_date` | Assets created on or after this date (YYYY-MM-DD) |
|
||||
| `max_date` | Assets created on or before this date (YYYY-MM-DD) |
|
||||
|
||||
#### Memory Mode ("On This Day")
|
||||
|
||||
When `order_by` is set to `memory`, the blueprint fetches photos taken on today's date in previous years - similar to "On This Day" memories in photo apps. This mode automatically:
|
||||
|
||||
- Uses the `on_this_day` parameter with the current date
|
||||
- Sorts by date in ascending order (oldest first)
|
||||
|
||||
### Scheduled Assets Message Template Variables
|
||||
|
||||
| Variable | Description |
|
||||
@@ -235,6 +228,46 @@ To target a specific automation, set its Automation ID in config and include it
|
||||
|
||||
- **Event data**: `{"automation_id": "your-automation-id"}`
|
||||
|
||||
## Memory Mode (On This Day)
|
||||
|
||||
Send scheduled notifications with photos taken on today's date in previous years - similar to "On This Day" or "Memories" features in photo apps. This is a separate feature from Scheduled Assets with its own schedule and settings.
|
||||
|
||||
### Memory Mode Options
|
||||
|
||||
| Option | Description |
|
||||
|--------|-------------|
|
||||
| `enable_memory_mode` | Enable/disable memory notifications |
|
||||
| `interval_hours` | How often to send (1-168 hours) |
|
||||
| `start_hour` | Hour of day for first notification (0-23) |
|
||||
| `album_mode` | per_album, combined, or random |
|
||||
| `limit` | Maximum number of assets to fetch (1-100) |
|
||||
| `favorite_only` | Only fetch favorite assets |
|
||||
| `asset_type` | Filter by type (all, photo, video) |
|
||||
| `min_rating` | Minimum rating filter (1-5, 0 = no filter) |
|
||||
|
||||
### Memory Mode Message Template Variables
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `{album_name}` | Name of the album |
|
||||
| `{album_url}` | Share URL for the album |
|
||||
| `{album_created}` | Album creation date (empty in combined mode) |
|
||||
| `{album_updated}` | Album last update date (empty in combined mode) |
|
||||
| `{asset_count}` | Number of memory assets fetched |
|
||||
| `{assets}` | Formatted list of assets (using asset item template) |
|
||||
| `{common_date}` | Common date if all assets share same date |
|
||||
| `{common_location}` | Common location if all assets share same location |
|
||||
|
||||
### Testing Memory Mode
|
||||
|
||||
To test without waiting for the scheduled time, fire this event:
|
||||
|
||||
- **Event type**: `immich_album_watcher_test_memory_mode`
|
||||
|
||||
To target a specific automation, set its Automation ID in config and include it in the event data:
|
||||
|
||||
- **Event data**: `{"automation_id": "your-automation-id"}`
|
||||
|
||||
## Author
|
||||
|
||||
Alexei Dolgolyov (dolgolyov.alexei@gmail.com)
|
||||
|
||||
Reference in New Issue
Block a user