-
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This is likely out of scope, so feel free to close, but I noticed it took me a bit of time to upgrade to the latest version (perhaps an hour so) which is fine, but I was thinking it could be worthwhile to have some more simple usage examples for possible common needs like fetching sunrise/sunset etc.
This shows my before and after in a Rails app, where I'm being mindful of the Ephem data size, showing some tests, etc -- definitely too much for the wiki, but let me know what you think:
https://gist.github.com/trevorturk/0c25ac62ee80efe4c9347ed38214d4a5
I could work up an example that's more streamlined for a typical Rails app, for example, or just a Ruby script to output a few things about the current sun/moon stats in the console?
Note I added a bin/update example which downloads "current" data for the next year and also a longer range for "test" data -- might be worth considering having a simpler script to produce the recommended data for the next year or something along those lines? No biggie, of course, just food for thought as I'm setting up this system!