@andreydk1981/node-red-dashboard-2-ui-projector 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/nodes/ui-projector.html +54 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/nodes/ui-projector.html
CHANGED
|
@@ -73,6 +73,60 @@
|
|
|
73
73
|
<dd>Разрешение, отображаемое под иконкой проектора. Например: <code>"1920x1080"</code>, <code>"4K"</code>, <code>"HD"</code></dd>
|
|
74
74
|
</dl>
|
|
75
75
|
|
|
76
|
+
<h3>Пример (flow)</h3>
|
|
77
|
+
<p>Ниже пример простого потока, использующего узел <code>ui-projector</code>. Скопируйте JSON в буфер обмена и импортируйте в Node‑RED (menu → Import → Clipboard):</p>
|
|
78
|
+
<pre><code>{
|
|
79
|
+
"id": "example-1",
|
|
80
|
+
"type": "tab",
|
|
81
|
+
"label": "UIProjector example",
|
|
82
|
+
"disabled": false,
|
|
83
|
+
"info": "",
|
|
84
|
+
"nodes": [
|
|
85
|
+
{
|
|
86
|
+
"id": "n1",
|
|
87
|
+
"type": "ui-projector",
|
|
88
|
+
"z": "example-1",
|
|
89
|
+
"name": "Projector1",
|
|
90
|
+
"group": "your-dashboard-group-id",
|
|
91
|
+
"order": 0,
|
|
92
|
+
"width": 0,
|
|
93
|
+
"height": 0,
|
|
94
|
+
"x": 200,
|
|
95
|
+
"y": 120,
|
|
96
|
+
"wires": [
|
|
97
|
+
["debug1"]
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "inject1",
|
|
102
|
+
"type": "inject",
|
|
103
|
+
"z": "example-1",
|
|
104
|
+
"name": "Turn ON",
|
|
105
|
+
"props": [{"p":"payload","v":"ON","vt":"str"}],
|
|
106
|
+
"repeat": "",
|
|
107
|
+
"crontab": "",
|
|
108
|
+
"once": false,
|
|
109
|
+
"onceDelay": 0.1,
|
|
110
|
+
"topic": "",
|
|
111
|
+
"x": 80,
|
|
112
|
+
"y": 80,
|
|
113
|
+
"wires": [["n1"]]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "debug1",
|
|
117
|
+
"type": "debug",
|
|
118
|
+
"z": "example-1",
|
|
119
|
+
"name": "debug",
|
|
120
|
+
"active": true,
|
|
121
|
+
"console": "false",
|
|
122
|
+
"complete": "payload",
|
|
123
|
+
"x": 360,
|
|
124
|
+
"y": 120,
|
|
125
|
+
"wires": []
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}</code></pre>
|
|
129
|
+
|
|
76
130
|
<h3>Подробности</h3>
|
|
77
131
|
<p>Виджет сохраняет последний установленный цвет и разрешение при получении других сообщений.</p>
|
|
78
132
|
<p>При обновлении страницы цвет и разрешение восстанавливаются из последнего сохраненного сообщения.</p>
|