How to calculate Moon phase?

Is there any way to calculate moon phase on the app? I am working on a calendar app and want to include moon phases to. I don’t even know where to start to calculate it.

Not native,

You can try to run some PHP code through

or Python

That being said am looking into it. I have another extension I am building and this might be something I look at to add.

1 Like

I don’t know how to use it in the app (I am a noob) can you plz explain

Its not for new people :slight_smile:

Let me see what I can come up with. I have Lunar Phase Index working. I am now trying to get the luminance.

1 Like

Ok . try this.

Tell me if it works for you.

MoonPhase.aix (14.9 KB)

1 Like

I got these values
62.61927 for moon phase & 2 for moon phase index
Can you plz explain what are these values and how to use these info :smile:

Put your mouse over the blocks and it will give you a description.

The 62.6… something is not right about that I dont think.

Running some tests

1 Like

I fixed a few bugs.

Go here for the latest one.

1 Like

thx :ok_hand:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.