Marijn
Active member
Hello,
For my DIY smart lighting system, I am downloading data from https://sunrise-sunset.org/api once a day to get various timestamps for nautical dawn, sunrise, solar noon etc. for my location.
This API is bugged in some situations. Also, it's my only dependency on the internet which I like to get rid of.
Since I don't need much accuracy (5 minutes difference with the real thing is acceptable), I like to calculate it locally using some math.
But I am unsure if that's actually possible and where to start. Anybody who can help or point me towards some example?
Thanks!
For my DIY smart lighting system, I am downloading data from https://sunrise-sunset.org/api once a day to get various timestamps for nautical dawn, sunrise, solar noon etc. for my location.
This API is bugged in some situations. Also, it's my only dependency on the internet which I like to get rid of.
Since I don't need much accuracy (5 minutes difference with the real thing is acceptable), I like to calculate it locally using some math.
But I am unsure if that's actually possible and where to start. Anybody who can help or point me towards some example?
Thanks!