Trigger actions when someone goes in/out the office
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.provision
assets
lib
migrations
models
routes
views
.env.sample
.gitignore
README.md
app.js
bower.json
fabfile.py
knexfile.js.sample
package.json
server.js

README.md

wholine

Detecting who’s online in your agency…

tl;dr … by scanning MAC address continuously, checking if the device is connected to the Internet or not.

The main goal is to add tools like Pomodoro or sending a Trello summary each day for example. Things that can be triggered when a collaborator goes in/out the office.

Getting Started

The quick way: install Fabric and then run fab provision for the first install, or fab deploy for releases.

Tools

nmap, Node.js and sqlite (currently the only supported db) need to be installed on your hosting machine.

Install dependencies with:

$ npm install

Configuration

You’ll need to customize .env to fit with your own MongoDB URI and your own CIDR.

Make sure to have a knexfile.js as well.

cp .env{.sample,} && cp knexfile.js{.sample,}

Run it!

Let’s everything rocks (sudo mode is necessary to make the nmap work):

$ sudo nodemon server.js

Then go to http://localhost:3000/hello to register, and that’s it!

Credits

Most of the bootstrap code (e.g. scanner) comes from @mcmillan.

The super wow awesome name comes from @flexbox.