lunokjod / watch

lunokWatch (lilygo twatch2020 series)
GNU General Public License v3.0
31 stars 4 forks source link

[Feature] Unified listener to watchfaces apps for general tasks #6

Closed hpsaturn closed 1 year ago

hpsaturn commented 1 year ago

Summary

Understanding the current WatchFace2, that is the main watchface now, it has a lot of code that maybe could be arrive from OS. For instance the Weather processing and its variables could get it from callback of the system, for example from some interface override of ApplicationBase class (LunoIotApplication). In the same way, the services status (WiFi, BLE, Battery and also maybe the time variables). All here in order to have a better alternatives to new watchfaces developers.

lunokjod commented 1 year ago

Is planed to move this watchface network tasks to the system and emit an event can be converted in callback via KVO, current a global variable is set, and Isn't the correct way

hpsaturn commented 1 year ago

resolved with last PR #7 and the new isolated tasks from @lunokjod