Page 1 of 1
Sunset Sunrise icons
Posted: 17 Nov 2024, 08:46
by SPLESHER
Hey,
I wanted to make sunrise sunset icons changing according to "numeric values (sunrise / sunset) in watchface editor, but I don't understand how these icons are supposed to work.
I used images element in sunrise/sunset and put two images, first one for sunrise, second one for sunset.
But when applying watchface on watch icon is always for sunset, even when value is showing sunrise
Re: Sunset Sunrise icons
Posted: 18 Nov 2024, 16:09
by SashaCX75
You should at least specify the model of the watch.
For sunrise/sunset images you need 2 files, but only one (daytime) is displayed. Usually if you want the image to change and not just appear, the second image is drawn on the background.
Sometimes the image change is delayed. This is a feature of the standard widget. If you are not satisfied with it, you need to write your own code instead of the standard widget, which will check the time and change the image.
Re: Sunset Sunrise icons
Posted: 19 Nov 2024, 10:05
by SPLESHER
SashaCX75 wrote: 18 Nov 2024, 16:09
You should at least specify the model of the watch.
For sunrise/sunset images you need 2 files, but only one (daytime) is displayed. Usually if you want the image to change and not just appear, the second image is drawn on the background.
Sometimes the image change is delayed. This is a feature of the standard widget. If you are not satisfied with it, you need to write your own code instead of the standard widget, which will check the time and change the image.
Sorry, watch model is GTR3.
I tried putting one on background as permanent one but it works really weird, currently its showing sunset icon and 06:56 value which indicates sunrise, not the sunset.
I also tried puting 2 images but still acts very weird
Re: Sunset Sunrise icons
Posted: 20 Nov 2024, 22:15
by SashaCX75
If you use 2 images to display sunrise/sunset, the first image will be displayed during the day. So you need to put the second image on the background.
I don't know what your watch face should look like in the end, but according to the images they should be swapped.
Re: Sunset Sunrise icons
Posted: 21 Nov 2024, 13:16
by SPLESHER
SashaCX75 wrote: 20 Nov 2024, 22:15
If you use 2 images to display sunrise/sunset, the first image will be displayed during the day. So you need to put the second image on the background.
I don't know what your watch face should look like in the end, but according to the images they should be swapped.
I tried what you said, but still it's messed up,
What I want achieve is that whenever value is at morning, for e.g. 6:45 to show icon which indicates sunrise, (one with arrow pointing up) and when value under icon shows e.g. 16:10 which indicates sunset to show icon for sunset (one with arrow pointing down)
here is preview of watchface, you might understand it better
Re: Sunset Sunrise icons
Posted: 21 Nov 2024, 13:17
by SPLESHER
Unfortunately, this option didn't work. I tried for a very long time and in the end i always figured it out with a still icon. The icon will not change depending on the time change.
What icon for both sunrise and sunset did you use then? Could you give me any idea?
Re: Sunset Sunrise icons
Posted: 21 Nov 2024, 18:19
by SashaCX75
I meant something like this
Re: Sunset Sunrise icons
Posted: 21 Nov 2024, 20:18
by SPLESHER
SashaCX75 wrote: 21 Nov 2024, 18:19
I meant something like this
Just tried it, but still shows sunset icon while value shows 6:59 which is sunrise, I guess I will just make it as sun icon without any arrows
Re: Sunset Sunrise icons
Posted: 21 Nov 2024, 20:19
by SPLESHER
SashaCX75 wrote: 21 Nov 2024, 18:19
I meant something like this
It's just as i said, picture function is not working. You can solve it with putting in one-picture background.
Right, doesn't work as it should sadly
Re: Sunset Sunrise icons
Posted: 22 Nov 2024, 07:20
by SashaCX75
I have 2 test dials installed right now. One has only a set of images on it. And it displays the sunrise image. The second one has sunrise and sunset times as well. And this one is not working correctly. It still shows sunrise time (although it should have switched to sunset time 2 hours ago) and does not show the sunrise image, only the background image.
Re: Sunset Sunrise icons
Posted: 22 Nov 2024, 14:22
by SPLESHER
SashaCX75 wrote: 22 Nov 2024, 07:20
I have 2 test dials installed right now. One has only a set of images on it. And it displays the sunrise image. The second one has sunrise and sunset times as well. And this one is not working correctly. It still shows sunrise time (although it should have switched to sunset time 2 hours ago) and does not show the sunrise image, only the background image.
Thats how its showing for me right now, sunrise icon and time of sunset
Re: Sunset Sunrise icons
Posted: 22 Nov 2024, 17:26
by SashaCX75
I'll observe more this weekend. But in any case it's not a good solution. Switching sunrise / sunset often works with a delay. The most reliable way is to write the code yourself. Check the sunrise and sunset times and change the image depending on the current time.