Cannot display image using html in ui-template

Hi!

I try to display my image "water_sensor.jpg" stored in d drive (d:) using ui-template but failed:
<img src="d:\water_sensor.jpg" alt="error" width="500" height="500">
"error" is shown and the image cannot be displayed.
I've tried to use an html file with this scripts to run in the browser. It works.

Could anyone help me?

Thanks!!

I'm using it myself like this, that's working for me.

<body>

<p>
<a href="/grabcam1.jpg" target="_blank">
<img border="0" alt="CamVoorGrab" src="/grabcam1.jpg" width="800"  height="800">
</a>
</p>

Thanks! Where is your image file placed?

I am not an expert here, but have displayed images on dashboard successfully using ui-template nodes
the image to be displayed should be in the same folder as set in settings.js file.
find the line httpStatic in settings.js, uncomment it and set the path as required by you.
for example my settings file is as below

image

image

this works for me.

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