Panel | ||
---|---|---|
| ||
SpinalHub, usually just called “hub”, is at the core of the IoT systems using SpinalCom technologies. All the data collected and processed by the organs is synchronized between them through the SpinalHub. Its main goal is that all the organs work on the same data, even if they are distributed. For development, you could run the organs and the hub on the same machine. In a production environment, however, the hub should run in a separate node of the network, generally in a gateway. The gateway will be in charge of the communication between your local network and the internet, and will therefore, thanks to SpinalHub, be able to exchange data locally without relying on the cloud. The organs can connect to the hub thanks to the connectors (SpinalCoreJS and SpinalCoreQt), and provide a transparent layer for the developers that will be in charge of loading, storing and synchronizing the data. |
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
SpinalHub run natively on Linux platforms (since it is meant to run mainly in gateways and servers), you can use your favourite OS for development stages and you can deploy the hub on virtual machine, in Docker container or use it on ubuntu for windows... To run natively on Linux, you can download the free version from the the npm package (see getting started pages). You first need to add execute permission to the binaries. From a terminal, run: To start the hub, run from a terminal:
If you wish to have global access to it, you can copy it to a directory included in the global path environment variable (make sure you have permissions). In Ubuntu you can do like this:
|
Panel | ||
---|---|---|
| ||
The hub can be divided in 4 parts:
|
Panel | |||||
---|---|---|---|---|---|
| |||||
There is no necessary extra configuration to be made for running SpinalHub. However, if you would like to customize it, there are a few parameters you can pass when executing it. The usage is:
Where the options are:
|
...