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

Astro stop working if api.sunrise-sunset.org is unreachable #19

Open
alepez opened this issue May 31, 2018 · 0 comments
Open

Astro stop working if api.sunrise-sunset.org is unreachable #19

alepez opened this issue May 31, 2018 · 0 comments

Comments

@alepez
Copy link
Contributor

alepez commented May 31, 2018

If internet connection isn't available at the time Astro request to api.sunrise-sunset.org the time of sunrise/sunset etc..., the plugin stop working. Scheduled actions are not called.

Possible solution is to cache the sunrise/sunset time points and use the old one when connection is available. Using the time points of the day before is not perfect, but acceptable: the error is of some seconds. Not working at all is really bad.

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

No branches or pull requests

2 participants