Modifications

Sauter à la navigation Sauter à la recherche
445 octets supprimés ,  2 avril 2017 à 14:18
Ligne 65 : Ligne 65 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
{{traduction}}
+
Une fois que vous avez collé (et mis à jour) le script ci-dessus PRESSEZ CTRL+X puis Y pour sauver les changements. Ensuite nous allons le rendre exécutable de sorte que nous pourrons l'exécuter.  
 
  −
Once you have pasted and updated the above script hit CTRL+X and then Y to save changes. Next we will make the file executable so that it can be run.  
      
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 73 : Ligne 71 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Finally to ensure the script will start at boot and stop at shutdown we need to update the rc.d file.  
+
Pour finir, pour s'assurer que le script démarrera au démarrage du Pi (boot) et arrêté durant sa mise à l'arrêt, il faudra faire une mise-à-jour du fichier {{fname|rc.d}} .  
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 79 : Ligne 77 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Thats it! Nice and simple, as stated at the start the following commands will now work.  
+
Voilà! Simple et efficace. Les commandes suivantes permettent de vérifier le bon fonctionnement du service:
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 86 : Ligne 84 :  
sudo service node_red restart
 
sudo service node_red restart
 
</syntaxhighlight>
 
</syntaxhighlight>
  −
The final part to managing Node-Red is keeping it up to date. Since we cloned the Node-Red repository originaly from Git Hub we can easily pull down the latest versions whenever we want.
  −
  −
To do this it is as simple as navigating to the home directory of your installation:
  −
  −
<syntaxhighlight lang="bash">
  −
cd ~/node-red/
  −
</syntaxhighlight>
  −
  −
And to then run git pull
  −
  −
<syntaxhighlight lang="bash">
  −
sudo git pull
  −
</syntaxhighlight>
  −
  −
If there are any changes you will see them being downloaded. You can then restart Node-Red using our service script and you are ready to go again.
      
== Raspbian Jessie et SystemD ==
 
== Raspbian Jessie et SystemD ==
29 922

modifications

Menu de navigation