This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Image not loading
#12
(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?
Reply


Messages In This Thread
Image not loading - by BMSimon - 20.03.2023, 10:08
RE: Image not loading - by admin - 20.03.2023, 10:15
RE: Image not loading - by BMSimon - 20.03.2023, 10:16
RE: Image not loading - by baggins - 21.03.2023, 22:31
RE: Image not loading - by admin - 22.03.2023, 08:12
RE: Image not loading - by baggins - 22.03.2023, 08:26
RE: Image not loading - by admin - 22.03.2023, 08:29
RE: Image not loading - by baggins - 22.03.2023, 08:33
RE: Image not loading - by admin - 22.03.2023, 08:43
RE: Image not loading - by baggins - 22.03.2023, 09:33
RE: Image not loading - by admin - 22.03.2023, 09:48
RE: Image not loading - by baggins - 23.03.2023, 16:05
RE: Image not loading - by admin - 23.03.2023, 16:17
RE: Image not loading - by baggins - 31.03.2023, 07:55

Forum Jump: