/offix

"Who is in the office?"

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

OffiX

"Who is in the office?"

Hardware Setup

  • Raspberry Pi
    • Ralink RT5370
      • Works out of the box with Raspbian Jessie, supports monitor mode

Software Setup

There are three main components in OffiX: a WiFi sniffer, a web interface, and the Hubot plugin. Information about each component is in its own directory.

System Setup

To configure a static IP address, edit /etc/network/interfaces and add the following:

auto eth0
iface eth0 inet static
	address x.x.x.x
	netmask x.x.x.x
	gateway x.x.x.x

To put the wifi card in monitor mode, run the following:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo ifconfig wlan0 up

Note: This needs to be run on every reboot!

To install node/npm on the Raspberry Pi, run:

wget http://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz
cd /usr/local
sudo tar xzvf ~/node-v4.2.4-linux-armv6l.tar.gz --strip=1

To install RabbitMQ on the Raspberry Pi, run:

sudo apt-get update
sudo apt-get install rabbitmq-server

To install MongoDB on the Raspberry Pi, run:

sudo apt-get update
sudo apt-get install mongodb

Architecture

The WiFi sniffer and web interface are meant to run on the Raspberry Pi. The two communicate via a RabbitMQ instance running on the Raspberry Pi.

Development Tips

License

Copyright (c) 2016 by the authors (see AUTHORS.txt). Released under GPLv3. See LICENSE.txt for details.