World map bearing

World Map Icon Bearing.

I have a stationary icon "wind" but I want to change the bearing of it. As I want to indicate the wind direction of a specific location on the map.

Does the bearing field only become "active" once you change the location of the icon?

image
image

let bearing = msg.payload.winddirection;
let color = "black";

msg.payload = {
"name": "swerfds",
"lat": -29.80654,
"lon": 30.7723,
"Temp":15,
"Wind Speed":234,
"Wind Direction":bearing,
"icon": "wind",
"color":color,
"iconColor": color,
};
return msg;

You need bearing in the payload also

"bearing": bearing,

Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.