Industrialized Raspberry Pi for Custom Automation Projects
For platform details read on here.
The image - Debian(jessie) with Node-RED and FRAM node
Base of this image builds a tagged version of debian:jessie with installed Internet of Things flow-based programming web-tool Node-RED and two extra nodes FRAM read and FRAM write providing access to netPI's 8kByte FRAM FM24CL64B.
To grant access to the Node-RED porgramming tool in the container its used port
1880 needs to be mapped to a free netPI host port.
To grant access to the FRAM from inside the container netPI's
i2c-1 host device needs to be exposed to the container.
STEP 1. Open netPI's landing page under
https://<netpi's ip address>.
STEP 2. Click the Docker tile to open the Portainer.io Docker management user interface.
STEP 3. Enter the following parameters under Containers > Add Container
Host "1880" (any unused one) -> Container "1880"
Restart policy" :
Runtime > Devices > add device:
Host "/dev/i2c-1" -> Container "/dev/i2c-1"
STEP 4. Press the button Actions > Start container
Pulling the image from Docker Hub may take up to 5 minutes.
After starting the container open Node-RED in your browser with
http://<netPI ip address>:<mapped host port> e.g.
http://192.168.0.1:1880. Two extra nodes FRAM read and FRAM write in the nodes library provides you random access to netPI's FRAM. Their info tabs in Node-RED explain how to use them.