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.

Weather visualization
#1
I have a weather station, Clima Sensor US, wich gives a lot of data via modbus.
Now i want to visualize them. How can i show wind direction, more than with degrees? i want this in, for example in a compass.


Any ideas?
Reply
#2
1. Use an arrow icon with square proportions. Add object with this icon to visualization, set Additional classes to angle

2. Add to Custom JavaScript (Scripting > Tools > Edit custom JavaScript). Change 32/1/1 to your wind direction/angle object.
Code:
$(function(){
  grp.listen('32/1/1', function(obj) {
    $('.angle').css('transform', 'rotate(' + obj.value + 'deg');
  });
});

If you want a full compass then you need to add compass background with image element.
Reply


Forum Jump: