I'm programming my own whatchface, but I am not a programmer, so i am struggling. I am doing this to
I managed to get my watch face work. Basically I draw a number of dots depending on how many steps you do in a minute. the more dots the more steps.
Everything works up to the moment you change screen.
I tried to search for someone who already did something similar, but i am not getting it, it's been a while, coding is new.
Summarizing i need to do this steps
1) I loose all data, meaning the steps done in the previous minutes. So I need some idea on how to save data when i change screen. I'm using App.Storage.setValue("myStepsN", step60_n); and step60_n = App.Storage.getValue("myStepsN"); I tried to set them in function onStart(state) { and function onStop(state) { but with no success where step_ is an array [step_min1 step_min2 ... step_min60]
2) I would like to store / compute the step done each minute in the same array [min1 min2 ... min60] i use in the main script also when the watch face is not visualized. I guess i can copy paste the same code somewhere else to do it. I guess a background process, then again save them each minute to be able to reload them when going back to the watchface.
3) when getting back to the watchface load back the data to be able to print them again, the one computed when the watchface was active + when it was off. Now all the data are lost, since of course i did not get to save them. So 1) and 3) are complementary points.
Somebody can provide help? As simple as possible, I am not so good.
Any help will be appreciated