Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gausby/wifi
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.
https://github.com/gausby/wifi
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/gausby/wifi
- Owner: gausby
- License: mit
- Created: 2015-05-16T13:29:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T14:39:57.000Z (over 9 years ago)
- Last Synced: 2024-10-12T06:28:35.100Z (2 months ago)
- Language: Elixir
- Size: 140 KB
- Stars: 34
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Various utility functions for working with the local Wifi network in Elixir. (Networking)
- fucking-awesome-elixir - wifi - Various utility functions for working with the local Wifi network in Elixir. (Networking)
- awesome-elixir - wifi - Various utility functions for working with the local Wifi network in Elixir. (Networking)
README
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](https://github.com/wearefractal/wifi-location) by [Fractal](https://github.com/wearefractal) and [node-wifiscanner](https://github.com/mauricesvay/node-wifiscanner) by [Maurice Svay](https://github.com/mauricesvay).
**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* `Wifi.scan/0` return a list of local Wifi base stations with information such as security modes and signal strength.
* `Wifi.location/0` will attempt to triangulate the psychical location of the computer running the script based on triangulation using the local Wifi surroundings and Googles location APIs.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](https://hex.pm/) as [Wifi](http://hex.pm/packages/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.