Use sunset time to change hands and dial

How would I use the sunset/sunrise times to change how the hands and dial are displayed?

I want to simulate lume at night on an analog watch. This is easy enough to do with WatchMaker. I’m now trying to learn Watch Face Studio so that I can bring my watch face if I ever update to Wear OS 5.

Thanks!

Use (opacity):
Day-time: 0 + [WTHR_IS_DAY]==1?100:0
Night-time: 0 + [WTHR_IS_DAY]==1?0:100


*
*

3 Likes

@masterboyhr

I have been trying to use this same function

I have 2 groups AOD - Day & AOD - NIGHT

I am setting AOD - Day to White
I am setting AOD - Night to Red

([WHTR_IS_DAY] == 0 ? 100 : 0 ) This should return the value of 100 when it is Day
([WHTR_IS_DAY] == 1 ? 100 : 0 ) This should return the value of 100 when it is NOT day (night)

In WFS this works correctly
But when installed on the watch face (GW Ultra) it is “reveresed”
Day Returns - Red
Night Returns - White

Has anyone else seen this occur???

I can get it to work as i want that’s not the issue. The issue is that it seems to be reversed

In fact formulas return values 0 or 1 and depending on that set opacity to 100 or 0.
I don’t know why you changed formulas but you did it wrongly.
Use:
[WTHR_IS_DAY]==1?100:0 will set opacity to 100 during the day
[WTHR_IS_DAY]==1?0:100 will set opacity to 100 during the night

That has nothing to do with colors, I have no idea how it can change colors.
My guess is that error is somewhere else.

It’s hard to tell without seeing the watchface coding…
I came from Facer, finding error was easy there, you could publish watchface “open for inspection” and everybody could see coding, solution was always found…

Try againg with “my” formulas. I’m curious now.

1 Like

I think there is a bit of misunderstanding

The color is controlled at the group level.
Opacity is only available on an Image

AOD - Day is set to White with the Color is set to 100 or 0 controlled by the [WHTR_IS_DAY]


AOD - Night is set to Red with the Color is set to 100 or 0 controlled by the [WHTR_IS_DAY]

The documentation state that WHTR_IS_DAY returns 2 results 0 - Night or 1 Day if this is truly the case then my expressions are correct. I changed the formulas because they work correctly on WFS but in the REAL world on the watch face it shows Red during the day and White during the night

gdcwatchfaces I was bored so I’ve tested it, works on my watch.
I did it like this:
*
*

Day / red
0 + [WTHR_IS_DAY]==1?100:0


*
*
*
*
Night / white

0 + [WTHR_IS_DAY]==1?0:100

1 Like

Now I see that you wanted it other way around, white for day and red for night.
So colors in my test should be changed, red to white, white to red.
Sorry.

I really don’t know why it’s not working for you. Interesting.

1 Like

Sometimes I forget to Zero the Default number and am debugging for ages then relies . Good practice though .