Pixsys logoપોડમેન માર્ગદર્શિકા
સોફ્ટવેર
વપરાશકર્તા માર્ગદર્શિકા

નોડ-રેડ કન્ટેનર બનાવવું

આ માર્ગદર્શિકા Pixsys પર Node-RED કન્ટેનરના ઇન્સ્ટોલેશનને આવરી લે છે. WebPanel “WP” and TouchController “TC” series.
Displaying the Node-RED dashboard on the screen is possible only on WP – WebPanel devices and on TC – TouchController panels with the “WebVisu” license only. On TouchController – TC panels with a “TargetVisu” or “TargetVisu + WebVisu” license, it is not possible to display the Node-RED dashboard.

લૉગિન કરો

Access the device in configuration mode by holding down the STOP button that appears at startup.
નીચેના ઓળખપત્રો દાખલ કરીને રૂપરેખાંકન કન્સોલને ઍક્સેસ કરો:

વપરાશકર્તા નામ: વપરાશકર્તા
પાસવર્ડ: 123456

If the device IP is known, it is also possible, and recommended, to access the configuration console from a browser on the user’s PC by accessing the address: https://device-IP-.9443/ અને ઉપરોક્ત ઓળખપત્રોનો ઉપયોગ કરીને.

નોડ-રેડ માટે ફોલ્ડર બનાવી રહ્યા છીએ

જે કન્ટેનર સક્રિય થવાનું છે તેને યુઝર ડેટા સ્ટોર કરવા માટે જગ્યાની જરૂર છે.
For this purpose, in the devices, there is a folder /data/user.
Using WinScp or another sFTP access software, create a folder node-red within the path /data/user, following the steps below:

  • Open WinSCP, connect to the device using the IP and credentials already used to access the configuration console, and choose /data/userપિક્સીઝ Web Panel Touch Controller Software - Creating the folder for Node-RED
  • From the Menu “New” select the option “Directory…”.પિક્સીઝ Web Panel Touch Controller Software - Directory
  • Create the folder node-red, enabling all “R/W/X” permits:પિક્સીઝ Web Panel Touch Controller Software - Create the folder node-red enabling

The same process is also possible by SSH access and using the following prompts:
mkdir -p /data/user/node-red
chmod a+rwx /data/user/node-red

પિક્સીઝ Web Panel Touch Controller Software - Same process is possible also by SSH access

Download of the container

મેનુ બાર પર "પોડમેન કન્ટેનર" ઍક્સેસ કરો:પિક્સીઝ Web Panel Touch Controller Software - Download of container

Select the option“Download new image” in the menu to the right with the three-dot icon

પિક્સીઝ Web Panel Touch Controller Software - Download new imageSelect the search area “docker.io“પિક્સીઝ Web Panel Touch Controller Software - Select the search areaType “node-red” in “માટે શોધો"

પિક્સીઝ Web Panel Touch Controller Software - “node-red

Select official image “docker.io/nodered/node-red”:

પિક્સીઝ Web Panel Touch Controller Software - Select official image

Then press “Download” and the download of the image will start.

પિક્સીઝ Web Panel Touch Controller Software - Download 2

This is a several hundred Mb file; depending on the internet connection, it may take several minutes.

જ્યારે ડાઉનલોડ પૂર્ણ થશે, ત્યારે તે શક્ય બનશે view ઉપકરણ પરની છબી:

પિક્સીઝ Web Panel Touch Controller Software - download is complete

કન્ટેનર બનાવટ

In the “Containers” Tab, press the “Create container” button. A menu will open to configure the container you want to create.

પિક્સીઝ Web Panel Touch Controller Software - Container creationFill in the “Name” field with a name of your choice, replacing the automatically generated random one.

Tab Details:
From the “Image” box, choose the downloaded image as described in the previous chapter:

પિક્સીઝ Web Panel Touch Controller Software - Tab Details

Configure “Memory limit” to 128 or 256 MB.
“Restart Policy” set to “Always” sets the container to start automatically and be restarted even in the event of a user-commanded shutdown.

