It is currently October 13th, 2019, 11:45 pm

Rainformer 2.4 HWiNFO Edition (formerly illustro Pulsar)

Post your work-in-progress and completed skins to share and discuss.
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: My moon.lua issue in SunMoon.ini

balala » October 10th, 2019, 1:47 pm

mak_kawa wrote:
October 10th, 2019, 1:08 am
Appreciate if you examine this.
Yeah, might be. I never took into account the possible time zone differences, but it probably indeed might have an importance. Will try to analize the reported issue, let's see what can I figure out.
Thanks for reporting.
mak_kawa
Posts: 262
Joined: December 30th, 2015, 9:47 am

Re: Rainformer 2.4 HWiNFO Edition (formerly illustro Pulsar)

mak_kawa » October 10th, 2019, 11:39 pm

Hi balala

I really appreciate for your works/efforts on Rainmeter.
I am looking forward to your result at ease. Again, thank you.
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rainformer 2.4 HWiNFO Edition (formerly illustro Pulsar)

balala » October 11th, 2019, 3:27 pm

mak_kawa wrote:
October 10th, 2019, 11:39 pm
I really appreciate for your works/efforts on Rainmeter.
I am looking forward to your result at ease. Again, thank you.
As promised I'll take a look, but unfortunately I had no time yet. Probably this weekend I will.
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: My moon.lua issue in SunMoon.ini

balala » Yesterday, 7:47 pm

mak_kawa wrote:
October 10th, 2019, 1:08 am
Appreciate if you examine this. And needless to say but, sorry if I am stupidly missing something...
Ok, I finally had enough time to take a look. No, probably you're not missing anything.
Please try to replace the existing SKIN:Bang('!SetVariable Age "'..string.format('%.2f',(synmonth * (fixangle(MoonAge) / 360)))..'"') command of the phase(pdate, unit) function within the @Resources folder, with the following one: SKIN:Bang('!SetVariable Age "'..string.format('%.2f',(synmonth * ((fixangle(MoonAge)-timeZone) / 360)))..'"').
Did this fix the difference issue?
mak_kawa
Posts: 262
Joined: December 30th, 2015, 9:47 am

Re: Rainformer 2.4 HWiNFO Edition (formerly illustro Pulsar)

mak_kawa » Today, 4:37 am

Hi balala
Really thanks for your response/efforts, on your holiday?

So far, your modification for moon age output is possibly not always necessary correction? But I'm not sure.

Attached is a comparison sheet of two outputs from original/modified moon.lua referring moon age data by Japanese official astronomy site (NAOJ).
Untitled.png
The result seems to me that the original code might be valid.

Original:

Code: Select all

SKIN:Bang('!SetVariable Age "'..string.format('%.2f',(synmonth * (fixangle(MoonAge) / 360)))..'"')
Modified:

Code: Select all

SKIN:Bang('!SetVariable Age "'..string.format('%.2f',(synmonth * ((fixangle(MoonAge)-timeZone) / 360)))..'"')
But saying again, I don't know what is correct in astronomical calculation, because of my shortage of...:-)
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8799
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rainformer 2.4 HWiNFO Edition (formerly illustro Pulsar)

balala » Today, 11:34 am

mak_kawa wrote:
Today, 4:37 am
So far, your modification for moon age output is possibly not always necessary correction? But I'm not sure.
Ok, where have you found the previous age calculation? What astronomy sites have you used?