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 beta testing (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.