I'm new to programming in general, so I'm trying to put together a clock face. I've been able to get steps, distance, and a battery meter to update by using "clock.ontick = (evt) =>".. but I cannot figure out how to get the new weather API to do the same by using "display.onchange = (evt) =>"
I just copied all the code from: https://github.com/Fitbit/sdk-weather-clock and pasted it into my project. It works and displays the weather, but it doesn't refresh unless I select the watch face in the app. The code in the link looks a lot different than what I'm used to. I'm using the 4.3 SDK for the Versa 2.
It might even be better if it could update after a certain interval, like an hour or so. But I'm just not sure how to make it do that.
Answered! Go to the Best Answer.
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
Thanks! I just figured it out. I was stupid and didn't realize there was a couple other files I wasn't looking at under the companion and common folders. Plus I forgot to enable the "run in background" permission!! Working perfectly now. 🙂