This Node-RED extension provides new nodes, making use of the Web of Things (WoT) framework. These nodes enable developers to address Thing/device functionality without specifically addressing each device.
This project aims to enable IoT system workflows to be produced without the need to remember or address the specific devices within a system, reducing burden on developers creating these systems and simplifying workflow construction.
These instructions will get you a copy of the project up and running on your local machine.
Note: These instructions are for Windows machines only, and require npm and Node-RED to be installed.
git clone https://github.com/warburec/Generalised-Compilation.git
Create the following files with their content: install_in_node.cmd
@echo off
echo Installing system-node for Node-RED
cd <<Path to your ".node-red" folder>>
cmd /C npm uninstall Node-RED-System-Node
cmd /C npm install <<Path to your copy of this repository>>
start_test_node_RED.cmd
@echo off
start /b .\commands\install_in_node.cmd &
@REM start /b .\commands\startServer.cmd &
cd <<Path to the directory from which to run the Node-RED server>>
cmd /C node-red
startServer.cmd
@echo off
echo starting
node server.js
Run start_test_node_RED.cmd
With the server running, go to http://localhost:1880/ to open the Node-RED editor.
The following nodes should be visible within the Web of Things panel on the left of the editor, within the node list:
- system-action-node
- system-event-node
- system-property-node
Note: For the system to work a Thing Directory must be set up with the Web of Things (WoT) framework and made available. The Thing Directory must have an action called "getURIs" that will return a list of all Thing URIs for the Things connected to it.
Make a pull request. Make an issue for large changes.
See LICENSE.md