12-26-2021 16:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-26-2021 16:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
12-27-2021 01:44 - edited 12-27-2021 01:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-27-2021 01:44 - edited 12-27-2021 01:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-27-2021 01:44 - edited 12-27-2021 01:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-30-2021 02:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-30-2021 02:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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. 🙂
