-
Notifications
You must be signed in to change notification settings - Fork 33
Home
Julian Knight edited this page Oct 12, 2017
·
45 revisions
To help co-ordinate content for the cookbook, this wiki will be used to track topics we want to cover.
If you want to contribute a recipe to the cookbook:
- check the list here for topics we want to cover.
- have a read of the style guide
- clone the repository, add your recipe and send us a pull request
If you want to discuss any aspect, come join us in the #docs channel on slack.
Topics in italics are high-level themes and may need breaking down into multiple recipes.
see Basics
- Set a message property to a fixed value
- Delete a message property
- Move a message property
- Map a property between different numeric ranges
- Trigger a flow whenever Node-RED starts
- Trigger a flow at regular intervals
- Trigger a flow at a specific time
- Route a message based on one of its properties
- Route a message based on a context property
- Perform an operation on each element in an array
- Trigger a flow if a message isn’t received after a defined time
- Limit the rate of messages passing through a flow
- Trigger a flow when a message property changes value
- Create a simple state machine
- Trigger a flow when a node throws an error
- Automatically retry an action after an error
- Convert to/from JSON
- Convert to/from XML
- Convert to/from YAML
- Convert to/from CSV
- Extracting data from an HTML page
- Split text into one message per line
- Create an HTTP Endpoint
- Handle query parameters passed to an HTTP endpoint
- Handle url parameters in an HTTP endpoint
- Access HTTP request headers
- Include data captured in another flow
- Serve JSON content
- Serve a local file
- Post raw data to a flow
- Post form data to a flow
- Post JSON data to a flow
- Work with cookies
- Secure my HTTP flow endpoints
- Create a web-based file upload capability (ref)
- Create an admin configuration API endpoint
- Simple GET request
- Set the url of a request
- Set the url of a request using a template
- Set query string parameters
- Get a parsed JSON response
- Get a binary response
- Set a request header
- MQTT Basics
- Connect to an MQTT broker
- Publish messages to a topic
- Set the topic of a published message
- Publish a retained message to a topic
- Subscribe to a topic
- Receive a parsed JSON message
- Connect securely to an MQTT Broker
- Create a websocket listener endpoint
- Send and receive messages using websocket listener
- Connect to an websocket endpoint as a client
- Send and receive messages to websocket client endpoint
- branching a flow
- looping
- watchdog - trigger
- report by exception
Suggest section for functions where we provide simple info on Javascript, how to use the APIs available for function nodes based on Writing Functions.
- Generate a new message using Javascript
- Send data to multiple outputs
- see Writing Functions
- Access different parts of a msg object (see here for examples)
- Calculate a result using messages from two different inputs
- catch an error
- retry an action after an error
- Write data to a local file
- Read data from a local file
- for all X in dbs
- insert data into db X
- query data from db X
- Collect data in memory temporarily
- Collect data and periodically save in a database
- How to use the storage plugin to save flows to a database
- How to backup flows and related configuration
- Configure to use SSL using a self signed certificate (https://github.com/TotallyInformation/SelfSigned-Cert-Creator)
- How can I make reinstallation of nodes easier? On a Node.JS upgrade for example
- colouring text based on value
- responsive switches
- Angular recipes