Modifications

Sauter à la navigation Sauter à la recherche
4 827 octets ajoutés ,  3 avril 2017 à 15:01
Ligne 190 : Ligne 190 :  
|}
 
|}
   −
sentiment The sentiment node analyses the msg.payload and scores the sentiment of the message based on word analysis. It adds a msg.sentiment object that contains the resulting AFINN-111 sentiment score as msg.sentiment.score. Score typically ranges from -5 to +5.
+
== Noeud d'analyse ==
 +
Analysis nodes perform standard analyses on incoming messages. In the default node set, the only node provided is the sentiment node, which can be used to try and determine the sentiment of an incoming message based on the words used in the message, for example, an email or tweet.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
| align="center" | Nom de Noeud
 +
| align="center" | Description
 +
|- style="font-size: 90%"
 +
| align="left" | sentiment
 +
| align="left" | The sentiment node analyses the msg.payload and scores the sentiment of the message based on word analysis. It adds a msg.sentiment object that contains the resulting AFINN-111 sentiment score as msg.sentiment.score. Score typically ranges from -5 to +5.
 +
|}
 +
 
 +
== Noeud avancés ==
 +
Il existe également des noeuds offrant des fonctionnalités avancées.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
| align="center" | Nom de Noeud
 +
| align="center" | Description
 +
|- style="font-size: 90%"
 +
| align="left" | xx
 +
| align="left" | xx
 +
|- style="font-size: 90%"
 +
| align="left" | watch
 +
| align="left" | Watches a directory or file for changes. You can enter a list of comma-separated directories and/or files. You will need to put quotes “…” around any that contain spaces. On Windows, you must use double backslashes \\ in all directory names.<br />The full filename of the file that actually changed is put into msg.payload, while a stringified version of the watch list is returned in msg.topic.<br />msg.file contains just the short filename of the file that changed. msg.type has the type changed, usually file or directory, while msg.size holds the file size in bytes.
 +
|- style="font-size: 90%"
 +
| align="left" | feedparse
 +
| align="left" | This node monitors an RSS/atom feed for new entries and delivers new entries as messages. It can be configured to query the feed at a specific interval.
 +
|- style="font-size: 90%"
 +
| align="left" | exec
 +
| align="left" | Calls out to a system command and provides 3 outputs: stdout, stderr, and return code. By default uses exec(), which calls the command, blocks while waiting for completion, and then returns the complete result in one go, along with any errors.
 +
|}
 +
 
 +
== Les noeuds Raspberry-Pi ==
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
| align="center" | Nom de Noeud
 +
| align="center" | Description
 +
|- style="font-size: 90%"
 +
| align="left" | xx
 +
| align="left" | xx
 +
|- style="font-size: 90%"
 +
| align="left" | rpi_gpio in
 +
| align="left" | Raspberry Pi input node. Generates a msg.payload with either a 0 or 1, depending on the state of the input pin. You may also enable the input pullup resistor or the pulldown resistor.<br />The msg.topic is set to pi/{the pin number}<br />Requires the RPi.GPIO python library version 0.5.8 (or better) in order to work.<br />Note: we are using the actual physical pin numbers on connector P1 as they are easier to locate.
 +
|- style="font-size: 90%"
 +
| align="left" | rpi_gpio out
 +
| align="left" | Raspberry Pi output node. Expects a msg.payload with either a 0 or 1 (or true or false). Will set the selected physical pin high or low, depending on the value passed in. The initial value of the pin at deploy time can also be set to 0 or 1. When using PWM mode, expects an input value of a number 0 – 100.<br />Requires the RPi.GPIO Python library version 0.5.8 (or better) in order to work.
 +
|- style="font-size: 90%"
 +
| align="left" | rpi_mouse
 +
| align="left" | Raspberry Pi mouse button node. Generates a msg.payload with either a 1 or 0 when the selected mouse button is pressed and released. Also sets msg.button to the code value, 1 = left, 2 = right, 4 = middle, so you can work out which button or combination was pressed.
 +
|}
 +
 
 +
== FRED Nodes - Node-Red dans le Cloud ==
 +
Un petit aparté sur vous offrir des informations utiles concernant un ensemble de noeuds liées a un FRED (Front End pour Node-Red) qui gère des instances de Node-RED dans le cloud pour des utilisateurs.
 +
 
 +
FRED s'occupe de gérer et optimiser votre Instance de Node-Red, vous pouvez ainsi vous concentrer sur votre projet Node-Red sans vous soucier de l'installation, la configuration et la gestion de votre instance.
 +
 
 +
The FRED service adds a number of nodes to the standard default set. These new nodes, which have either been written for FRED or collected from the public repository, have been added, as they offer useful functionality that expands the capabilities of the vanilla node set.
 +
 
 +
Note: these nodes are available in FRED by installing them using the FRED installation panel. For a quick example of how to install nodes check out this [http://developers.sensetecnic.com/article/using-sqlite-with-fred/ tutorial] (''sensetecnics.com, anglais'').
 +
 
 +
As you will see, the majority of these additional nodes focus on services and capabilities that match well with FRED’s nature, i.e. a cloud-based service. In many cases they focus on using Node-RED for web based integration or to access enterprise level services.
 +
 
 +
[[Fichier:Rasp-Node-Red-Basic-Nodes-FRED-01.png]]
 +
 
 +
[[Fichier:Rasp-Node-Red-Basic-Nodes-FRED-02.png]]
 +
 
 +
[[Fichier:Rasp-Node-Red-Basic-Nodes-FRED-03.png]]
 +
 
 
{{Rasp-Node-Red-TRAILER}}
 
{{Rasp-Node-Red-TRAILER}}
29 917

modifications

Menu de navigation