Public Repository

Last pushed: 5 months ago
Short Description
Sensor and Pentaho solution integration example
Full Description

Changes
1.0(0.9 based)
added real TOF support.
1.2
added multi real TOF support
added Entry/Exit UP, DOWN, LEFT, RIGHT (TOF-Analysis)
start script

  1. Docker run
    1) Linux
    docker pull baesh/tof_pentaho:0.8
    docker run -i -t -p 8080:8080 -p 1883:1883 -p 9002:9002 --name tof_pentaho baesh/tof_pentaho:0.8 /bin/bash
    2) Windows
    docker pull baesh/tof_pentaho:0.9
    docker run -i -t -p 8080:8080 -p 1883:1883 -p 9002:9002 --name tof_pentaho baesh/tof_pentaho:0.9 /bin/bash

    The difference between versions 0.8 and 0.9 is that the IP part of “ws://{IP}:9002/mqtt” ((CDE) TOF-RealTime - brokerParam)
    Linux : ws://192.168.0.90:9002/mqtt
    Windows : ws://192.168.99.100:9002/mqtt

    3) 1.0
    docker pull baesh/tof_pentaho:1.0
    docker run -i -t -p 8080:8080 -p 1883:1883 -p 9002:9002 --name tof_pentaho baesh/tof_pentaho:1.0 /bin/bash

    4) 1.2
    docker pull baesh/tof_pentaho:1.2
    docker run -i -t -p 8080:8080 -p 1883:1883 -p 9002:9002 --name tof_pentaho baesh/tof_pentaho:1.2 /bin/bash

  2. Service Start
    1) common
    /etc/init.d/mysql start
    /etc/init.d/mosquitto start
    /root/pentaho/pentaho-server/start-pentaho.sh
    nohup /root/pentaho/data-integration/pan.sh -file=/root/pentaho/data-integration/samples/tof/tof-device-emulator.ktr -param:delaytime=1000 &
    nohup /root/pentaho/data-integration/pan.sh -file=/root/pentaho/data-integration/samples/tof/tof-mqtt-to-mysql.ktr &
    2) 1.0
    cd /root/pentaho/tof
    ./HumanCounterPentahoCLI [tof_no] [mqtt_address]
    Ex) ./HumanCounterPentahoCLI 1 localhost

    • If the IP of TOF is not 192.168.0.105, you need to modify the /root/pentaho/tof/tof.ini file.

    3) 1.2
    Real TOF Devices : Start Script
    1 TOF (7 emulator) : /root/pentaho/start-1_realTOF.sh
    2 TOF (6 emulator) : /root/pentaho/start-2_realTOF.sh
    3 TOF (5 emulator) : /root/pentaho/start-3_realTOF.sh
    4 TOF (4 emulator) : /root/pentaho/start-4_realTOF.sh
    8 TOF (0 emulator) : /root/pentaho/start-8_realTOF.sh

    Start Script(ex: /root/pentaho/start-1_realTOF.sh) contains all service start command.

    Real TOF No : TOF IP
    1 : 192.168.0.105
    2 : 192.168.0.106
    3 : 192.168.0.107
    4 : 192.168.0.108
    5 : 192.168.0.109
    6 : 192.168.0.110
    7 : 192.168.0.111
    8 : 192.168.0.112

  3. Run example
    (1) Using a browser to connect to http://{IP}:8080
    Ex) http://192.168.0.90:8080 (Linux)
    http://192.168.99.100:8080 (Windows)

    Default ID/PASSWORD

     ID : admin
     PASSWORD : password
    

    (2) Example Open
    1) Browse Files > (Folders) > Public - tof -> (Files) > (CDE) TOF-Analysis, (CDE) TOF-RealTime Select
    2) File Actions -> Open
    3) RealTime Tap -> Connect button click

  • Environment
    Server IP : 192.168.0.90
    Browser : Google Chrome
    RAM : 6GB or more memory

  • If the IP address of the server running Docker is not 192.168.0.90 (Linux) or 192.168.99.100 (Windows) it is necessary to modify it.
    1) Connect to http://{SERVER-IP}:8080 and admin login
    2) Browse Files -> (Folders) > Public - tof -> (Files) > (CDE) TOF-RealTime -> Edit
    3) Editing:TOF-RealTime Tab -> Components Panel -> Group (Generic) -> Simple parameter (brokerParam) -> Property value : ws://192.168.0.90:9002/mqtt => Edit IP Address
    4) Save
    5) Example Reopen
    i) Browse Files > (Folders) > Public - tof -> (Files) > (CDE) TOF-Analysis, (CDE) TOF-RealTime Select
    ii) File Actions -> Open
    iii) RealTime Tap -> Connect button click

Docker Pull Command
Owner
baesh

Comments (0)