Skip to content

WeatherKit #60

Open
Open

Description

@1ec5

WeatherKit has a CurrentWeather.isDaylight property and SunEvents struct that essentially replicate the functionality of this library. However, WeatherKit is only available for this year’s operating system releases (iOS 16, iPadOS 16, macOS 13, tvOS 16, watchOS 9). Should this library somehow integrate with WeatherKit on supported platforms, perhaps becoming a compatibility shim for it on unsupported Swift platforms like Linux?

Activity

  1. 1ec5 commented on Jun 6, 2022

    @1ec5
    CollaboratorAuthor

    This might be a tad optimistic, considering potential pricing and usage limits around WeatherKit in general, but I opened this issue in case the presumably local stuff above is exempt.

  2. gshaw commented on Jun 9, 2022

    @gshaw

    WeatherKit also requires a network connection and as isn't free. Personally, I think there is value in having a focused Swift package like Solar for those that need sunrise and sunset but not the weather.

  3. 1ec5 commented on Jun 9, 2022

    @1ec5
    CollaboratorAuthor

    Yeah, it’s unfortunate that the calendrical functionality got bundled up with the live weather functionality. Maybe a good next step would be to investigate and document how well this library and WeatherKit agree on the sunrise/sunset calculations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions