Moon phase watch face studio

Hello everyone, I’m a new developer and have already studied this application enough, but so far I can’t figure out how to make moon phases for my watch face? I use watch5 and I have a watch face in the base watch faces that has these phases, and it can be replaced with another indicator, for example, for the pulse, and therefore it looks like the phases of the moon can be added to your watch face quite simply . Tell me, is this so and how can it be done?
33

1 Like

Watch Face Studio training for TAGs is on THIS PAGE

A good Tutorial is this BLOG while it is for Galaxy Watch Studio and has slightly different tags it is a good tutorial and you can adapt it very easily.

Hope this helps

Ron
Samsung Developer Relations

2 Likes

I use this to rotate two images behind a classic Moon Phase Mask .
You can Conversely use the Formula to cover the Moon with a Shadow Disc. That is also a Classic Device .

(90+((([MOON_PO]/56))*360))

I have a 28 Image Moon Phase Gadget but there are a lot of resources and code there for each of the 28 Layers . If you are interested in that I could post them in a Zipped folder .

I also have a Moon On a Stick to complement the Sun on a Stick .

(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))

I am working on a Raster Moon Grid . 4X7 . Which appears behind a circular mask . I have the Formula Working but need to set the Images to the grid .
You could finish that off.

Have fun .

1 Like

Hi, is it possible to create an animation with a time interval using 8 images of the moon for each phase? Or show the different images of the moon for each phase separately?

Thanks

1 Like

Hi @steven.simons . Yes it is possible . There is a Tag for that . I can not remember its name . have your Moon images on top of each other and switch them on and off with opacity .
This will show your image at the full moon . Look a the tag list to check the phase numbers note they go from 0 to 7 . Also note == . Had me foxed for 15 minutes .
Final not you don’t always need all the ( ) that is just me .
.
.
((([MOON_TY])==4)?100:0)

There is a blog that uses Tags for moon phase images to shown and be hidden It was for GWS so the tags are a bit different but the math is correct.

You can have a background with a “hole” in it and then have a disk underneath that rotates to show the moon image if you want more of a very slow animation effect.

Ron
Samsung Developer Relations

1 Like

Or u could try this to, using masking technic

Tweek accordingly

1 Like

Hello @Russel
If I understand correctly, you import a photo of each moon phase and add another tag?

((([MOON_TY])==0)?100:0).

((([MOON_TY])==1)?100:0)

((([MOON_TY])==2)?100:0)

1 Like

Yes . Keep it simple till you Build some experience . Its only 8 Images . If you want to have a go later , or now what ever , I have the resources for 28 days . I think I have posted them here Before . Sorry again for the time zone delay and the fact that I was trying to finish something on another Platform .
.
I will introduce you to some Voodoo . This is a FAKE ZIP Copy of my Personal Face . Well as much as I can reproduce on WFS . I have more stuff on the one I wear made on one of the other Platforms .
.
If you want to inspect it or even load it to your watch you just delete ZIP and replace it with WFS .

You will see I have two methods of representing the moon phase . One what it looks like and the other Why . I am very lucky where i am as the position of the Moon Hand perfectly predicts our Tides . Apart from being a Lunatic we like swimming in them sea . Where we are the Beaches are quit small and often covered by the Atlantic Swell . Interestingly I can see the Tide Calibration Station . from the garden . It is here I think because the tides are so symmetric here .
I have other examples of moon phase stuff as @Knightwing has shown . I got a Smartwatch so I could have the Moon Phase on my watch but I did not realise I could make them Myself . That was three and a Half years ago I can not stop myself . Let me know if you are interested in the others . I will Voodoo them to you .
.
.
MP28_5710.ZIP (3.6 MB)

1 Like

@steven.simons

You can have a background with a “hole” in it and then have a disk underneath that rotates to show the moon image if you want more of a very slow animation effect.

I should have mentioned that the tag for that is [MOON_PO] and that it 0.xxx ~ 28 scale (example 11.234) so you can really fine tune the rotation or placement.

Ron
Samsung Developer Relations

2 Likes

Hello @russellcresser, first I want to thank you for posting your Watch Face here I learned a ton from it. I am new in all of this. Just need a bit of help.

I succeded in making the moon phases, but I cannot wrap my mind around predicting Tides.
I can see your formula in the Watch Face you posted “(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))” that as you said perfectly predicts Tides, but don’t know what to do with it.

My goal is to have 6 pictures (2 sicles) on top of each other and switch them on and off with opacity, but don’t know which equation to use.

1 Like

