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.

Javascript code for meteo icon on visu
#1
hi, I used the following JS to display a forecast icon on old scada-vis:

Code:
// wheater icon change
$(function(){
  if (typeof grp != 'undefined') {
    grp.listen('34/1/1', function(object, state) {
      var ICO = grp.getvalue('34/1/1');
;
      $('.icona').find('img').attr('src', 'http://openweathermap.org/img/w/'+ICO+'.png')
    }, true);
  }
});

Is it possible to get the same on Visu?

Peppe
Reply


Messages In This Thread
Javascript code for meteo icon on visu - by gdimaria - 29.09.2025, 08:04

Forum Jump: