alangrainger / obsidian-google-photos

Connect to Google Photos from Obsidian
GNU General Public License v3.0
93 stars 5 forks source link

Filtering issue #27

Closed Knaackee closed 11 months ago

Knaackee commented 11 months ago

Again, thanks for your work!

I have some issues. I want to show my images in my daily note.

Dermine date from: Notes title Title date format: YYYY-MM-DD-dddd

E.g. the title note for today is 2023-09-25-Monday.

1. The first thing I tried was using:

    ```photos
    today

But this always shows the images from today and not from the date specified in the title. 

## 2. I tried the query
  {
    "query": {
      "filters": {
        "dateFilter": {
          "dates": [{
            "year": 2023,
            "month": 9,
            "day": 23
          }]
        },
      }
    }
  }


This shows all the images in google photos, for every day.

Any idea what I am doing wrong? 

Thanks again!
alangrainger commented 11 months ago

But this always shows the images from today

How could I change the docs to make this more clear?

Knaackee commented 11 months ago

The docs are good, it was my mistake. It tried notedate before, but it wasnt working. So i assumed it was a placeholder in the docs and then tried today.

Now its working, i love it.

But how to get working in my weekly and monthly Note? The Query always returns all images.

alangrainger commented 11 months ago

That's not valid JSON - you have a trailing comma. I will add a message to let people know they have invalid input.