Modifications

Sauter à la navigation Sauter à la recherche
332 octets ajoutés ,  3 avril 2017 à 09:33
aucun résumé de modification
Ligne 3 : Ligne 3 :  
{{traduction}}
 
{{traduction}}
   −
Node-Red comes with an excellent set of basic nodes within its palette however there are more out there and there is certainly nothing stopping you from writing your own!
+
Node-Red est livré avec un ensemble de noeud qui représente une très bonne base et rien ne peut vous empêcher d'écrire vos propres noeuds!
   −
Some of the nodes also have dependencies on external libraries and without these being installed will not function correctly. As an example for the twitter node to work correctly you need OAuth which allows you to authenticate with twitter.com to be able to send/receive tweets.
+
Certains noeuds ont également des dépendances vers des bibliothèques externes et si elles ne sont pas installée ces noeuds ne fonctionnerons pas correctement. Par exemple, pour le noeud Twitter, il est nécessaire d'avoir la bibliothèque OAuth pour qu'il fonctionne correctement (OAuth est utilisé pour gérer l'authentification sur twitter.com afin d'envoyer/recevoir des tweets).
   −
You may remember from the initial starting of node red we saw a list of these missing dependencies as shown below.  
+
Lors de notre démarrage initial de node red, vous devriez voir une liste de ces dépendances manquantes comme indiqué ci-dessous.  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 38 : Ligne 38 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
You may have more in your list as I have installed quite a few but the main point is that the "Cannot find module 'X'" is Node-Red telling us that we have a missing dependency.
+
Vous pourriez avoir une liste plus garnie que celle-ci (dans cette installation, nous avons uniquement installé quelques modules). Le principal ici sont les message Node-Red "Cannot find module 'X'" (''ne trouve pas le module X'') qui vous indique les dépendances manquantes.
   −
Luckily it is very easy to install these and as an example if we wanted to install the swear filter node, which filters out bad words we just simply have to carry out the following steps.
+
Heureusement, il est très facile d'installer ces dépendances. Par exemple, nous allons installer la dépendance qui filtre les mots grossiers (''badwords'') en quelques étapes :
   −
First stop node red if it is running using the management script from earlier on in the tutorial.  
+
Pour commencer, nous allons arrêter Node-Red (à l'aide du script de gestion édité ci-avant dans le tutoriel).  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 48 : Ligne 48 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Then ensure you are within your Node-Red directory. If you have been following this tutorial yours will match mine as shown below.  
+
Placez vous dans le répertoire de Node-Red. Si vous avez suivit ce tutoriel, votre répertoire d'installation de "node-red" se trouve dans {{fname|~/node-red/}} .  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 54 : Ligne 54 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Next we use node package manager to install the dependency for us, which is named exactly as the "Cannot find module" statement told us.  
+
Ensuite, nous allons utiliser le gestionnaire de paquet de noeud pour installer les dépendances, noeud qui porte exactement le nom indiqué dans l'alerte "Cannot find module" .  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 60 : Ligne 60 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
You will then see the package being installed.  
+
Vous verrez alors les informations d'installation du paquet.  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 70 : Ligne 70 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Once that has completed we can start Node-Red up again and you will be able to now use the Swear Filter node.  
+
Une fois cela achevé, nous pouvons redémarrer Node-Red uet nous seront capable d'utiliser le noeud "Swear Filter" (filtre des mots grossiers).  
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
29 918

modifications

Menu de navigation