# How to create an Modbus-TCP alarm status dashboard

**URL:** <https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041>\
**Category:** Industrial\
**Created:** [22 March 2021 19:59 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041 "2021-03-22T19:59:23Z")\
**Posts on this page:** 9\
**Page:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 April 2021 11:29 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/41 "2021-04-13T11:29:18Z")

</div>

in the loop...

```javascript
const skip = [3,28,59];
for (var i = 0; i < msg.payload.length; i++) {
   if (skip.includes(i)) continue;
   ...
}

```

---

<div class="post-metadata">

**Author:** ![lucibuz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lucibuz/32/39131_2.png) [@lucibuz](https://discourse.nodered.org/u/lucibuz)\
**Post date:** [13 April 2021 12:04 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/42 "2021-04-13T12:04:52Z")

</div>

Thanks a lot,  
and if I want to consider just those elements? 😀  
kind of a reverse logic.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 April 2021 12:05 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/43 "2021-04-13T12:05:44Z")

</div>

> [@lucibuz](#):
>
> and if I want to consider just those elements? 😀  
> kind of a reverse logic

```auto
const noskip = [3,28,59];
for (var i = 0; i < msg.payload.length; i++) {
   if (noskip.includes(i) == false) continue;
   ...
}

```

---

<div class="post-metadata">

**Author:** ![lucibuz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lucibuz/32/39131_2.png) [@lucibuz](https://discourse.nodered.org/u/lucibuz)\
**Post date:** [13 April 2021 12:06 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/44 "2021-04-13T12:06:48Z")

</div>

Got it,  
thanks

---

<div class="post-metadata">

**Author:** ![lucibuz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lucibuz/32/39131_2.png) [@lucibuz](https://discourse.nodered.org/u/lucibuz)\
**Post date:** [25 April 2021 08:12 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/45 "2021-04-25T08:12:13Z")

</div>

Hello,  
I need your advice on what will be the best way yo send notifications when an alarm is triggered.  
As most of the time I'm on the same network with the raspberry pi that runs node-red is there a way to have notifications sent locally to my phone (ios)?  
What about when I'm on LTE?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![DrdP](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@DrdP](https://discourse.nodered.org/u/DrdP)\
**Post date:** [22 June 2021 02:37 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/46 "2021-06-22T02:37:06Z")

</div>

Thank you for this it helped me a lot. Is there a way to keep the list of alarms in teh list and just add the new alarms above highlighted red if they are active and new.

---

<div class="post-metadata">

**Author:** ![lucibuz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lucibuz/32/39131_2.png) [@lucibuz](https://discourse.nodered.org/u/lucibuz)\
**Post date:** [22 June 2021 09:32 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/47 "2021-06-22T09:32:03Z")

</div>

Hello,  
in my case I have two dashboards, one for the active alarms and one with alarms log that can be sorted by time.  
The alarms log is generated by a database.  
Also the active alarms order can be sorted by time (html table).

 ![active alarms2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/18adadb28f9f858f20daea4721d470a891565485.png)  
 ![log](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f01c1b086e56bad73477923482b7ab1732d15fb5.png)

I'm traveling for the moment but as soon I have access I'll share the code.

---

<div class="post-metadata">

**Author:** ![DrdP](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@DrdP](https://discourse.nodered.org/u/DrdP)\
**Post date:** [23 June 2021 23:00 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/48 "2021-06-23T23:00:34Z")

</div>

Thank you that will be excellent if you could share that

---

<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:** [22 August 2021 23:01 UTC](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041/49 "2021-08-22T23:01:25Z")

</div>

Closed on 22 August 2021 23:01 UTC

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

[Previous page](https://discourse.nodered.org/t/how-to-create-an-modbus-tcp-alarm-status-dashboard/43041.md?page=2)
