I have probably asked before and it was never resolved.
I am working on my weather code and the unusual condition of SNOW happened.
I hadn't put it in as it is that infrequent.
So it happened and so I put in the code.
But I am not seeing the icon.
This is the message which is being used to make the icon appear.
{"payload":" wi wi-snow","event":{"clientX":975,"clientY":198,"bbox":[947,225,995,177]},"socketid":"avA216tBMV5ZI5RaAABP","_msgid":"f1b6e766.09fcd8","icon":"<i class=\"fa fa-refresh fa-spin\"></i>","background":"#333333","font":"red","location":{"lon":149.1333,"lat":-36.2333,"city":"Cooma","country":"AU"},"data":{"coord":{"lon":149.1333,"lat":-36.2333},"weather":[{"id":601,"main":"Snow","description":"snow","icon":"13d"}],"base":"stations","main":{"temp":272.02,"feels_like":268.21,"temp_min":272.02,"temp_max":272.02,"pressure":1016,"humidity":100},"visibility":10000,"wind":{"speed":3.09,"deg":30},"snow":{"1h":0.87},"clouds":{"all":100},"dt":1626647713,"sys":{"type":1,"id":9520,"country":"AU","sunrise":1626642594,"sunset":1626678551},"timezone":36000,"id":2170577,"name":"Cooma","cod":200},"time":"2021-07-18T22:35:13.000Z","title":"Current Weather Information","description":"Current weather information at coordinates: -36.2333, 149.1333","base":{"wind":{"light":10,"strong":40}},"_event":"node:1ac83a63.8be8e6","now":1626667415,"colour":"white"}
This is the message of the REAL weather.
(and it works)
{"payload":"wi wi-day-cloudy","event":{"clientX":940,"clientY":202,"bbox":[916,225,964,177]},"socketid":"HT5up78OgHXP74cbAABR","_msgid":"b40f4616.886b18","icon":"<i class=\"fa fa-refresh fa-spin\"></i>","background":"#333333","font":"red","location":{"lon":149.1333,"lat":-36.2333,"city":"Cooma","country":"AU"},"data":{"coord":{"lon":149.1333,"lat":-36.2333},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":"stations","main":{"temp":282.33,"feels_like":280.39,"temp_min":282.33,"temp_max":282.33,"pressure":1012,"humidity":51,"sea_level":1012,"grnd_level":919},"visibility":10000,"wind":{"speed":3.5,"deg":275,"gust":4.52},"clouds":{"all":100},"dt":1626667458,"sys":{"country":"AU","sunrise":1626642594,"sunset":1626678551},"timezone":36000,"id":2170577,"name":"Cooma","cod":200},"time":"2021-07-19T04:04:18.000Z","title":"Current Weather Information","description":"Current weather information at coordinates: -36.2333, 149.1333","base":{"wind":{"light":10,"strong":40}},"now":1626667459,"colour":"white"}
So why is it the icon isn't the snow?