# Show random local images on dashboard

**URL:** https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356
**Category:** Dashboard
**Created:** [20 February 2021 17:40 UTC](https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356 "2021-02-20T17:40:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tanner](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tanner](https://discourse.nodered.org/u/Tanner)
#### Post date: [20 February 2021 17:40 UTC](https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356/1 "2021-02-20T17:40:35Z")

</div>

Hi,

I am new to Node Red. May I get help from you.

On local folder I want to place 200 Images.  
Named 1.png, 2.png etc. Every 10 second, a random picture 1.png or 189.png should be shown.

OK, with the "random"-node, no problem.  
I try to build my complete path to the imagefile called "1.png" with concatting the output of "random"-node and my local picture path (e.g. /home/pi/Pictures/1.png) but it does not work. For some reason, I could not build the output.

And the second problem is, how can I show that image on my dashboard? It shoud be possible, that a person, who is browsing to localhost:1880/ui/(random path)  
should see my imagesin fullscreen.

Thank's in advance.

Tanner

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 February 2021 21:27 UTC](https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356/2 "2021-02-20T21:27:07Z")

</div>

> [@Tanner](#):
>
> /home/pi/Pictures/1.png

This came up in another thread recently. It is quite simple, you have given a filing system path instead of a URL path. The two things are different and you need to mentally convert between them when you are coding.

To serve up a bunch of static files (like images are), you configure the static folder in settings.js.

Assuming you haven't changed anything else in settings.js:

If you set the static path to:

```auto
/home/pi/Pictures

```

those files will then be available on the url:

```auto
http://<node-red-server-ip>:1880/1.png

```

and so on.

Because your Dashboard is already served from `http://<node-red-server-ip>:1880/ui`, you can shorten the URL's down to `/1.png`

---

<div class="post-metadata">

### Author: ![Tanner](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tanner](https://discourse.nodered.org/u/Tanner)
#### Post date: [21 February 2021 23:25 UTC](https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356/3 "2021-02-21T23:25:12Z")

</div>

Thank you very much!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 March 2021 23:25 UTC](https://discourse.nodered.org/t/show-random-local-images-on-dashboard/41356/4 "2021-03-23T23:25:30Z")

</div>

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