Open maxdraki opened 4 years ago
Hi
You'd certainly think this would be easy, wouldn't you? ;)
Unfortunately, solunar_cmdline is more than 15 years old, and it's been extended and extended, to the extent that I dare not touch it, for fear of breaking something. Almost everything about this utility is ugly and unserviceable. Frankly, I dare not even try to make modifications of the sort you suggest -- even simple ones of obvious good sense -- for fear of breaking something that will affect other people.
I am planning a whole new version of Solunar, which will certainly support epoch dates, and a number of other formats (JD, MJD...) My plan is for the output layout to be completely configurable, based on a user template. One of the main changes -- although not one that will be visible to users -- will be to separate the math completely from the user interface, so the two parts of the program can be maintained independently. I've got a whole bunch of improvements planned -- I just need to find the time to do this work.
I'm sorry if this isn't the answer you were hoping for. I will get around to implementing your feature in due course, might it might be in a new version of the utility.
Best wishes Kevin
On 06/04/2020 14:03, Max Illis wrote:
Hi - I found your tool while searching for ways to produce a little desktop app (for myself) showing moon rise/ set. I think it will work well, but I'm having trouble with the output time and appending the correct date in Bash.. I can probably hack something together, but I was wondering whether it would be possible to output the times in Epoch format (or a fully qualified date timestamp) to avoid any doubts and hacky workarounds?
Date input in Epoch format would also be useful
thank you
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kevinboone/solunar_cmdline/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPPKXTT5XYNW3DQFBJS4ILRLHHL3ANCNFSM4MCIHJSA.
Hi Kevin, Thanks for getting back to me so quickly! I can sympathise - I'm a software/ data product manager and have had my fair share of untouchable code!
Not to worry, I'll exercise my Bash hacking skills :( but will keep an eye on any updates to the repo
And the enhancements you mention all sound great. To add a little colour; I'm just trying to produce a graph of moon rise and set for the last day or so and looking forward a couple of days - a bit like the graph shown here: https://www.timeanddate.com/moon/uk/southampton I'll most likely collect the data and run it through gnuplot - and add it to my growing collection of mostly totally unnecessary conky widgets! It would be great if I could pass a range of dates, get a json output with moonrise, moonset, zenith and altitude :) my shopping list!
Thank you very much Max
max@illis.uk max@illis.co.uk 07803 009 004
On Mon, 6 Apr 2020 at 15:40, Kevin Boone notifications@github.com wrote:
Hi
You'd certainly think this would be easy, wouldn't you? ;)
Unfortunately, solunar_cmdline is more than 15 years old, and it's been extended and extended, to the extent that I dare not touch it, for fear of breaking something. Almost everything about this utility is ugly and unserviceable. Frankly, I dare not even try to make modifications of the sort you suggest -- even simple ones of obvious good sense -- for fear of breaking something that will affect other people.
I am planning a whole new version of Solunar, which will certainly support epoch dates, and a number of other formats (JD, MJD...) My plan is for the output layout to be completely configurable, based on a user template. One of the main changes -- although not one that will be visible to users -- will be to separate the math completely from the user interface, so the two parts of the program can be maintained independently. I've got a whole bunch of improvements planned -- I just need to find the time to do this work.
I'm sorry if this isn't the answer you were hoping for. I will get around to implementing your feature in due course, might it might be in a new version of the utility.
Best wishes Kevin
On 06/04/2020 14:03, Max Illis wrote:
Hi - I found your tool while searching for ways to produce a little desktop app (for myself) showing moon rise/ set. I think it will work well, but I'm having trouble with the output time and appending the correct date in Bash.. I can probably hack something together, but I was wondering whether it would be possible to output the times in Epoch format (or a fully qualified date timestamp) to avoid any doubts and hacky workarounds?
Date input in Epoch format would also be useful
thank you
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kevinboone/solunar_cmdline/issues/7, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACPPKXTT5XYNW3DQFBJS4ILRLHHL3ANCNFSM4MCIHJSA .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinboone/solunar_cmdline/issues/7#issuecomment-609836273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4IEKQLUZUCBH63CYPIBRDRLHSXRANCNFSM4MCIHJSA .
Hi - I found your tool while searching for ways to produce a little desktop app (for myself) showing moon rise/ set. I think it will work well, but I'm having trouble with the output time and appending the correct date in Bash.. I can probably hack something together, but I was wondering whether it would be possible to output the times in Epoch format (or a fully qualified date timestamp) to avoid any doubts and hacky workarounds?
Date input in Epoch format would also be useful
thank you