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

Day/night time based on current location #13

Open
niks255 opened this issue Oct 22, 2023 · 2 comments
Open

Day/night time based on current location #13

niks255 opened this issue Oct 22, 2023 · 2 comments

Comments

@niks255
Copy link

niks255 commented Oct 22, 2023

Would be really cool

@Yanndroid
Copy link
Owner

Do you mean when you're at home or work? Constantly scanning for your current location can significantly reduce your battery life. A more efficient approach would be to check for a Wi-Fi network instead. For example, when you arrive at home, your device can automatically connect to your home Wi-Fi, and my app can then listen for this event to change the wallpaper.

@niks255
Copy link
Author

niks255 commented Oct 25, 2023

Do you mean when you're at home or work? Constantly scanning for your current location can significantly reduce your battery life. A more efficient approach would be to check for a Wi-Fi network instead. For example, when you arrive at home, your device can automatically connect to your home Wi-Fi, and my app can then listen for this event to change the wallpaper.

No, i mean receiving sunset and sunrise times for current location and using those values as day/night times. Updating those values every 12 or 24 hours or so should be sufficient and not heavy on battery.
There are services that provide sunset and sunrise times for given location, for example https://sunrise-sunset.org/api

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

No branches or pull requests

2 participants