This example uses node-red but an installation is not required at your machine, as we are using Docker. You can import the json file to receive data from kuksa-val-server. Then you can use the node-red dashboard feature to view data.
The following node red extensions are used in the example flows:
To test the node-red examples, you need node-red
and kuksa.val
server.
Since we provide docker images to simplify the setup process. You can install the docker at first:
sudo apt install docker.io
Then load kuksa.val
docker images:
wget https://github.com/eclipse/kuksa.val/releases/download/0.1.8/kuksa-val-0.1.8-amd64.tar.xz
docker load -i kuksa-val-0.1.8-amd64.tar.xz
Or for arm64:
wget https://github.com/eclipse/kuksa.val/releases/download/0.1.8/kuksa-val-0.1.8-arm64.tar.xz
docker load -i kuksa-val-0.1.8-arm64.tar.xz
After that, just start all needed container using docker-compose.yml
:
sudo apt install docker-compose
ARCH=arm64 docker-compose up -d
-d
for detach.
Note: You need to be in this directory to be able to start the docker-compose.yml
to use docker-compose
to start all docker containers or shut down all docker containers:
ARCH=arm64 docker-compose down
Note: At first start, you may need to install the node red extensions under the palette manager.
By default, the mqtt flows will be configured in node-red. You can also use the import feature inside node-red to try the websocket example below.
Now you can view the example under http://<node-red server ip>:1880.
To test the example, you can use the viss test client or use the gps feeder.
In feeders.yml
, you can find the experimental config for gps feeder container. You use the following command to also start containers of feeders:
ARCH=arm64 docker-compose -f docker-compose.yml -f feeders.yml up
mqtt/flows.json subscribes some mqtt topics, which will be published by kuksa-val-server
Note: Do not forget to config your kuksa-val-server
to publish the needed topics using the option --mqtt.publish
, if you do not use docker-compose.yml
to start the kuksa-val-server
.
- websocket-subscription.json do the same like the mqtt example above via websocket subscription feature.
- websocket-advanced.json implements a test client and uses secure connection with server