Node-RED Tutorial - Part 2: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
 
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:


= Preconditions =
= Preconditions =
* Installed chrome browser
* Open the testsuite from tutorial - part 1
*Make sure you did the step '''Specify necessary paths''' from the first part of the tutorial before you make this part. [[Node-RED Tutorial - Part 1]]
* Make sure you did the step '''Specify necessary paths''' from the first part of the tutorial before you make this part. [[Node-RED Tutorial - Part 1]]


= Collect Nodes from the Node-RED library =
= Collect Nodes from the Node-RED library =
Zeile 30: Zeile 30:


* A window opens
* A window opens
** Enter here the node name ''node-red-contrib-amazon-echo''
** Enter here the node name ''node-red-contrib-speedtest-updated''
** '''Hint:''' If you want to install all nodes which contains e.g. ''smarthome'' in their names just enter ''*smarthome*''
** '''Hint:''' If you want to install all nodes which contains e.g. ''smarthome'' in their names just enter ''*smarthome*''




[[Datei:enter node name.png|800px]]
[[Datei:specify node name.png|800px]]




Zeile 41: Zeile 41:
** Information about the installation can be found in the lower left corner of the window
** Information about the installation can be found in the lower left corner of the window


[[Datei:installation information.png|800px]]



[[Datei:finished installation.png|800px]]^
[[Datei:finished installation.png|800px]]


= Importing the Node =
= Importing the Node =
Zeile 54: Zeile 53:


*A small window opens
*A small window opens
** The ''.node-red'' folder will be opened automatically
** Click on the little house icon
** Navigate to ''.node-red → node_modules''
** Navigate to the ''node_modules'' folder
** Search in this folder after a folder called ''node-red-contrib-amazon-echo''
** Search in the ''node_modules'' folder after a folder called ''node-red-contrib-speedtest-updated''
** Select the file ''index.html'', then click OK
** Select the file ''speedtest.html'', then click OK




[[Datei:import alexa.png|800px]]
[[Datei:import speedtest.png|800px]]




Zeile 67: Zeile 66:




[[Datei:generated nodes.png|800px]]
[[Datei:generated speedtest nodes.png|800px]]


*Select and execute ''speedtest''

[[Datei:execute speedtest.png|800px]]


* Click on the tab ''Run'' → ''Pins'' to see the result


[[Datei:see result.png|800px]]

Aktuelle Version vom 17. Februar 2020, 08:48 Uhr

Introduction[Bearbeiten]

The following tutorial shows how to import Nodes from the Node-RED library into expecco

Preconditions[Bearbeiten]

  • Installed chrome browser
  • Make sure you did the step Specify necessary paths from the first part of the tutorial before you make this part. Node-RED Tutorial - Part 1

Collect Nodes from the Node-RED library[Bearbeiten]

  • Click on OperationsCollect List of Nodes in Attachment
    • The Node-RED library gets opened in a browser and the names of each node of the library get extracted and saved in the attatchment listOfNodes
    • Hint: Collecting the node names take a few minutes and offers the opportunity for a short coffee break


Navigate to Collect List of Nodes.png


  • Node-RED library


Node-RED library.png


Installing Nodes[Bearbeiten]

  • Click on OperationsInstall Nodes


Install nodes.png


  • A window opens
    • Enter here the node name node-red-contrib-speedtest-updated
    • Hint: If you want to install all nodes which contains e.g. smarthome in their names just enter *smarthome*


Specify node name.png


  • The entered node will be installed
    • Information about the installation can be found in the lower left corner of the window


Finished installation.png

Importing the Node[Bearbeiten]

  • Click on OperationsImporting Nodes


Importing a Node.png


  • A small window opens
    • The .node-red folder will be opened automatically
    • Navigate to the node_modules folder
    • Search in the node_modules folder after a folder called node-red-contrib-speedtest-updated
    • Select the file speedtest.html, then click OK


Import speedtest.png


  • A new folder should have been created
    • Open this folder to see the just generated elementary blocks


Generated speedtest nodes.png


  • Select and execute speedtest


Execute speedtest.png


  • Click on the tab RunPins to see the result


See result.png



Copyright © 2014-2024 eXept Software AG