WeeWX Returning Moon phase as Full when it should be Waning Gibbous

212 views
Skip to first unread message

Steeple Ian

unread,
Nov 17, 2024, 7:09:43 PM11/17/24
to weewx-user
It has been noticed that moon phase is still showing as Full when it has been Waning Gibbous since November 16.

            <td class="label">Phase</td>
            <td class="data">Full<br/>
              94% full</td>

Screenshot 2024-11-18 at 00.08.54.png

Steeple Ian

unread,
Nov 17, 2024, 7:15:16 PM11/17/24
to weewx-user
This was a fresh clean install of 5.1 using pip into RaspberryPI OS Bookworm with all the latest updates.

Steeple Ian

unread,
Nov 17, 2024, 7:21:03 PM11/17/24
to weewx-user

Greg from Oz

unread,
Nov 17, 2024, 10:35:18 PM11/17/24
to weewx-user
Mine says the same:

michael.k...@gmx.at

unread,
Nov 18, 2024, 12:26:48 AM11/18/24
to weewx-user
What is the problem? The percentage, or the fact, the phase is named "Full"?
2024-11-18 06_23_13-The weather in AT, Salzburg, Hallein, Rif - Brave.png

Greg from Oz

unread,
Nov 18, 2024, 2:23:17 AM11/18/24
to weewx-user
It is now:

Phase:

Waning gibbous
(92% full)


It takes a while to change....no problems I guess?

michael.k...@gmx.at

unread,
Nov 18, 2024, 2:58:16 AM11/18/24
to weewx-user
:)
Two hours later:
2024-11-18 08_57_22-The weather in AT, Salzburg, Hallein, Rif - Brave.png

Greg from Oz

unread,
Nov 18, 2024, 3:11:53 AM11/18/24
to weewx-user
Original post said 2 days ago.
Anyway, it does change eventually.

Steeple Ian

unread,
Nov 18, 2024, 4:04:55 AM11/18/24
to weewx-user
Yes it has changed for me now. The point is that all other sources I looked at (XWeather API, online calculators etc) where correctly saying Waning Gibbous from the November 16 when WeeWX was still reporting as Full.

I am aware of different methods of calculating the fullness description but a two day difference in transition from Full to Waning Gibbous seems to be "odd" to me.
Ian

gjr80

unread,
Nov 19, 2024, 10:17:22 PM11/19/24
to weewx-user
I suspect you will find the 'granularity' in the calculation used by WeeWX to determine where we are in the lunar cycle in percentage terms is the main factor that contributes to 'delays' in WeeWX displaying the Moon phase. It would also not surprise me that, depending on the time of day of full moon (ie the precise point in time when the Moon is fully illuminated rather than the ill-defined period where the Moon is said to be 'full'), this delay can be seen to be exacerbated on occasions.

We could of course look at changing the calculations used by WeeWX; perhaps someone might like to start by providing clear definitions of the 8 Moon phases used by WeeWX.

Gary

Dave Vaughan

unread,
Nov 19, 2024, 11:58:01 PM11/19/24
to weewx-user

How about using https://de.wikipedia.org/wiki/Mondphase as a starting point. The link points to the German page, but in the left column you will find many languages. 

Dave Vaughan

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/4f9580d1-e022-42e8-b8a1-36a1f7059c2bn%40googlegroups.com.

Virus-free.www.avg.com

Steeple Ian

unread,
Nov 20, 2024, 2:06:08 AM11/20/24
to weewx-user
Gary,

The English version is here: -

https://en.wikipedia.org/wiki/Lunar_phase

Ian

Karen K

unread,
Nov 20, 2024, 2:34:35 AM11/20/24
to weewx-user
There is a formula in weeutil.Moon.py that divides the full cycle (month) of the moon into 8 equidistant parts. Each part is 12.5% of the time (month). That applies to full moon and new moon as well. 

steepleian

unread,
Nov 20, 2024, 3:19:29 AM11/20/24
to weewx...@googlegroups.com, weewx-user
Karen,
It is that calculation that appeared to be 2 days out of sync with with the other sources mentioned in my original post.
Ian

On 20 Nov 2024, at 07:34, Karen K <kk44...@gmail.com> wrote:

There is a formula in weeutil.Moon.py that divides the full cycle (month) of the moon into 8 equidistant parts. Each part is 12.5% of the time (month). That applies to full moon and new moon as well. 

Karen K

unread,
Nov 20, 2024, 4:28:43 AM11/20/24
to weewx-user
I am not sure, but I guess it is.

Steeple Ian

unread,
Nov 25, 2024, 9:42:37 AM11/25/24
to weewx-user
Gary,
I have been passed the attached piece of code. It looks as though it could be of some use to modify the WeeWX calculations.
Ian
MoonphaseAngle.zip
Reply all
Reply to author
Forward
0 new messages