Hi and welcome @36dusan . You must understand that I can not give you a Formula that will show your tides . For me in my location the Tides are symmetric so they fall in nicely with the Rotation of the Moon relative to the 24 Hrs Dial . I you open the File I posted above you can check you local tides against the movement . So you high might be at 2 and 8 your lows at 4 and 10 . you can then put some markers in at those position on the Face . You can make a note of the angles of the Hands and use them in an Opacity Conditional for some images .
Let us see how we go . I is good if you can post images of where you have got to .

Here is a shot of the Face Above . To open it after you download it change the .ZIP extension to .wfs .
.
.

MP28_5710_20240922_10024407
.
.

OK I just put hat Formula in a Text box to see it working . I have never done that before . I check stuff visually and refer to Tide and Moon Phase Tables to check it . I live by the see so I get to check that stuff daily .
The numbers are complete nonsense because they go above 360 and below zero . I will look at it a bit mor e. to see if I can rationalise it to 6 opacity swaps . Perhaps you will outline what is shown with the images .
.
.
Here is something else I was working on . It is very much a WIP . You might find something interesting in there . It might be too much .
.
.
TIDE_SINE_TEST_20240922_10402152

.
TIDE_SINE_TEST.wfs.ZIP (716.7 KB)

.
Just delete .ZIP after downloading .

1 Like

Thank you very much for replying. I have not yet oppened the wfs you sent but I will.

Having read your reply I think that formula could be altered in a way that if the result is above 360 you could just subtract 360 from it and if it is below 0 just add 360.

The other thing is regarding opacity level, since the moon hand goes 360 and i have 6 images (2 sicles per day)it could be, since one sicle is 180 degrees, just divided with 6 and we get 30. So then find a point in the past that the tide was at peak at my location and just add 15 deggres on both sides from that point, and that is the range for the peak image and than just go further with the rest?
Thats just off the top of my head. I will try it and post the results.
I hope I was comprehensable haha

1 Like

Ok . I am beginning to get you . I have managed to get my formula to produce 360 degrees only but it runs back . You are talking about 6 Cycles I think . In my head there 4 in the average day two high and two low . The thing about the rotating sun and moon is that the relationship of the two is exactly how the tide is driven . What we are talking about is local Variation . I will show you a test with a Clear analogue solution .

1 Like

I have also managed to keep your formula between 0 and 360

(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))>360?(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360)) -360:(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))<0?(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))+360:(((([HOUR_1_24_MIN])*15)+180)-((([MOON_PO])/28)*360))

its a bit long but it works

and than i found that according to your formula my tide peak is at 48 degrees so, I just put that in the formula for opacity to work between 33 and 63 degrees, or from 48 to 78. Than just do the same, with different degrees for the rest.
And I think that the job is done( I hope so)

Untitled

I included the picture so you get the visuals on what I’m trying to do
Those green empty places are to be filled whith black pictures, if you know what I mean, the third one from left is for the peaks, and the last one is for the lows
Thank you again!

1 Like

Ok wow . So it seems like you know what you are doing . Formula bending is part of the Art . When I started playing with moon stuff the guys were using DNOW on Facer to make it work . ( Unix Epoch Timer . ) These days it is so much easier with things like MOON_PO . Please let me know where you Live more or less . I do not want your address , just so I can see how symmetric your Tides are. Does the Beach Ball move our the way of the end of the Bar Graph ?

1 Like

This is what I was working on . Different ball game . Oh . Nice graphics BTW well what I have seen .
.
.
TIDES_BASIC_TEST.wfs.zip (184.0 KB)

I “kind of know” what I am doing, haha, intensive use of excel prepared me.
I am trying to get the tides for Herceg Novi, Montenegro

The things you have done in these two WFSs are at least impresive to me! The beach ball moving like sine function is really nice touch, plus the formulas… are impressive

Thank for the comment, I will post the whole thing when I it them in a bit.

1 Like

This is the Tide range I have for you in my Favourite ( Split was as near as I could get ) . I see your tide is not very symmetric . I did not think there was much of a tide in the mrditaeranins sea . But I suppose where you are it is different . You ara a little like the Bay of Fundy with only one tide . Here is a shot of ours . Tide range is high today because of the Harvest Moon . I will be very happy to Beta test for you .
.


.
.

I guess it is a bit different, the one near you looks a bit extreme.

I encountered another issue but it is Watch Feace Studio one.
When I try to upload what i did to my watch( Galaxy watch 4 classic) it says my watch require 34 or higher SDK and my device support up to 33. I am using Watch Face Studio 1.7.9(Beta) one. Is there any other solution than downloading 1.6.10 version and starting all over again as i read on other thred because it is not backwards compatible.

( the problem is Circle Complication I added, and i cannot use [WTHR_TEM] on text…)

1 Like