Git Product home page Git Product logo

wifianalyticsiot's Introduction

WAN-Analytics-IoT

For instructions on the setup of the devices, please see README - Raspberry PI

Setup Geode

$ cd server
$ gfsh

gfsh>  start locator --name=locator1 --mcast-port=0 --bind-address=<ADDRESS>
gfsh> start server --name=server1 --mcast-port=0 --bind-address=<ADDRESS>
gfsh> create region --name=/Probe_requests --type=PARTITION
gfsh> create region --name=/Distances --type=REPLICATE
gfsh> create region --name=/DeviceLocations --type=REPLICATE
gfsh> create region --name=/RaspberryPIs --type=REPLICATE

Setup Spring XD

  • Start Spring XD server

$ xd-singlenode
(...)
  • Modify the file server/streams.xd to connect to the right XD server as creating the stream.

  • Create the stream:

$ xd-shell --cmdfile streams.xd
Jul 15, 2015 11:12:56 PM org.springframework.shell.core.AbstractShell handleExecutionResult
INFO: Successfully targeted http://172.20.14.47:9393
Jul 15, 2015 11:13:07 PM org.springframework.shell.core.AbstractShell handleExecutionResult
INFO: Created and deployed new stream 'input'

Start the GUI

  • Modify the file server/WebConsole/src/main/resources/client.xml to connect to the right Gem locator host

  • Startup the client:

$ cd server/WebConsole
$ ./gradlew run
  • Open the browser at __http://<server>:8080/

Start clients

For each Raspberry PI:

  • SSH to the Raspberry PIs

$ ssh pi@<PI_HOST>
PI $ cd WifiAnalyticsIoT/client/IoT-Analytics-Http
  • Modify the file client/IoT-Analytics-Http/src/main/resources/application.properties to connect to the right Spring XD server and to use the correct tshark command syntax.

  • Start the client:

$ cd WifiAnalyticsIoT/client/IoT-Analytics-Http
$ ./gradlew run

VM Configuation (Ubuntu based)

# requirements
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get -y update && sudo apt-get -y install oracle-java8-installer git wget python vagrant unzip npm virtualbox

# docker
wget -qO- https://get.docker.com/ | sh

# maven - zeppelin needs maven 3.1+
wget ftp://mirror.reverse.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
sudo mkdir -p /usr/local/apache-maven
sudo mv apache-maven-3.3.3-bin.tar.gz /usr/local/apache-maven
cd /usr/local/apache-maven
sudo tar -xzvf apache-maven-3.3.3-bin.tar.gz
export PATH=/usr/local/apache-maven/apache-maven-3.3.3/bin:$PATH

# geode
git clone https://github.com/apache/incubator-geode
cd incubator-geode && ./gradlew clean build -Dskip.tests=true

# zeppelin
git clone https://github.com/apache/incubator-zeppelin
cd incubator-zeppelin && mvn clean package -Pspark-1.3 -Dhadoop.version=2.2.0 -Phadoop-2.2 -DskipTests

# lattice
git clone https://github.com/cloudfoundry-incubator/lattice.git
cd lattice
git checkout v0.2.6
vagrant up --provider virtualbox

# project
git clone https://github.com/Pivotal-Open-Source-Hub/WifiAnalyticsIoT
cd WifiAnalyticsIoT/server/WebConsole && ./gradlew build
cd WifiAnalyticsIoT/client/IoT-Analytics-Http && ./gradlew build

wifianalyticsiot's People

Contributors

melofred avatar markito 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.