Toolwatchapp / tw-mobile

Measure the accuracy of your mechanical watch for free. See how it compares versus other watches.
https://toolwatch.io/watch-accuracy-app
5 stars 0 forks source link

Display of the Moonphase #76

Closed AlphonseJr closed 7 years ago

AlphonseJr commented 7 years ago

Version: 0.8.0

Expected Behaviour

The display of the moonphase should match the one of the website or the watchville app : image

Actual Behaviour

The current display of the moonphase doesn't seem to be accurate :

image

Steps to reproduce the actual behaviour

Thanks Hook!

MathieuNls commented 7 years ago

I need the math formulae.

Considering that the image we use is https://github.com/Toolwatchapp/tw-common/blob/master/src/assets/images/clock-disque.png, what is the formula that gives the degree of rotation to apply to the disk accounting for the day it is.

MathieuNls commented 7 years ago

Ping

AlphonseJr commented 7 years ago

Considering the image you gave, and since we should be displaying it TODAY exactly as it is, the formula is simply to rotate it clockwise of 12.41° each day!

AlphonseJr commented 7 years ago

@MathieuNls are you sure it is working properly?

Here is what I get :

image

Do you have the same? Thanks

AlphonseJr commented 7 years ago

My bad ! We should have a rotation of 6.101694915254° clockwise per day (if my new calculation is correct!) I have voluntarily added a lot of decimals as it will allow us to be more accurate without losing any degree after a (very) long period of time, feel free to cut if needed. Thanks !