RPICT and Node-Red hosted on Raspberrypi: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:


Start to build a flow with a ''Serial Input'' a ''Function'' block and ''Debug'' output.
Start to build a flow with a ''Serial Input'' a ''Function'' block and ''Debug'' output.
[[File:Rpictnodered_003.png]]

Revision as of 14:10, 30 May 2019


Make sure any program using the ttyAMA0 serial is off (emonhub, python programs etc).

We assume a fresh install of Raspbian in this document.

Make sure you have followed the steps to setup the serial port first. Howto setup Raspbian for serial read

Install Node-Red as follow

sudo apt-get install nodered

Start Node Red

node-red-start

You will see a similar message to this below at the top

Once Node-RED has started, point a browser at http://192.168.1.206:1880

Open a browser and go the indicated address. http://192.168.1.206:1880 for us here.

How to setup Node-Red depends on what the user wants to achieve. We will show a simple example here how to split the data from the serial string.

Start to build a flow with a Serial Input a Function block and Debug output.