LogicMachine Forum
Alerts like visualization - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visu (https://forum.logicmachine.net/forumdisplay.php?fid=24)
+--- Thread: Alerts like visualization (/showthread.php?tid=6195)



Alerts like visualization - balatis - 20.11.2025

Is there any chance that i could set the alerts to pop up in visu as like it was possible in visualization?    


RE: Alerts like visualization - admin - 20.11.2025

Add to Custom JavaScript (three dots menu in the top right corner):
Code:
localbus.listen('alerts', (src, text) => alert(text))



RE: Alerts like visualization - balatis - 20.11.2025

(20.11.2025, 09:27)admin Wrote: Add to Custom JavaScript (three dots menu in the top right corner):
Code:
localbus.listen('alerts', (src, text) => alert(text))

Thank you!


RE: Alerts like visualization - AlexLV - 20.11.2025

Hi, is it works locally? In any browser?

Is somehow possible create an alert using cloud and be seen at mobile?

Alex


RE: Alerts like visualization - admin - 20.11.2025

This will only work locally not via cloud. We plan to create a more complex alerting system that will have cloud connectivity.

Instead of using built-in alerts you can use a virtual object with 250 byte text data type. For this to work over cloud you either need to have this object displayed on any visu plan or assign lmcloud tag to this object.
Code:
localbus.listen('groupwrite', (e) => {
  if (e.dst === '0/0/14') {
    alert(e.value)
  }
})



RE: Alerts like visualization - AlexLV - 20.11.2025

Hi, I created group 0/0/14 with 250 byte text data type. I also displayed on new visu (beta) plan and also assigned lmcloud tag to this group, and added to Custom JavaScript your script, updated visu. Still working only locally.

Alex


RE: Alerts like visualization - admin - 21.11.2025

Sync cloud and try again.


RE: Alerts like visualization - savaskorkmaz - 29.01.2026

Hello,
Is there a way to pop up embedded alert page in visu via frame like old visu ? I mean , like Persistent option in old frame usage ?


RE: Alerts like visualization - admin - 29.01.2026

Persistent iframe is not possible in new Visu. But it should be possible to make a solution using Custom JS. Something like a floating button that shows Alert manager frame when clicked.


RE: Alerts like visualization - ALEJANDRO - 13.04.2026

Good morning,

I'm having a problem with alert display in the alert manager.

I have three logic machines. I've created event-based alert scripts on LM3 and SCADA screens on LM1, including the alert manager screen.

My problem is that the alerts aren't displaying when I run the scripts.

I also have a question: could I create the screen on LM3 and display it on LM1? I'm not sure if that makes sense. Thank you very much.


RE: Alerts like visualization - Daniel - 13.04.2026

Can you see your alerts in the alert tab in LM? If yes then you must configure alert manager to include your script wih alert. Alerts are only on local LM.


RE: Alerts like visualization - ALEJANDRO - 13.04.2026

I can see the alerts on LOGIC machine 1 from the alert scripts created in logic machine, but I want to see the alert scripts created in LM2 and LM3 as well; that is, I want a centralized alert console.


RE: Alerts like visualization - Daniel - 13.04.2026

Alerts are local only, to have it in LM2 and LM3 you must create the alert logic on all LMs.


RE: Alerts like visualization - ALEJANDRO - 14.04.2026

OK, I understand that perfectly. I'll rephrase the question.

If I have the SCADA screens on LM1 and one of those screens is the alert manager app,

and I create most of the alerts on LM3, could I create an alert manager screen on LM3, copy its URL, and paste it into LM1 so that the alerts from LM3 are displayed?


RE: Alerts like visualization - ALEJANDRO - 15.04.2026

Good morning,

I need some help. I have a LM (IP = 192.168.0.16) where the alert manager and the display of all alarms from a SCADA system are located.

However, the SCADA display is handled by another LM (IP = 192.168.0.11), and I want to configure the alert manager to display the alerts from the LM (192.168.0.16). So, I've pasted the following address onto a screen on the LM (IP 192.168.0.11): http://192.168.0.16/apps/data/alerts/.

But I'm getting a user access request on the display, and I don't know how to remove it. I've attached an image.


RE: Alerts like visualization - Daniel - 15.04.2026

This won't work, modern browsers blocks frame access via http and without valid ssl certificate on the controller.