rvdbreemen / OTGW-firmware

A ESP8266 devkit firmware for the Nodoshop version of the Opentherm Gateway (OTGW)
MIT License
145 stars 34 forks source link

Further webui refresh fixes #140

Closed rlagerweij closed 1 year ago

rlagerweij commented 1 year ago

On Firefox, when first opening the web interface, the ui seems to get into a reload loop, which takes a while to time out. These fixes remove a duplicates window.onload call which was present in both index.html and index.js and moves the devtime timer around to prevent it starting to fire api calls before the main page is loaded.

A final, perhaps somewhat controversial change is to reduce the calls to update the time to once every 5 seconds instead of every second. This may not be necessary but lightens the api call load on the esp8266 somewhat (the devtime api call takes around 100ms each time for me)