XavierBerger / RPi-Monitor

Real time monitoring for embedded devices
https://xavierberger.github.io/RPi-Monitor-docs/index.html
GNU General Public License v3.0
1.16k stars 175 forks source link

web status dont refresh #341

Open frezeen opened 4 years ago

frezeen commented 4 years ago

when i open rpimonitor page look static, no autorefresh every 10 secs , uptime clock seconds are static too with F5 i got new data

from console this is the only alarm or error i have: [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ jquery.min.js:4

Leepic commented 3 years ago

Have you checked "Auto refresh status page" in the "Options" menu?

gottaloveit commented 3 years ago

There's an issue with the code calling synchronous ajax calls and jQuery deprecating them. I got the "Options" menu to work finally on the status page by:

in file: /usr/share/rpimonitor/web/js/rpimonitor.js

at the end of the file, theres a function call: getVersion();

simply comment it out like so: //getVersion();

Save the file, refresh the page in browser and the menu in Options should have that option now.