Tab Integration:
Configure port mapping to expose port 1880 in both TCP and UDP, and map the Container Path /data, visible from node-red, in Host Path /data/user/node-red

પિક્સીઝ Web Panel Touch Controller Software - Tab Integration

Tab Health check:
This Tab defines the control checks on the correct operation of the container and how it will behave in case of an error.
The image below shows the default parameters:

પિક્સીઝ Web Panel Touch Controller Software - Tab Health checkઆ સમયે એસtage, press “Create and run” and wait for the creation of the container.

કન્ટેનરનું પરીક્ષણ

When the container creation procedure is finished, the “Containers” list will display the new running container (State: Running):

પિક્સીઝ Web Panel Touch Controller Software - Testing the container

Open a browser on PC and go to the page: http://device-IP.1880

પિક્સીઝ Web Panel Touch Controller Software - Open a browser on PC and go to page

ડેશબોર્ડ બનાવી રહ્યા છીએ

ડેશબોર્ડ નોડ-રેડને ગતિશીલ પ્રસ્તુત/પ્રકાશિત કરવાની મંજૂરી આપે છે web પૃષ્ઠ
Install “node-red-dashboard”, opening the Menu Manage palette:

પિક્સીઝ Web Panel Touch Controller Software - Creating a dashboard

માટે શોધો node-red-dashboard within the tab Install

પિક્સીઝ Web Panel Touch Controller Software - <span>Search for</span> node-red-dashboard within tab Install

Wait for the installation to be completed, and then log in to the console and import the Flow entered at the end of the guide from the menu Import:

પિક્સીઝ Web Panel Touch Controller Software - IMport

**આ ભૂતપૂર્વ છેample code with no real purpose.
NB for the use of Node-RED and the Dashboard, please refer to the documentation available online.

પિક્સીઝ Web Panel Touch Controller Software - Node-RED and the Dashboard

એકવાર કોડ આયાત થઈ જાય, પછી આ નીચેના જેવો પ્રોજેક્ટ પ્રદાન કરશે:

પિક્સીઝ Web Panel Touch Controller Software - Once the code is imported

દબાવો પિક્સીઝ Web Panel Touch Controller Software - Symbol 1 પ્રોજેક્ટ કમ્પાઇલ કરવા અને શરૂ કરવા માટે.
Opening page http://device-IP.1880/ui, the result will look like the following:

પિક્સીઝ Web Panel Touch Controller Software - result will look like the following

ડેશબોર્ડ પ્રદર્શિત કરવા માટે પેનલને ગોઠવી રહ્યું છે

At this point, for panels that allow it, access the menu WP Settings, then Main application settings, and enter URL http://localhost.1880/ui
Use the term localhost or IP 127.0.0.1 to make the browser access the device itself, regardless of its actual IP.

પિક્સીઝ Web Panel Touch Controller Software - Configuring the panelUpon reboot, the device will show the full-screen Node-RED Dashboard.

Exampલે પ્રવાહ

The following code is the text to be imported as a Flow in Node-RED:

