This is a picture time line of things.
Good.
Icon not changed.
Test injection:
So it shows it can work... But doesn't.
I've posted the messages but can again if you want.
This is a picture time line of things.
Good.
Icon not changed.
Test injection:
So it shows it can work... But doesn't.
I've posted the messages but can again if you want.
There is no wi-snow
for weather-icons-lite. You can't see it. ( you can use wi-darksky-snow
)
But it definitely exists for weather icons:
https://erikflowers.github.io/weather-icons/
I was just going to suggest that... but what a strange icon
wi-wu-snow
works actually.
again: thanks both.
But I am still not getting why in that small bit of code I just posted it CAN inject wi wi-snow
and it is shown.
True it is a simple message, but the msg.payload
is wi wi-snow
.
If that is sent/pressed: the correct icon is shown.
But when it arrives in a bigger message it doesn't work.
Do inspect that icon and see what is the actual thing which produces the icon. It will be interesting to see. Cos it cant be wi-snow
with weather-icons-lite
. It just does not exist.
Well, this code puts the icon on the screen.
[{"id":"5f942384.546724","type":"inject","z":"ae12fd.00ef75","name":"Snow","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"wi wi-snow","payloadType":"str","x":1240,"y":1800,"wires":[["6a03d7e5.10e1d"]]},{"id":"6a03d7e5.10e1d","type":"function","z":"ae12fd.00ef75","name":"Set colour","func":"if (msg.colour == undefined)\n{\n msg.colour = \"white\";\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1180,"y":1860,"wires":[["822a0d23.fec4d8"]]},{"id":"822a0d23.fec4d8","type":"ui_template","z":"ae12fd.00ef75","group":"360d5537.210baa","name":"","order":7,"width":3,"height":2,"format":"<div style=\"display: flex;height: 100%;justify-content: center;align-items: center;\">\n <i style=\"color:{{msg.colour}};\" class=\"{{msg.payload}} fa-4x\"></i>\n</div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":1330,"y":1860,"wires":[["97541b.27e9ebe8"]]},{"id":"97541b.27e9ebe8","type":"debug","z":"ae12fd.00ef75","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1470,"y":1860,"wires":[]},{"id":"360d5537.210baa","type":"ui_group","name":"Cooma weather","tab":"de0f6b36.132fa8","order":4,"disp":true,"width":"8","collapse":false},{"id":"de0f6b36.132fa8","type":"ui_tab","name":"Weather","icon":"dashboard","order":17,"disabled":false,"hidden":false}]
I see there are two icons with that name.
You can clearly see the inject
node and it injects wi wi-snow
as the payload.
So I am still not getting why it works if everything else you saying is correct.
Not having a go at you, but stating what is.
To be honest... it doesn't work for me... but the wi wi-darksky-clear-night
one does.
Now I haven't installed anything weather icon related, so I suspect that is what hotNipi is referring to (built in icons only)
Now as to why you see it... sometimes... does sound like a possible conflict of installed fonts to my uneducated guess.
There may be some strange conflicts. Who knows. I cant see it can work. It is not meant to work this way. And even if somehow happened - is not reliable thing.
No it isn't working sometimes....
My subflow never had stuff to deal with snow
.
So when it became used, I just added a few nodes to create the message to send wi wi-snow
as the payload.
Yes, there is more stuff there. As there is with other messages.
So I see the message coming out of the template
node with the correct payload.
But it isn't displayed.
If I inject a simple message with the icon name as the payload: it works.
That is what is getting me.
It works if I force it, but not when I use it in the code I otherwise wrote.
That is what I meant by "sometimes"... but I used your test flow and no worky for snow
Ok. That's weird.
And trust me... over here in Canaderp, we know snow
Do you have/use openweathermap
(node)?
Not that I am aware of... I haven't gone down the weather mapping path with NR yet.
And to add to the confusion that strange square icon I showed before comes up more often than not when I try other icon choices in your test flow.
Curiouser and curiouser.
I suspect there are much fewer functional built-in icons then is indicated by this chart...
But so far I am just copy/pasting one at a time into your test flow.
Well, try this one
This is a lot of test nodes with the different icons.
(I hope)
[{"id":"d900fdc4.ff69f","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2620,"wires":[["65b855d4.f5774c"]]},{"id":"65b855d4.f5774c","type":"change","z":"ae12fd.00ef75","name":"Darksky cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-darksky-cloudy\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4290,"y":2620,"wires":[["a1d336ee.fb167"]]},{"id":"a1d336ee.fb167","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":1,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2620,"wires":[[]]},{"id":"52d8aecd.d90e5","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2670,"wires":[["1b3193d1.c622f4"]]},{"id":"1b3193d1.c622f4","type":"change","z":"ae12fd.00ef75","name":"Dark sky rain","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-darksky-rain\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2670,"wires":[["31c4373c.5c74c"]]},{"id":"31c4373c.5c74c","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":2,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2670,"wires":[[]]},{"id":"4b4b23fa.54398c","type":"change","z":"ae12fd.00ef75","name":"Dark sky hail","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-darksky-hail\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2720,"wires":[["ab571fe4.5acde"]]},{"id":"fa097831.8ee83","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2720,"wires":[["4b4b23fa.54398c"]]},{"id":"ab571fe4.5acde","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":3,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2720,"wires":[[]]},{"id":"e6c59b22.72f1a8","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2770,"wires":[["577c49c8.14587"]]},{"id":"577c49c8.14587","type":"change","z":"ae12fd.00ef75","name":"Dark sky thunderstorm","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-darksky-thunderstorm\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4310,"y":2770,"wires":[["4e5d28d1.3ca3"]]},{"id":"4e5d28d1.3ca3","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":4,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2770,"wires":[[]]},{"id":"193fdf95.180098","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2820,"wires":[["336d671c.c7361"]]},{"id":"336d671c.c7361","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-darksky-partly-cloudy-day\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2820,"wires":[["e711eb1f.db1e4"]]},{"id":"e711eb1f.db1e4","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":10,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2820,"wires":[[]]},{"id":"2350a979.e1732e","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2870,"wires":[["ac2bfbd6.7bb57"]]},{"id":"ac2bfbd6.7bb57","type":"change","z":"ae12fd.00ef75","name":"Dark sky rain","rules":[{"t":"set","p":"payload","pt":"msg","to":"<i class=\"wi wi-wu-rain\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2870,"wires":[["36eccbf.420a734"]]},{"id":"36eccbf.420a734","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":13,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2870,"wires":[[]]},{"id":"25655646.36ec4a","type":"change","z":"ae12fd.00ef75","name":"Sunny day","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-darksky-clear-day\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2920,"wires":[["69369800.132a6"]]},{"id":"f0b7695e.a19d9","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2920,"wires":[["25655646.36ec4a"]]},{"id":"69369800.132a6","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":5,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2920,"wires":[[]]},{"id":"a944f487.ed18d","type":"change","z":"ae12fd.00ef75","name":"Dark sky fog","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-darksky-fog\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":2970,"wires":[["d38bf701.6f17e"]]},{"id":"40eb07cd.5a9048","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":2970,"wires":[["a944f487.ed18d"]]},{"id":"d38bf701.6f17e","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":14,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":2970,"wires":[[]]},{"id":"7d359096.ae471","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-wu-partlycloudy\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3020,"wires":[["f05446ac.bb8748"]]},{"id":"2959a33f.c37244","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3020,"wires":[["7d359096.ae471"]]},{"id":"f05446ac.bb8748","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":15,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3020,"wires":[[]]},{"id":"e8d57119.b1192","type":"change","z":"ae12fd.00ef75","name":"Mostly sunny","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-wu-mostlysunny\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3070,"wires":[["56bf9666.67a1d8"]]},{"id":"56bf9666.67a1d8","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":19,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3070,"wires":[[]]},{"id":"f7c712a2.4c9ff8","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3070,"wires":[["e8d57119.b1192"]]},{"id":"7e5a3eb6.91724","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-wu-partlycloudy\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3120,"wires":[["34b640a5.31af68"]]},{"id":"34b640a5.31af68","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":20,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3120,"wires":[[]]},{"id":"515c5cd2.482dfc","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3120,"wires":[["7e5a3eb6.91724"]]},{"id":"6b1b8ed0.76cfb8","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-wu-partlycloudy\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3170,"wires":[["b19c5252.5ce84"]]},{"id":"b19c5252.5ce84","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":24,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3170,"wires":[[]]},{"id":"efcdf6ea.c63b2","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3170,"wires":[["6b1b8ed0.76cfb8"]]},{"id":"dcfa891.a52bb78","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-day-fog\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3220,"wires":[["ba662f9f.e3fa1"]]},{"id":"ba662f9f.e3fa1","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":24,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3220,"wires":[[]]},{"id":"f44cc964.6206e8","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3220,"wires":[["dcfa891.a52bb78"]]},{"id":"b7ed334a.59dd7","type":"change","z":"ae12fd.00ef75","name":"Partly cloudy","rules":[{"t":"set","p":"payload","pt":"msg","to":" <i class=\"wi wi-snow\"></i>","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":4280,"y":3270,"wires":[["18076078.ac203"]]},{"id":"18076078.ac203","type":"ui_template","z":"ae12fd.00ef75","group":"f12f8b07.cf9fc8","name":"","order":24,"width":3,"height":2,"format":"\n<div style=\"font-size: 48px;\"\n ng-bind-html=\"msg.payload\">\n</div>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":4520,"y":3270,"wires":[[]]},{"id":"7e69f279.42c9d4","type":"inject","z":"ae12fd.00ef75","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":4110,"y":3270,"wires":[["b7ed334a.59dd7"]]},{"id":"f12f8b07.cf9fc8","type":"ui_group","name":"Group 2","tab":"de0f6b36.132fa8","order":5,"disp":true,"width":"17","collapse":true},{"id":"de0f6b36.132fa8","type":"ui_tab","name":"Weather","icon":"dashboard","order":18,"disabled":false,"hidden":false}]
Do you get all icons showing with this?
OK... ID10T error... I was copying/pasting the name, but without the wi
in front
Yeah, been there.... done that a few times.
I got caught earlier as I have wi wi-snow
(ARGH! Sorry, can't show it) but there was a leading space in that.
But that wasn't the problem either.