Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons not displayed on access list #3

Open
adcomrod opened this issue Sep 21, 2019 · 3 comments
Open

Icons not displayed on access list #3

adcomrod opened this issue Sep 21, 2019 · 3 comments

Comments

@adcomrod
Copy link

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

@adcomrod
Copy link
Author

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

@sstratford
Copy link

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

@evazzoler
Copy link

Please provide icons on git. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants