(22.03.2023, 09:48)admin Wrote: Run this once, clear browser cache and see if gauge starts working correctly. LM must have internet connection for this work.
Code:os.execute('mv -n /www/scada/vis/gauge.js.gz /www/scada/vis/gauge-old.js.gz')
os.execute('rm -f /www/scada/vis/gauge.js.gz')
os.execute('wget -O /www/scada/vis/gauge.js.gz http://dl.openrb.com/misc/gauge.js.gz')
In case something goes wrong you can revert the gauge file this way:
Code:os.execute('cp -f /www/scada/vis/gauge-old.js.gz /www/scada/vis/gauge.js.gz')
There is no gauge.js.gz in /www/scada/vis.
ls -l of /www/scada/vis yields:
Code:
-rw-r--r-- 1 root root 42 Jun 21 2016 brand.css.gz
-rw-r--r-- 1 root root 719 Jul 1 2016 busdecode.js.gz
-rw-r--r-- 1 root root 9786 Jun 21 2016 controls.js.gz
-rw-r--r-- 1 root root 12617 Jul 13 2016 core.js.gz
lrwxrwxrwx 1 root root 36 Feb 12 14:00 custom.css -> /lib/genohm-scada/storage/custom.css
lrwxrwxrwx 1 root root 35 Feb 12 14:00 custom.js -> /lib/genohm-scada/storage/custom.js
-rw-r--r-- 1 root root 34885 Jun 21 2016 dygraph.js.gz
-rw-r--r-- 1 root root 18513 Jun 21 2016 flotr2.js.gz
-rw-r--r-- 1 root root 3240 Jun 21 2016 icons.ttf
-rw-r--r-- 1 root root 2160 Jun 21 2016 icons.woff
-rw-r--r-- 1 root root 30724 Jun 21 2016 jquery.js.gz
-rw-r--r-- 1 root root 5992 Jun 21 2016 layout.css.gz
-rw-r--r-- 1 root root 4231 Jun 21 2016 schedulers.js.gz
-rw-r--r-- 1 root root 2378 Jun 21 2016 theme.css.gz
-rw-r--r-- 1 root root 3641 Jun 21 2016 trends.js.gz
-rw-r--r-- 1 root root 9681 Jun 21 2016 velocity.js.gz
Edit: just found out that gauge.js.gz is in /www/scada/resources.
I suppose I can run the same commands in that directory?