How to update UI on a regular basis

Hey folks,

I am trying to figure out the best way to schedule a function call and then update UI from my plug.
Ideally id like to set up a simple timer for every n seconds and be able to display a variable or two in the navbar

Using send_plugin_message on the python side and the corresponding onDataUpdaterPluginMessage js viewmodel callback function to update observables.

BTW, we do have a dedicated dev-plugins channel in OctoPrint Discord server if you want to get quicker responses possibly.