zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
329 stars 18 forks source link

"JSON document is empty" while using kdynamicwallpaperbuilder #47

Closed psampathkumar closed 4 years ago

psampathkumar commented 4 years ago

I can't seem to get it to work. I tried keeping it in the same folder as images and everything. I have attached the relevant JSON document.

metadata.json

If it is any help, I am able to read the json document using pandas in python.

`

thblckjkr commented 4 years ago

I had the same problem, long story short, the document schema changed.

You need to take out the MetaData property to the root level

Somethig like this

# metadata.json
[
    {
                "Time": 0,
                "FileName": "dear-1.jpg"
    },
    { 
        // The rest of the elements
    }
]
psampathkumar commented 4 years ago

Thanks a lot. I have a few followup issues though. If i just take MetaData property to root level, I get the error, Time must be a String. Putting time under quotes, gives the error, Failed to parse Time.

thblckjkr commented 4 years ago

Oh yeah, completely forgot about that.

Time needs to be in hh:mm format.

psampathkumar commented 4 years ago

Thanks a lot. This worked.

zzag commented 4 years ago

Time needs to be in hh:mm format.

Yeah, I had received a couple of complaints about specifying the time as a real number between 0 and 1, so I've changed that in v3.