GithubHelp home page GithubHelp logo

ics-unisg / nassy Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 58 MB

Home Page: https://git.uibk.ac.at/c62459/dcap-official

License: The Unlicense

Python 3.43% Java 68.35% Dockerfile 0.10% JavaScript 0.04% HTML 0.07% Vue 0.59% Jupyter Notebook 27.41%

nassy's Introduction

Installation of the tool

Requirement

  • docker-compose
  • pipenv
  • python 3.9
  • npm
  • vscode

Installation on Ubuntu

sudo apt install curl python3.9 pip pipenv -y
curl https://get.docker.com | sh && sudo systemctl --now enable docker
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Installation on Mac

Make sure to increase the resource limit of docker to at least 4GB Ram.

Run the infrastructure

docker-compose up --build

DCAP is now running and can be used. In nifi/processors/dcapclient/ is a filter notebook that shows how filtering works.

Setup NIFI

Navigate to (http://localhost:1111/nifi)[http://localhost:1111/nifi] and add the infrastructure from the nifi template.

image

Press anywhere outside the NIFI stages

image

Press the Configuration icon of NIFI Flow

Go to Controller Services Panel

Pasted Graphic 1

Press the Configration icon of JettyWebSocketServer

Copy the Id

Controller Service Details

Go to UpdateAttribute phase

image

Press the Configuration icon

Go to the Properties Panel

Configure Processor

Paste the id in the field websocker.controller.service.id

Close the Panel

Press anywhere outside the NIFI stages

Press the Configuration icon of NIFI Flow

Go to Controller Services Panel

Enable all services by pressing the enable icons of the different services

Run NIFI

Start ET-Indicator

cd nifi/et-indicator/
npm install
npm run serve

Navigate to (http://localhost:8080)[http://localhost:8080]

iTrace / iMotions

Make sure to follow the steps here: https://github.com/ics-unisg/dcap/tree/main/imotions

Usage

Recorded data

You can "replay" recorded data in realistic speed. ET-Simulator can do that.

cd nifi/et-simulator
pipenv install
pipenv run python read_file.py

This will play all data in sample.csv.

Live data

Start the reader. Do not forget to point iMotions to your IP. You have to be in the same network.

cd nifi/et-reader/
pipenv install
pipenv run python3 reader.py

Reset database

cd nifi/et-simulator
pipenv install
pipenv run python reset.py

Ideas

Matlab in nifi can be done with matlab in the nifi docker container https://github.com/mathworks-ref-arch/matlab-dockerfile

nassy's People

Contributors

aminobest avatar eigenmannmartin avatar ulirol avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kej-jay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.