Open adcomrod opened 4 years ago
nevermind fixed it serving the icon like this:
if (msg.payload[index].isknown == 1) json.icon="http://192.168.1.90:1880/unlock.png"; else json.icon="http://192.168.1.90:1880/lock.png"; tablelog.push(json);
Regards
got the some here but with the warn and info png in the eventlog
if (msg.payload[index].type == "INFO") json.icon="http://10.42.0.166/img/info.png"; else if (msg.payload[index].type == "WARN") json.icon="http://10.42.0.166/img/warn.png"; else json.icon="http://10.42.0.166/img/warn.png";
i changed the IP but nothing... do i miss a package ???
Steven
Please provide icons on git. :-)
Hi, I am not an expert, but I managed to make the flow work partially, but the icons on the access list and log list are not diplayed. I think is related to the following:
if (msg.payload[index].isknown == 1) json.icon="http://192.168.2.110/img/unlock.png"; else json.icon="http://192.168.2.110/img/lock.png"; tablelog.push(json);
The lines point to specific locations not present on my network. Is there any way to have the icons displayed? Looked on the internet an I could not find a way to make them show up. tried to set 'httpStatic:' with no success. The icon appear as broken on the browser. Thanks in advance. Adrian