This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Alerts like visualization
#1
Is there any chance that i could set the alerts to pop up in visu as like it was possible in visualization?    
Reply
#2
Add to Custom JavaScript (three dots menu in the top right corner):
Code:
localbus.listen('alerts', (src, text) => alert(text))
Reply
#3
(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!
Reply
#4
Hi, is it works locally? In any browser?

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

Alex
Reply
#5
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)
  }
})
Reply
#6
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
Reply
#7
Sync cloud and try again.
Reply


Forum Jump: