mczachurski / wallpapper

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

Incorrect Solar frames picked during the day #78

Open V4G4X opened 3 months ago

V4G4X commented 3 months ago

I want to try to specifically use the Solar method over time method because I feel it has the potential to be more accurate, over the seasons.

I have 3 frames, that I am using as 4. (I'll explain). Frames:

  1. Dusk frame (I want it to come a little before sunrise, let's say 6 AM or an altitude of -7 and some azimuth 65)
  2. Day frame (A couple of hours later, a positive altitude of 12 and a similar azimuth to the sunrise frame 72)
  3. Dusk frame (Pre-Sunset frame, a little higher altitude of 30, and complimentary(360 minus 72-ish) azimuth 282)
  4. Sunset frame(Sunset frame, a little lower altitude of 13, and similar azimuth 286))
  5. Night Frame(Negative altitude -6, and similar 294)

As I've explained, these numbers both:

  1. Make sense to me logically (as I've explained in English)
  2. Are validated by a Sun position calculator for where I live

But the frame transitions are weird, I randomly get the sunrise frame at around midnight. Other transitions also happen quite differently than expected.

Something feels off.

What could be the cause of this?
I made sure my system can have location permissions so gets its current Lat/Long accurately.

My config:

[
  {
    "description": "Around 7 AM local time/day",
    "fileName": "day.jpeg",
    "isPrimary": true,
    "isForLight": true,
    "altitude": 12.75,
    "azimuth": 72.83
  },
  {
    "description": "Around 5 PM local time/pre-sunset",
    "fileName": "dusk.jpeg",
    "altitude": 30.38,
    "azimuth": 282.48
  },
  {
    "description": "Around 6 PM local time/sunset",
    "fileName": "sunset.jpeg",
    "altitude": 13.34,
    "azimuth": 286.42
  },
  {
    "description": "Around 7:30 PM local time/night",
    "fileName": "night.jpeg",
    "isForDark": true,
    "altitude": -6.66,
    "azimuth": 293.88
  },
  {
    "description": "Around 6 AM local time/sunrise",
    "fileName": "dawn.jpeg",
    "altitude": -7.39,
    "azimuth": 65.95
  }
]

Am I:

  1. Putting the values in wrong?
  2. Am missing some other system setting?
  3. Lacking and should add some more frames to my wallpaper?

Please let me know your thoughts and advice.