Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Example Node-RED "Flows" that can be used for your Raspberry Shake Personal Earth Monitor:

Visit for more information on Node-RED

How to install Node-RED on your computer (or another Raspberry Pi)

Example: Ubuntu 18.04

$ curl -sL | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo npm install -g --unsafe-perm node-red

For installation on other systems:

WARNING: We do not recommend installaing Node-RED on your Raspberry Shake. It will consume a lot of CPU causing the processor to heat up a lot!

How to open Node-RED in your browser and start playing around

$ node-red

Then navigate to: localhost:1880

How to interface with the Raspberry Shake via Node-RED's UDP input

See here for description of UDP input:

We have developed and submitted a node to Node-RED's NPM that translates the UDP input into an array. This is available at: (see: node-red-rshake-udp-parser). To add this node to your local instance of Node-RED:

$ cd $HOME/.node-red
$ npm install node-red-rshake-udp-parser


  1. enable UDP data streaming on your Raspberry Shake. This is explained here:
  2. use UDP input in Node-RED and connect it with 'rshake udp parser'
  3. make sure you changed 'output' to 'a string' at UDP input configuration

Examples Provided

Examples that require UDP streaming

  • blinkingLEDs_RPi.txt - configure seismic thresholds and blink your Raspberry Pi's LEDs
  • blinkingLEDs_RPi-2.txt - configure seismic thresholds and blink your Raspberry Pi's LEDs; Uses rshake udp parser
  • chart.txt - display data from your Raspberry Shake using Chart tool
  • realtime-plot.txt - display real-time data from your Raspberry Shake
  • realtime-plot-2.txt - display real-time data from your Raspberry Shake; Uses rshake udp parser
  • seismicDataStorage.txt - store data from your Raspberry Shake on disk

Examples that do not require streaming

  • retweet.txt - retweets posts containing @raspishake and/ or #raspberryshake on your Twitter feed

How to upload an example Flow to your instance of Node-RED

  1. Open Node-RED in your browser
  2. Click to hamburger menu on the right hand side
  3. Import
  4. Clipboard
  5. Copy and paste and click the "Import" button

How to get access to GPIO for blinking LEDs

For example to blink with green and red LEDs you need to fix permissions. SSH to your device and execute:

sudo chmod 666 /sys/class/leds/led*/brightness



node-RED example "flows" for Raspberry Shake



No releases published


No packages published

Contributors 4