Skip to content

anthill/wifi-radar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wifi radar

Detect the smart phones or computers around you. No need for the device to be connected, we just detect the packets emitted for network detection.

Install

The prerequisit is to have

  • iw

  • tcpdump

  • A wifi interface with monitoring capability.

npm install 6sense

Quick start

var dongle = require('6sense').wifi(); 

// start recording and gather results every 60 seconds
dongle.record(60);

dongle.on('processed', function(result){
	console.log(JSON.stringify(result));
});

dongle.on('trajectories', function(result){
	console.log(JSON.stringify(result));
});

Here are the main functions:

dongle.wakeUp()  // from 'sleeping' to 'monitoring'
dongle.sleep();  // from 'monitoring' or 'recording' back to 'sleeping'
dongle.record(300); // from 'sleeping' or 'monitoring' to 'recording'
dongle.pause();  // from 'recording' to 'monitoring'
dongle.changeAllDayConfig({
	max_last_seen: 5 * 60 * 1000, // ms
	signal_precision: 5, // dB
	date_precision: 30 * 1000 // ms
}); // Change the config for the all-day measurement map

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published