Git Product home page Git Product logo

ants-demo's Introduction

ants-demo

"ants-demo" is a program for continuity test of human flow sensing system.

Requirement

  • Python 3.6.5

Environments under Anaconda for Windows is tested.

  • node.js 12.16.2

Environments under Node.js for Windows is tested.

Installation

  • Construction of dummy sensor environment. Install required libraries with pip command.
pip install -r ~/pypackage.txt
  • Construction of dashboard environment. Install required libraries with npm command.
cd ~/ants-demo
npm install

Usage

  • sample_maker.py

"sample_maker.py" creates dummy data of the sensor in the current directory with the name "test.csv".

Run "sample_maker.py"

python sample_maker.py
  • current_sender.py

"current_sender.py" sends the sensor data of the specified file to "router.js" every 0.2 seconds.

The file must be specified with the full path.

Run "current_sender.py"

python current_sender.py C:\Users\magosa\Desktop\ants-demo\test.csv
  • router.js

"router.js" receives sensor data in real time using web socket and routes to API server.

"router.js" uses port 8080 when using web socket.

Run "router.js"

node router.js
  • app.js

"app.js" is a web server for displaying the dashboard.

Receive the routed sensor data from "router.js" and visualize the flow of people in real time.

Run "app.js"

node app.js

After starting "app.js", accessing "localhost:8000" from the web browser will display the dashboard.

Note

I don't test environments under Linux and Mac.

Thank you!

ants-demo's People

Contributors

magosa avatar

Watchers

 avatar

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.