# Template status

**URL:** <https://discourse.nodered.org/t/template-status/40801>\
**Category:** General\
**Created:** [11 February 2021 06:43 UTC](https://discourse.nodered.org/t/template-status/40801 "2021-02-11T06:43:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [11 February 2021 06:43 UTC](https://discourse.nodered.org/t/template-status/40801/1 "2021-02-11T06:43:37Z")

</div>

Hey Guys,

Cant find an answer for this.. not sure there is a way to do it.

Is there a way to monitor a template node that is displaying a MJPEG feed to make sure its active?

The MJPEG feed is a .cgi from a VLC transcode

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 February 2021 07:58 UTC](https://discourse.nodered.org/t/template-status/40801/2 "2021-02-11T07:58:50Z")

</div>

What does active mean ? Its sitting there waiting for data OK ? Or data is arriving ? Or ...  
You can put whatever code you like in your template and use it to either create an output or node status

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [11 February 2021 08:59 UTC](https://discourse.nodered.org/t/template-status/40801/3 "2021-02-11T08:59:20Z")

</div>

Hi!  
I have a MJPEG stream running in a template which is being transcoded from command line VLC which creates a .cgi stream on port 8888

I would like to monitor when that isnt displaying and refresh it... I cant think of a way to do it hence why i thought id throw it out there 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 February 2021 09:25 UTC](https://discourse.nodered.org/t/template-status/40801/4 "2021-02-11T09:25:01Z")

</div>

so presumably there is code in there to grab the data when it arrives ? use that to also start/reset a separate timer loop - if it times out (nothing arrives) then change the node.status

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [11 February 2021 09:49 UTC](https://discourse.nodered.org/t/template-status/40801/5 "2021-02-11T09:49:24Z")

</div>

So would a status node work for this?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 February 2021 09:58 UTC](https://discourse.nodered.org/t/template-status/40801/6 "2021-02-11T09:58:10Z")

</div>

err sorry thinking about it this is a ui node so no... - but it can just send regular output. (as if it was a button etc)

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [11 February 2021 10:01 UTC](https://discourse.nodered.org/t/template-status/40801/7 "2021-02-11T10:01:22Z")

</div>

Not sure what you mean.. could you elaborate a bit 😃

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 February 2021 10:25 UTC](https://discourse.nodered.org/t/template-status/40801/8 "2021-02-11T10:25:20Z")

</div>

You can use a http request node, enter the vlc url, if it returns 200 you know it is alive.

---

<div class="post-metadata">

**Author:** ![leftymuller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leftymuller/32/102326_2.png) [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Post date:** [11 February 2021 11:50 UTC](https://discourse.nodered.org/t/template-status/40801/9 "2021-02-11T11:50:26Z")

</div>

I monitor the process with a script that returns if its running so its sorta the same!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44d1ac59c0290edf270e4c421624671fd5bd112d.png)

I was hoping it could be monitored from each dashboard client

```auto
#!/bin/bash
ps ax |grep vlc |wc --lines

```

---

<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:** [12 April 2021 11:50 UTC](https://discourse.nodered.org/t/template-status/40801/10 "2021-04-12T11:50:43Z")

</div>

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