class platypush.backend.nodered.NoderedBackend(port: int = 5051, *args, **kwargs)[source]

This backend publishes platypush actions to a Node-RED instance. If you enable this backend on a host that runs Node-RED then a new block (platypush -> run) can be used in your flows. This block will accept JSON requests as input in the format {"type":"request", "action":"", "args": {...}} and return the output of the action as block output, or raise an exception if the action failed.


  • pynodered (pip install pynodered)

__init__(port: int = 5051, *args, **kwargs)[source]

port – Listening port for the local publishing web server (default: 5051)


Callback invoked when the process stops


Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.