Is there any good math for the time of Moonrise and Moonset?
Any pointers greatly appreciated…
WFS provides tags for the Moon position. Do you want the region-wise moonrise and moonset?
The [MOON_PO] Tag is Brilliant . We have tested it in Atlanta , Penzance Milan and Taipei . It is not possible to get the Time of Moon Rise , Moon Set from this Data . As with Sun Rise / Sun Set WFS does not provide data for that . I have a Face which shows the Sun and Moon progressing round the Face in a 24 hrs cycle . The Moon follows the Sun arround but it’s rotation is slightly slower and moves anticlock relative to the Sun , over the approximately 29.53 days . It actually gives you a good Idea where the Moon is assuming 12 is pointing South .
If you are still interested I can post the Formula here later . You are also welcome to inspect the .zip if you wish .
Hello @Boshra and @russellcresser - yes, a region-wise moonrise and moonset would be optimal - though not sure if this is at all possible. Russel - if you have the .zip or formula to play with that would be greatly appreciated!
You do not need to worry about Local Time . It will be automatically adjusted like the 24 Hrs Hand .
You are more than welcome .
You probably know how to make a 24hrs hand ( image ) Rotate by changing the Angle .
((([HOUR_1_24_MIN])*15)+180)
The Rotation Angle of the Moon Hand .
(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))
Here is the face I made using it . There is some other stuff in there you might like . It is as far as I could go to copy my Facer Face that I wear every day .
MP28_5710_FIN.zip (3.6 MB)
Please forgive the Easy Read look , the combined age of my eyes is 148 years .
I can post the 28 moon images if you would like to use them .
Hi @russellcresser - thanks so much for the formula and the .zip file. I really appreciated your helpfulness! Let me try to play with it a little.
If you could post the 28 moon images that would be great! Thanks in advance.
Here you are 28 images in the Zip . Also a nice moon image to use as a Filter . Not my Image I don’t know who owns the property . I think it is a NASA Image so it is not a problem .
.
.
BM 28.zip (278.4 KB)
.
.
Hi Russel - thanks a zillion!
I can tell you it is a Great pleasure . This is the Reason I got a smart watch . I could not do this on my Tizen but thanks to WOS3 it is a lot easier . It is Wonderful to share . I look forward to seeing your Work when it is Done .
Hi Russell - thanks again for your generosity in sharing… let me see where things will be leading me…
Here is an answer to your question:
Calculating the time of moonrise and moonset involves understanding the motion of the Moon relative to the Earth. While there isn’t a simple linear formula like sunrise and sunset, there are methods to estimate these times. Let’s explore some approaches:
Basic Approach:
The time of moonrise and moonset is influenced by the Moon’s orbital motion around the Earth and the Earth’s rotation.
The Moon rises in the east and sets in the west, similar to the Sun.
The exact time varies daily due to the Moon’s orbital path and the Earth’s rotation.
Moonrise and Moonset Times:
The times of moonrise and moonset depend on your location (latitude and longitude).
You can use online tools or APIs that calculate these times based on your specific coordinates.
Some websites provide moonrise and moonset calculators where you input your location and get accurate times for a given date.
Trigonometric Approach:
The moonrise and moonset times can be calculated using a similar formula to the one used for sunrise and sunset.
The formula involves trigonometry and considers the observer’s latitude and the declination of the Moon.
The formula is: tan(t)=tan(ϕ)⋅tan(δ)
(t) represents the time of moonrise or moonset.
(\phi) represents the observer’s latitude.
(\delta) represents the declination of the Moon.
Moon Phases:
To determine the lunar phase, you can calculate the number of days since the last full moon.
The Moon’s synodic period (time between successive full moons) is approximately 29.5 days.
Knowing the date of the last full moon, you can estimate the current lunar phase.
Online Tools:
Use specialized tools or websites that provide accurate moonrise, moonset, and lunar phase information.
These tools take into account complex astronomical calculations and provide reliable results.
Best Regards
Sonia Alvarez
Hey @sonia0992alvarez . Great stuff. Very advanced maths . An example formula would be nice to help us understand . When we have LAT , LNG from an API how do we pass that to the WFS Created Watchface . I kind of guess the whole face would have to be Made in Android Studio or another . I guess you are talking about an App that we can call separately from the Watch Face . If you know of one please Share .
I found your example file helpful. I wimped out and used [MOON_TY] with just 6 images for my moon phase window.
Can’t decided if the time I wasted tracking down a missed parenthesis in one of the functions that used an OR operation would have been equal to the time required to create the gibbous phase images and figuring how how to place them.
You can use an analog / smooth formula for that . I can not help right now . In a few days I can post a test .
Here is a Test and the resources I used . You will see that they are set off centre a bit . Also I have a test layer run with the 24 hrs slider to show how it works and get the pivot position right . The file posted below just deleted the .ZIP part of the extension and it will open in your WFS . I use August 2023 for testing as it begins and ends with a Full Moon .
.
.
.
.
SMOOTH_MOON_TEST.wfs.ZIP (477.8 KB)
Thanks. I’ll have a look certainly.
Right now I’m trying to figure out how to publish another watch face so that other people can put it on their Wear OS watches. Running into keystore password error issues. Going to do a search here.
Yes . Publishing something on the store is a Big Issue . Good to hear back from you . I thought you had disappeared . Always good to get some feedback if you try to help someone . You can share your work wit us as I did above . Add .zip to the end of your watch file after duplicating it an post that her . As above . I can not help you with Publishing it . If you look at some of the posts on the Subject most of the makers are having problems with that .
Publishing something for free so your friends can easily put a new face on their watches is a twisted nightmare on Google. I’ve got to the part where I upload endless variations of my watch face for all possible device screen formats.
Had a look at your smooth moon phase. Very nice. It looks like you have two “moons” just like actual mechanical clocks do. I was satisfied with my simple implementation but I may have another look.
Thanks again.