fauxnik / DerailValleyDayNightMod

[Heads-up! This mod will be sunset and the repository archived upon the release of the Simulator update.] Time-based lighting effects. Pairs well with headlight mods.
https://www.nexusmods.com/derailvalley/mods/182
MIT License
1 stars 1 forks source link

Use lat/lng and date to set sun rise/set time, azimuth, etc. #3

Open fauxnik opened 4 years ago

fauxnik commented 4 years ago
fauxnik commented 4 years ago

Perhaps there is a better API available? sunrise-sunset.org does not include azimuth, only times. https://keisan.casio.com/exec/system/1224686065 exists, but not sure if an API is available for it. (keisan.casio.com has moon rise/set calculation too!)

fauxnik commented 4 years ago

Perhaps the calculation can be baked into the mod? Here's a calculation spreadsheet from NOAA: https://drive.google.com/file/d/1fozIRwwVna1RNcmHidxKC9VgrCEgYS2w/view?usp=sharing

*source: https://www.esrl.noaa.gov/gmd/grad/solcalc/