node-red-contrib-particle 0.0.4

Node-RED node to connect to Particle devices. Used to call functions, read variables or listen to Server-Sent Events (SSEs)

npm install node-red-contrib-particle


Node-RED node to connect to Particle Devices, either via local cloud, or the cloud. This can be used to connect to the Particle Core/Photon, call functions, read variables or listen to Server-Sent-Events (SSEs).


npm install node-red-contrib-particle


Three separate nodes are provided to interact with Particle Devices – call a function, read a variable and subscribe to SSEs. The nodes have both INPUT and OUTPUTs – sending appropriate messages (e.g. msg.payload, to the INPUT allows you to change the parameters dynamically.

Where appropriate, the OUTPUT provides returned data from the Particle cloud after the query has been made.

Following are the return values:

Function call

  1. msg.raw contains the raw JSON string returned
  2. msg.payload contains the return value of the function
  3. contains the device id

Read a Variable

  1. msg.raw contains the raw JSON string returned
  2. msg.payload contains the value of the variable
  3. contains the core id

Subscribe to Server-Sent Events (SSEs)

  1. msg.raw contains the raw JSON string returned
  2. msg.evtname contains the event name published
  3. msg.payload the event data
  4. contains the core id
  5. msg.published_at contain the published date and time

Local Cloud and SSE Limitations

There are current limitations with the local cloud package from Particle, which prevents any subscription of device-specific and device-and-event-specific events. Effectively, if you are attempting to subscribe to a local cloud, you are currently only able to listen in on the public firehose (ALL SSEs), or on the event-specific public firehose.

An equivalent of such requests using the RESTful API will resemble:




This is a forked project that built off @krvarma's node-red-contrib-sparkcore initial work (0.0.12).

Copyright 2015 Chuan Khoo (node-red-contrib-particle 0.0.2) for local cloud SSE (limited) support, configuration node implementation, renaming to Particle, implementation of separate nodes for clarity, and cosmetic fixes.

Copyright 2014 Krishnaraj Varma (node-red-contrib-sparkcore 0.0.12)

Node Info

Version: 0.0.4
Updated 1 year, 4 months ago
License: ISC


19 in the last day
100 in the last week
450 in the last month


  • particle-cloud
  • ParticleSSE in
  • ParticleFunc out
  • ParticleVar


  • node-red
  • particle
  • core
  • photon
  • electron
  • P1
  • node-red
  • iot
  • spark
  • device


  • chuank