Prerequisite Setup

    Users can choose to install Neuorn and eKuiper separately, and use docker-compose to install and configure them directly. The docker-compose.yml example is as follows, and the installed version can be selected according to requirements.

    1. services:
    2. ekuiper-manager:
    3. image: emqx/ekuiper-manager:1.5.0
    4. container_name: ekuiper-manager
    5. ports:
    6. - "9082:9082"
    7. ekuiper:
    8. image: lfedge/ekuiper:1.5.1-slim
    9. hostname: ekuiper
    10. container_name: ekuiper
    11. ports:
    12. - "127.0.0.1:20498:20498"
    13. environment:
    14. KUIPER__BASIC__CONSOLELOG: "true"
    15. KUIPER__BASIC__IGNORECASE: "false"
    16. volumes:
    17. - nng-ipc:/tmp
    18. neuron:
    19. image: emqx/neuron:2.3.0
    20. hostname: neuron
    21. container_name: neuron
    22. ports:
    23. - "7000:7000"
    24. volumes:
    25. - nng-ipc:/tmp
    26. source:
    27. image: alpine/httpie
    28. container_name: httpie
    29. - --check-status
    30. - ekuiper:9081/streams
    31. - sql=CREATE STREAM neuronStream() WITH (TYPE="neuron",FORMAT="json",SHARED="true");
    32. depends_on:
    33. - ekuiper
    34. - neuron
    35. volumes:
    36. nng-ipc:%

    After successful execution, Neuron and eKuiper have been started respectively.

    Login to kuiper-manager.

    • Address: http://$yourhost:9082
    • User name: admin
    • Password: public

    Add the service as shown.

    TIP

    The address in Endpoint should fill in the local address where eKuiper is launched.

    After adding the service, because docker-compose has created a data stream, there should be a neuronStream stream in the newly created service.

    For the specific operation of eKuiper, please refer to

    Dashboard

    When you install a .deb or .rpm Neuron package, there is a default data-stream-processing application node in the northbound application management screen, as shown below.

    data-stream-rules-adapter

    The data stream processing node contains the following information

    • Application Name - data-stream-processing
    • Status - Running
    • State Change Button - ON
    • Connection Status - Disconnected
    • Plugin Module Name - ekuiper

    Click on any blank space of the data-stream-processing application node to enter the Group list screen for subscribing to the group, as shown below.

    To subscribe the data Groups of southbound device,

    • Click on the Add subscription button in the top right corner.
    • Click on the drop down box to select the southbound device, in this case, we select the modbus-tcp-1 device built above.
    • Select the Group you want to subscribe to in the drop-down box, in this case, we select the group-1 created above.
    • Click on Submit button to complete the subscription.