Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeatherKit #60

Open
1ec5 opened this issue Jun 6, 2022 · 3 comments
Open

WeatherKit #60

1ec5 opened this issue Jun 6, 2022 · 3 comments
Labels

Comments

@1ec5
Copy link
Collaborator

1ec5 commented Jun 6, 2022

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?

@1ec5 1ec5 added the question label Jun 6, 2022
@1ec5
Copy link
Collaborator Author

1ec5 commented Jun 6, 2022

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.

@gshaw
Copy link

gshaw commented Jun 9, 2022

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.

@1ec5
Copy link
Collaborator Author

1ec5 commented Jun 9, 2022

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants