Pagina 1 di 1
GTR3 calculations
Inviato: 31 dic 2021, 13:24
da wbshrk
Does anyone know can you do equations in the jscipt for the watch face? I would like to do a more accurate moon phase.
Re: GTR3 calculations
Inviato: 01 gen 2022, 20:30
da wbshrk
Ok I have the calculation working, but only when I change the watch face. I have tried everything I can think of from putting each image in an if statement to running the code in and out of the AOD if. Yet Nothing will refresh the moon image. Can anyone help?
Re: GTR3 calculations
Inviato: 02 gen 2022, 13:54
da SashaCX75
I don't know how much it can help you, but you can put this code in the watch face after all the elements have been defined. You can insert your code with calculations after the "console.log ('ui resume');" and it will run every time you turn on the watch face.
Codice: Seleziona tutto
const widgetDelegate = hmUI.createWidget(hmUI.widget.WIDGET_DELEGATE, {
resume_call: (function () {
console.log('ui resume');
}),
});
Re: GTR3 calculations
Inviato: 05 gen 2022, 21:04
da wbshrk
Ok I got the moon phase done. Now I am trying to do a sunrise sunset image that is on the dial. Is there any way to get all the sensors/datatypes and each element they have? I need the Sunrise and sunset hours and minutes separate so I can calculate the angle of the image.