Help with ZODIAC Rotation

Hi Andrew, I tried this formula and it works great on Tizen but unfortunately it doesn’t work on wear os, thus in the samsung gear 4 (and in the facer app preview also). Did u find meanwhile a fix? Thanx!!

1 Like

Keep it simple …

$#DD#<20?#DM#*360/12:(#DM#+1)*360/12$
1 Like

thanks Andrew, I tried but unfortunately it seems to work wrongly…

1 Like

You have to say a bit more about what is not working. Is your Disk the same as those shown earlier. Is it oriented corectly. Is it out 180 degrees in which case you can change that. Is it rotating the wrong way. Test the formula with a just a hand.
I can not see anything wrong with the Maths.

1 Like

It likely needs adjustment for your origin position (for rotation).

Just an image of your disk would resolve that …

yep, I’ll post it in few minutes.

1 Like

yep, I’ll post it in few minutes.

1 Like

here it is
what I find wrong is the date range for each zodiacal sign, for example Aries should start on march 21st, but with this formula it swap to Aries on march 1st (and so on for the other signs).
Surely there is something I don’t understand. Could you kindly help me?!!
Thank you!
This is the formula (for the left wheel) modified to match the selector
(($#DD#<20?#DM#*360/12:(#DM#+1)*360/12$)+75)
Thi is the gear one on the lower side
(($#DD#<20?#DM#*360/12:(#DM#+1)*360/12$)+180)

Thanx!!

2 Likes

That was the first thing I tried, but unfortunately there are 2 issues:
1: the formula still mismatch the data range
2: without brackets doesnt work on wear os (and the galaxy w4)

1 Like

For which day (in month) you need a value of 1…31, but for math related to month (in year) you need a value of 0…11

Formulae, for left wheel:

$#DD#<20?(#DM#-1)*360/12+75:#DM#*360/12+75$

for lower wheel:

$#DD#<20?(#DM#-1)*360/12+180:#DM#*360/12+180$
2 Likes

As an alternative to @andrew.dowden 's expressions you could try the following for rotation

(floor(((((0.985610092647349*((#DNOW#-946684800000)/86400000))+282.2))%360)/30)*30)

It assumes that the transition point between Pisces and Aires is at 0 degrees. You would adjust the number 282.2 in the expression until the zero rotation angle puts your dial where you want it.

Note that the expression, like any simple expression of this type, assume a constant zodiac ‘month’ length but that is only approximately correct for most months - it will be off by a day or so at the start of year and mid year because, although each sign of the zodiac is exactly 30 degrees, the Earth’s angular velocity about the Sun is not constant ( slower in mid year - zodiac ‘month’ is longer and faster at the end of the year ‘month’ is shorter ).

If you want exact date alignment for the transitions then I can only think of using multiple copies of the dial with opacity expressions set by the actual transition dates ( or I suppose one could add a sine wave of some sort to compensate - mmm, an exercise for another day :rofl: ).

{ oh, and you could replace 0.985610092647349 with 0.98561 without any impact :stuck_out_tongue_winking_eye: }

5 Likes

Stunning stuff as always . You Guys are Amazing . Topic Bookmarked with Thanks :+1: :slightly_smiling_face:

1 Like

Great!
I’ll try asap!
Thanx

2 Likes

these topics are great thanks to peple like you @russellcresser who deidicate time to help the other members! thank you sincerely

1 Like

Thanks to all the valuable information guys! Been working on a Zodiac face too, but some formulas just do not want to work on some watches. Either they are too long, or just too many conditionals after another.
Guess, like @mnfudoshin, I will have to settle for @mikeoday’s version.

1 Like

I am intrested in the Zodiac Faces. I will hapily test your work on my Gakaxy Active. A bit old hat now but a popular watch.

This is the one with the final formula by @GAUSS (rotating zodiac picture):Tom - TX-CR22 HYD II - watch face for Apple Watch, Samsung Gear S3, Huawei Watch, and more - Facer

This one with the @mikeoday formula (rotating cover): Tom - TX-CR22 HYD II - watch face for Apple Watch, Samsung Gear S3, Huawei Watch, and more - Facer

1 Like

Hello everyone.
I am completely new to the Facer world and before I am going to attempt programming the watch face I want, I did start previously by programming my clock face with javascript and I got stuck with the zodiac.
In my case it is a 24-hour analogue clock, so the hour indicator is actually representing the sun’s actual position in the sky related to the timezone of the observer.
I have designed a simple zodiac disk and don’t want it to be static like in the examples shown above.
I want the actual active zodiac sign to rotate with the hour indicator, so it is a linear rotation rather than flipping the sign on the day of the sign change.
I wonder if someone here has javascript skills to help me with this issue.
My javascript skills are not enough developed yet to figure out how to start the rotation of the zodiac wheel at the right angle - depending on the actual hour and in the right amount so that the hour indicator will cross over to the next sign at the correct dates.

So, basically, the hour indicator crosses one sign in 30 days.

I have looked into the linked examples of watch faces with rotating zodiac discs, but they all do the same. they only flip to the next at a static indicator position from month to month. I want mine to rotate in real-time with the sun. This is the case in the real world and this is what I want to show on my clock.

When I have my javascript version of my clock ready, which has more elements than just the zodiac, I will then attempt to design a watch face here and in the time until then, I need to study how this is done here.

1 Like

I am confused . You are on the Facer Community talking about Java Script . Do you want Help with Facer Tags ? I can not help you with Java Script .

I like a smooth Zodiac . It fudges the issue of day the sign changes nicely , and as you say it is an analogue event .

Here is a test for you . It obviously does not account for the orientation of your Image . You will have to add or subtract an adjustment angle . you will see the Summer is up on the test . I you want it to go the other way add a minus sign to the beginning of the formula .

This looks a little over the top because it accounts for Leap years .

((0.5-(#DD#/(#DIY#)))*360)

Get back if you need more help with Facer stuff.

Get back if you do not know how to inspect the face an pull out the Formula .

thanks for the feedback.
I came here to Facer after an unsuccessful search elsewhere and my ultimate goal is to create a pretty deep watch face. I am not sure yet, how deep facer actually goes with its possibilities of functionalities. I don’t want to walk into a dead end.
The watch I want is more than just a good-looking face. I want to work with the data it shows to each moment of time. There is a rather large project behind this, which I am working on for over 10 years now.
I studied media design and I have only basic knowledge of programming. Because I could not find a suitable programmer yet, who is willing to team up and capable of doing what I need, I decided to start myself to get at least a proof of concept.
I have the clock already ticking on my Mac, made with Objective-C and started all over again to program it web-based in javascript. For me, it is a lot of trial and error and watching lots of tutorials until I am getting a step further.
I am familiar with modular programmings, like facer does it here, but before I start learning something new right now, I want to research first a bit deeper, if facer is really the right way to go.

I saved your formula and try to understand what it actually means.

I thought from the start, that it was a rather long shot to ask here for help.
…but, who knows :slight_smile:

Thanks

2 Likes