Home

Awesome

Wifi for Elixir

Various utility functions for working with the local Wifi network in Elixir. These functions are mostly useful in scripts that could benefit from knowing the current location of the computer or the Wifi surroundings.

This project is inspired by wifi-location by Fractal and node-wifiscanner by Maurice Svay.

Please help: The scanner works by parsing the output of Wifi diagnostic commands on the host system. Please make a scanner-wrapper that implements Wifi.Scanner.*name*.utility/0, Wifi.Scanner.*name*.scan/0 and Wifi.Scanner.*name*.parse/1 If you are running an unsupported operating system. Refer to the Wifi.Scanner.Airport implementation. Thanks.

Features

Currently the project implements the following

Pull requests or feature requests are more than welcome if you have suggestions and ideas on how to work with Wifi. Current only Mac OS X, Linux, and Windows are supported. All implementations are in an "Alpha" state, so pull request away.

Installation

The project is available on hex.pm as Wifi. Add it to your mix dependencies using the decided version, ie: {:wifi, "~> 0.2.0"}, and be sure to add :wifi to the applications list, as we need to start the Hackney application for the Wifi.location/0 function to work.

License

The MIT License (MIT)

Copyright (c) 2015 Martin Gausby and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.