Pagina 1 di 1

change background on sunset with hands

Inviato: 03 apr 2023, 15:23
da Anoniem
Hi,

Is it possible to change the hands also with sunset?
I already did it with the background (its changing on sunset) but change the hands also.
Maybe its possible to do this in the index.js but i dont know how.

All the images are in the zipfile.

watch is Amazfit GTR3 Pro

Re: change background on sunset with hands

Inviato: 04 apr 2023, 10:20
da asoo
Anoniem ha scritto: 03 apr 2023, 15:23
Hi,

Is it possible to change the hands also with sunset?
I already did it with the background (its changing on sunset) but change the hands also.
Maybe its possible to do this in the index.js but i dont know how.
watch is Amazfit GTR3 Pro
First of all, I would like to inform you that the script used for testing was not invented by me.
I took it from shymik's watch face. ( Thank him for script )
https://amazfitwatchfaces.com/gtr/view/32433

I've seen this watch face use sunrise sunset to handle the display of other elements, so I put the watch's script to the test. After testing, it was found that it could work to a certain extent.

However, if I use second smoot type1 for test , Seconds hand will be crashes in some cases, so I use seconds smoot type 2 to test this script.


because the script not have mentioned in the AOD section, so the watch face works in AOD in normal function. does not change according to sunrise sunset

Note :
This watch face will work fine if the sunrise sunset data provided by the weather server is correct. In some cases when sunrise sunset values are not available, the watch face will not work properly.

This watchface can not open with sasha's editor because it's have custom script , it who want to see the custom script can unzip ".zip" and see custom script in file index.js

I only understand some parts of the script, if you need more information, I recommend you to ask the owner script.
omegalune_ss_Type2_C_Script_GTR_3_Pro.zip
(314.87 KiB) Scaricato 87 volte

Re: change background on sunset with hands

Inviato: 04 apr 2023, 14:13
da Anoniem
thanks for helping asoo.
The changing background by sunset was already working in normal and AOD, i tried yours but i did not work.

I hoped that the hands also could change to lume hands

Re: change background on sunset with hands

Inviato: 04 apr 2023, 14:37
da asoo
Anoniem ha scritto: 04 apr 2023, 14:13
thanks for helping asoo.
The changing background by sunset was already working in normal and AOD, i tried yours but i did not work.

I hoped that the hands also could change to lume hands
??? i test on GTR3 it can change image "background and hand clock" follow sunrise , sunset normally

Re: change background on sunset with hands

Inviato: 04 apr 2023, 19:30
da Anoniem
I edited the index.js and changed the 0001.png to 0000.png in AOD.
So its now yellow in normal and AOD from sunrise to sunset (also yellow hands) but
its only blue (also blue hands) from sunset to sunrise in normal mode not in AOD mode.

Is it possible to let it work in AOD?

Re: change background on sunset with hands

Inviato: 04 apr 2023, 20:14
da asoo
Sorry l no idea about that.

Re: change background on sunset with hands

Inviato: 15 apr 2023, 21:11
da Anoniem
i made a new watchface, i tried to put in the sunset but it didnt work, can anybody put the sunset script in the index .js

Re: change background on sunset with hands

Inviato: 16 apr 2023, 10:05
da asoo
Anoniem ha scritto: 15 apr 2023, 21:11
i made a new watchface, i tried to put in the sunset but it didnt work, can anybody put the sunset script in the index .js
Breitling_Avenger-sunset_CS.zip
(299.92 KiB) Scaricato 118 volte
Note :

while the screen is on If there is a change to the dial and clock hands follow the sunset Changes will not take effect immediately. It will show only when you turn off the screen and turn it back on.

This watch face will work fine if the sunrise sunset data provided by the weather server is correct. In some cases when sunrise sunset values are not available, the watch face will not work properly.

This watchface can not open with sasha's editor because it's have custom script , it who want to see the custom script can unzip ".zip" and see custom script in file index.js

I only understand some parts of the script, if you need more information, I recommend you to ask the owner script.
Related previous posts :
viewtopic.php?p=15328#p15328

Re: change background on sunset with hands

Inviato: 16 apr 2023, 11:08
da Anoniem
Thanks for helping.
Can you show which parts you added?
I’m trying to understand it so i can do it by myself the next time.
And what tools/programs you use?

Re: change background on sunset with hands

Inviato: 16 apr 2023, 12:11
da asoo
Anoniem ha scritto: 16 apr 2023, 11:08
Thanks for helping.
Can you show which parts you added?
I’m trying to understand it so i can do it by myself the next time.
And what tools/programs you use?
You can see the added code in the index.js file.
added line There is a description at the top of that code.
The description is after the /// sign.

I use only notepad to edit.