Spike to work with Node-RED and PLC sources and MQTT
- A git client
- A Siemens PLC
- Docker 17.03.1-ce or later
- Docker Compose 1.11.2 or later (Included with Docker for Windows and Docker for Mac, separate install on Linux)
Other installations, Linux etc.
- Start your console
- Clone this repository:
git clone git@github.com:Eventfully/nodered-plc-spike.git
- Change dir to the cloned repo:
cd nodered-plc-spike
- Run docker-compose to start the services:
docker-compose up
(it builds the images first time it runs) - Point your browser to port 1880 - http://localhost:1880
- Change the IP of your Siemens PLC and probably also the variables/datablocks
- Test and have fun!
Available on port 3306, user: root, password: password, in the flow, available as hostname db
Available on port 1883, no credentials, in the flow, available as hostname mqtt
A great tool for testing MQTT is MQTT.fx, requires a Java Runtime.