[
{
“id”: “1e6b97b5.687fd8”,
“type”: “tab”,
“label”: “Dashboard”,
“disabled”: false,
“info”: “”
},
{
“id”: “ 7c8 f 99d9.196b98”,
“type”: “ui_text”,
“z”: “1e6b97b5.687fd8”,
“group”: “dd4567b9.6a4c18”,
“order”: 1,
“width”: “12”,
“height”: “1”,
“name”: “Title”,
“label”: “Dashboard – Random Data Display”,
“format”: “{{msg.payload}}”,
“layout”: “col-center”,
“x”: 330,
“y”: 120,
“wires”: [] },
{
“id”: “2e4a56f8.cfa23a”,
“type”: “ui_gauge”,
“z”: “1e6b97b5.687fd8”,
“name”: “Random Gauge”,
“group”: “dd4567b9.6a4c18”,
“order”: 2,
“width”: “6”,
“height”: “6”,
“gtype”: “gage”,
“title”: “Random Value”,
“label”: “ %”,
“format”: “{{value}}”,
"મિનિટ": "0",
"મહત્તમ": "100",
“colors”: [“#00b500”,”#e6e600”,”#ca3838”],
“seg1”: “30”,
“seg2”: “70”,
“x”: 320,
“y”: 240,
“wires”: [] },
{
“id”: “3b9ddefd.32b9d”,
“type”: “ui_chart”,
“z”: “1e6b97b5.687fd8”,
“name”: “Time-based Chart”,
“group”: “dd4567b9.6a4c18”,
“order”: 3,
“width”: “6”,
“height”: “6”,
“label”: “Random Time Chart”,
“char tType”: “line”,
“legend”: “false”,
“xformat”: “HH:mm: ss”,
“interpolate”: “linear”,
“nodata”: “”,
“ymin”: “0”,
“ymax”: “100”,
“removeOlder”: 1,
“removeOlderPoints”: “”,
“removeOlderUnit”: “3600”,
“cutout”: 0,
“useOneColor”: false,
“colors”: [“#00b500”,”#e6e600”,”#ca3838”],
“outputs”: 1,
“useDifferentColor”: false,
“x”: 600,
“y”: 240,
“wires”: [] },
{
“id”: “ 74b1ae f 8.e7e0d8”,
“type”: “function”,
“z”: “1e6b97b5.687fd8”,
“name”: “Generate Random Data”,
“func”: “msg.payload = Math.floor(Math.random() * 100);\nreturn msg;”,
“outputs”: 1,
“noerr”: 0,
“initialize”: “”,
“finalize”: “”,
“libs”: [],
“x”: 130,
“y”: 240,
“wires”: [
[
“2e4a56f8.cfa23a”,
“3b9ddefd.32b9d”
] ] },
{
“id”: “e0e9bd3c.a8ae2”,
“type”: “inject”,
“z”: “1e6b97b5.687fd8”,
“name”: “”,
“props”: [
{
“p”: “payload”
}
],
“repeat”: “1”,
“crontab”: “”,
“once”: true,
“onceDelay”: 0.1,
“topic”: “”,
“payloadType”: “date”,
“x”: 130,
“y”: 160,
“wires”: [
[
“74b1ae f 8.e7e0d8”
] ] },
{
“id”: “dd4567b9.6a4c18”,
“type”: “ui_group”,
“z”: “”,
“name”: “Random Data”,
“tab”: “fe9b4293.8df8e”,
“order”: 1,
“disp”: true,
“width”: “12”,
“collapse”: false
},
{
“id”: “fe9b4293.8df8e”,
“type”: “ui_tab”,
“z”: “”,
“name”: “Main Dashboard”,
“icon”: “dashboard”,
“order”: 1,
“disabled”: false,
“hidden”: false
}
]

નોંધો / અપડેટ્સ

પિક્સીઝ Web Panel Touch Controller Software - Symbol 2PIXSYS srl
www.pixsys.net
sales@pixsys.net પર ઇમેઇલ મોકલો.સપોર્ટ@pixsys.net
ઓનલાઈન સહાય: http://forum.pixsys.net
via Po, 16 I-30030
Mellaredo di Pianiga, VENEZIA (IT)
ટેલિફોન +39 041 5190518
200525

દસ્તાવેજો / સંસાધનો

પિક્સીઝ Web પેનલ ટચ કંટ્રોલર સોફ્ટવેર [પીડીએફ] વપરાશકર્તા માર્ગદર્શિકા
WP શ્રેણી, TC શ્રેણી, Web પેનલ ટચ કંટ્રોલર સોફ્ટવેર, ટચ કંટ્રોલર સોફ્ટવેર, કંટ્રોલર સોફ્ટવેર, સોફ્ટવેર

સંદર્ભો

એક ટિપ્પણી મૂકો

તમારું ઇમેઇલ સરનામું પ્રકાશિત કરવામાં આવશે નહીં. જરૂરી ક્ષેત્રો ચિહ્નિત થયેલ છે *