lab11/whereabouts — pull request #7 by amauragis (2014-11-03 19:49:43+00:00)
Title: Cleanup

@brghena

Fixed your dirty crap. I would double check that the fcntl.ioctl works, it seems to, but as I mentioned I didn't have a great way to test it.

I added -i flags to specify an interface and -l to do the location. I didn't look if this broke your other scripts, so you might want to.

I also moved some of your config stuff (get/post URIs, known device mapping) to a .gitignored config file. Not that the damage isn't already done by being committed whatever.

So, in conclusion: copy your old known devices, get/post addresses, whatever, into macScanner_config.py.example, rename it to macScanner_config.py, and make sure it doesn't break any of the other scripts (all you should need to do is change invocations from `sudo python macScanner.py ` to `sudo python macScanner.py -i wlan0 -l `.