user-interface - Node-Red 检测仪表板页面访问

标签 user-interface dashboard node-red

如何让 node-red 检测到 dashboard UI 页面已被访问,即有人正在查看该页面。

我这么说是因为我会比没有人访问时更频繁地向仪表板发送更新。我知道我可以实现 Websockets,但这将是我创建的页面,而不是仪表板 UI

I have looked everywhere, and in forums, no solutions offered besides create a custom webpage

最佳答案

发生这种情况时,ui_control 节点可用于发出消息。

ui_control 节点的信息侧边栏:

When any browser client connects or loses connection, or changes tab, this node will emit a msg containing:

  • payload - connect, lost, or change.
  • socketid - the ID of the socket (this will change every time the browser reloads the page).
  • socketip - the ip address from where the connection originated.
  • tab - the number of the tab. (Only for 'change' event).
  • name - the name of the tab. (Only for 'change' event).

关于user-interface - Node-Red 检测仪表板页面访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55690004/

相关文章:

javascript - 如何从 Node 控制台查看 html?

dashboard - xwiki 删除仪表板列

java - 使用java套接字在不同网络之间进行通信

node.js - Node 红色 openshift 用户目录

java - JTable 不显示任何内容?

python - 在 QtWidget 的 PyQt5 中按下角落里的红色 x 按钮时如何处理/覆盖?

css - Bootstrap 4滚动条在2个div上并排固定和流动宽度

elasticsearch - 如何在 Grafana 中重置 "alerting"状态

node.js - 如何在不重新启动的情况下重新加载 Node-RED 中的 Node ?

java - 如何插入二叉搜索树上的下一个可用节点?