Hehe, welcome back, balala - I hope your holidays were great and you didn't catch anything "suspicious".balala wrote: ↑August 31st, 2020, 6:07 pm Hello everybody,
Just got home from my holiday. As such, I have to admit I didn't follow closely this topic (and nor any other), so I have to appologise. Accordingly, now my question is if is there anything I can / have to do related to this topic.
Sorry about this...
I'm not sure about the answer to your question, I will probably do things my way even if help comes (that's just the way I am, I must completely understand the things I use before using them, and that's a bit harder when it's someone else's work), but for sure pbutler6 or Mor3bane would be happy to "hear" your opinion about the things discussed in this thread.
To summarize, we built different versions of a "24 hour sundial" using Roundlines and Rotators, basically a circle on which the sun and moon are 'up' (risen) in the upper part of it and are 'down' (set) in the lower part of it. All things went well from a visual and parsing point of view, but there is this problem when on the data source changing its "current day" to the following one, it affects the sun and moon (the sun effect is insignificant, unlike the moon's) positions on their arcs because the values for the rise and set times change from a day to another. The mistake was probably treating the current day as a singularity, when in fact the rise and set times for the previous and the next day (days, in certain scenarios) matter because they might contain the rise or set "pair" of the current day's moonset or moonrise. The fact that the weather.com's API doesn't provide the previous day(s) rise and set times is part of the problem, because, for example, when there is a moonset at 02:30:00 in the current day, it's obvious that the moonrise of that rise + set cycle (which is needed for calculations) happened either the previous day or in some cases more than one day ago - but the weather.com API doesn't provide that data.
I'm currently investigating taking the data from the Weather.com's Astro API (you posted a reply on that thread, you probably know what I'm talking about), because unlike Weather.com's weather API, it allows setting the "start day" to a day in the past, and not necessarily today.
That being said, I might have a question: normally the local computing of rise and set times is pretty complicated. Do you know of a simpler way? Oh, and by the way, if it involves Lua I'll pass.