smhg / sublime-suncycle

Sublime Text layout switch based on sunrise and sunset at your location.
MIT License
12 stars 6 forks source link

A bit confused about why this config isn't working... #1

Closed brandonpittman closed 10 years ago

brandonpittman commented 10 years ago

Here's my config:

{
    "latitude": 35.1579955,
    "longitude": 136.918805,
    "day": {
        "color_scheme": "Packages/Theme - Spacegray/base16-ocean.light.tmTheme",
        "theme": "Spacegray Light.sublime-theme"
    },
    "night": {
        "color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
        "theme": "Spacegray.sublime-theme"
    }
}

Looks like it should work, but there's no change.

smhg commented 10 years ago

Thank you for trying it out.

Is it possible your system's timezone and the timezone of this location differ? Currently sunset/sunrise dates for the specified location are returned in your system's timezone. I'll try to come up with a fix.

smhg commented 10 years ago

I'm pretty sure I fixed it (version 1.1.0). Calculations now use the timezone of the coordinates you specify. This requires a call to the Google Maps Time Zone API once a day (to catch DST changes) or on config changes. Without an internet connection you will get your system's timezone (a file cache should fix this in the future).

Could you please try again? (I believe Package Control should update the package automatically upon restart, but please check)

brandonpittman commented 10 years ago

Seems to be working now. Thanks a bunch!