How does sunsetr get the sunsrise/sunset times? #50
Answered
by
psi4j
Dinofrostboy
asked this question in
Q&A
|
I don't know any rust so I don't know what to look for but I was curious on how does an offline process (i think) get this info from (couldn't find it explained anywhere else). Thanks! |
Answered by
psi4j
Feb 25, 2026
Replies: 1 comment
|
Hey @Dinofrostboy. So sunsetr has an internal database that maps 10,000+ cities to their precise geolocation. I also mapped 500+ timezones to an approximate set of coordinates. These are all statically compiled into the Rust binary and don't require an internet connection. I'm actually looking at adding an option for integrating with Geoclue in the near future. |
0 replies
Answer selected by
Dinofrostboy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Dinofrostboy. So sunsetr has an internal database that maps 10,000+ cities to their precise geolocation. I also mapped 500+ timezones to an approximate set of coordinates. These are all statically compiled into the Rust binary and don't require an internet connection. I'm actually looking at adding an option for integrating with Geoclue in the near future.