I'm developing a complex datafield that's pulling Activity.Info but also Weather under compute. Under onUpdate the dc is drawn every second (using direct draws only).
1. What's a clean and preferred way to avoid overloading on Weather (or other heavy calls) when the datafield naturally refreshes every second?
Direction & speed, and other navigational data, are also called every second from Activity.Info but at least these don't require an external API call, whereas Weather calls need to pull this from the mobile phone (cached and updated every 20 mins I read) - still it seems taxing to make such heavy API call each second.
2. Am I correct in thinking that direction and speed pulled every second is reasonable for a datafield, or should some pause be introduced here as well, and if so what's the cleanest approach?
New to this and getting results is relatively easy, but knowing the design and approach is appropriate is something very different!