mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.31k stars 137 forks source link

The HEIC set to wallpaper doesn't change with time and shows wrong frame #65

Closed V4G4X closed 2 years ago

V4G4X commented 2 years ago

I have the following json:

[
    {
        "fileName": "kimi no nawa-1.jpg",
        "isPrimary": true,
        "time": "2022-07-21T07:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-2.jpg",
        "isForDark": true,
        "time": "2022-07-21T00:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-3.jpg",
        "time": "2022-07-21T08:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-4.jpg",
        "time": "2022-07-21T09:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-5.jpg",
        "isForLight": true,
        "time": "2022-07-21T10:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-6.jpg",
        "time": "2022-07-21T11:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-7.jpg",
        "time": "2022-07-21T12:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-8.jpg",
        "time": "2022-07-21T15:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-9.jpg",
        "time": "2022-07-21T17:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-10.jpg",
        "time": "2022-07-21T18:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-11.jpg",
        "time": "2022-07-21T019:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-12.jpg",
        "time": "2022-07-21T21:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-13.jpg",
        "time": "2022-07-21T21:30:00+05:30"
    },
    {
        "fileName": "kimi no nawa-14.jpg",
        "time": "2022-07-21T22:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-15.jpg",
        "time": "2022-07-21T23:00:00+05:30"
    },
    {
        "fileName": "kimi no nawa-16.jpg",
        "time": "2022-07-21T23:30:00+05:30"
    }
]

As you can see isPrimary, isForDark and isForLight are only for one frame each.
Another thing to note is the +05:30 in the timestamps(My attempt at using my local timezone).

The odd behaviour:

Things I've tried:

But it still doesn't show the Dynamic/Still options the way the stock wallpapers do:

image

I have a MacBook Pro (13-inch, M1, 2020).

V4G4X commented 2 years ago

Incase you were wondering, the generated wallpaper shows the following options:

image

The solarJson is as follow(In case you were curious):

[
    {
        "fileName": "kimi no nawa-1.jpg",
        "isPrimary": true,
        "altitude": 10.6,
        "azimuth": 71.74
    },
    {
        "fileName": "kimi no nawa-2.jpg",
        "isForDark": true,
        "altitude": -49.58,
        "azimuth": 344.87
    },
    {
        "fileName": "kimi no nawa-3.jpg",
        "altitude": 24.18,
        "azimuth": 75.28
    },
    {
        "fileName": "kimi no nawa-4.jpg",
        "altitude": 38.00,
        "azimuth": 78.11
    },
    {
        "fileName": "kimi no nawa-5.jpg",
        "isForLight": true,
        "altitude": 51.96,
        "azimuth": 80.25
    },
    {
        "fileName": "kimi no nawa-6.jpg",
        "altitude": 65.99,
        "azimuth": 81.25
    },
    {
        "fileName": "kimi no nawa-7.jpg",
        "altitude": 80.00,
        "azimuth": 77.43
    },
    {
        "fileName": "kimi no nawa-8.jpg",
        "altitude": 57.43,
        "azimuth": 279.10
    },
    {
        "fileName": "kimi no nawa-9.jpg",
        "altitude": 29.54,
        "azimuth": 283.46
    },
    {
        "fileName": "kimi no nawa-10.jpg",
        "altitude": 15.83,
        "azimuth": 286.70
    },
    {
        "fileName": "kimi no nawa-11.jpg",
        "altitude": 2.57,
        "azimuth": 290.76
    },
    {
        "fileName": "kimi no nawa-12.jpg",
        "altitude": -23.19,
        "azimuth": 302.91
    },
    {
        "fileName": "kimi no nawa-13.jpg",
        "altitude": -29.01,
        "azimuth": 307.31
    },
    {
        "fileName": "kimi no nawa-14.jpg",
        "altitude": -34.46,
        "azimuth": 312.52
    },
    {
        "fileName": "kimi no nawa-15.jpg",
        "altitude": -43.78,
        "azimuth": 326.12
    },
    {
        "fileName": "kimi no nawa-16.jpg",
        "altitude": -47.29,
        "azimuth": 334.82
    }
]
V4G4X commented 2 years ago

The cyberpunk and Earth one who've added in your readme do work.
And they have a description for dynamic too:

image
Macintosh-Fan commented 2 years ago

Not guaranteed to work: Try changing to an Apple default wallpaper, and set it to dynamic. Once done, load in your dynamic wallpaper (I use the services option in Finder with right-click, and set wallpaper).

V4G4X commented 2 years ago

So my bad. The time based wallpaper changes exactly as per it's values. It however was not working well by changing the clock, so I was confused.

The solar coordinated wallpapers also work, but their timings is very off. If the sunset is at 6PM, then sunset frame will have an altitude of around 0 degrees.
But that frame will be set at around 4PM instead.
It's weird.

But closing this issue for the reason that they actually work.