Hello,,
I have a widget with Ram info
Images:
![]()
But the problem is how can I make it automatically refresh
What is the code should I add and where?
Hello,,
I have a widget with Ram info
Images:
![]()
But the problem is how can I make it automatically refresh
What is the code should I add and where?
That is hard to say without seeing the actual code. After doing some guesswork, I'll bet that you have implemented this with SystemInfo service API (WRT 1.0). So what you need to do is add a timer that calls your custom checkFreeRam function periodically. Like setInterval(checkFreeRam,2000);
In the checkFreeRam you should check the ram level and then update the graph accordingly.
-Ilkka
use setInterval(refreshFuncName, timeout) function
or even better use setTimeout(refreshFuncName, timeout)