duino-coin icon indicating copy to clipboard operation
duino-coin copied to clipboard

Auto refresh in the ESP_Code Dashboard

Open DJJeffP opened this issue 8 months ago • 1 comments

The Dashboard.h for the ESP_Code has no auto refresh.

I suggest to add:

<head>
      ...
        <script>
            function autoRefresh() {
                window.location = window.location.href;
            }
            setInterval('autoRefresh()', 20000);
        </script>
      ...
</head>

So it auto refresh every 20 sec.

DJJeffP avatar May 21 '25 18:05 DJJeffP

oh please for the love of god, dont put functions in quotes .. thats bad code style as setInterval is javascript I suggest setInterval(()=>autoRefresh(), 20000);

eagle275 avatar Jul 06 '25 13:07 eagle275