How to create an Modbus-TCP alarm status dashboard

in the loop...

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

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

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

Got it,
thanks

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.

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.

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).


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

1 Like

Thank you that will be excellent if you could share that

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