Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-mapper/joinopenwifi
automatically join open and internet connect wireless networks on linux
https://github.com/max-mapper/joinopenwifi
Last synced: 26 days ago
JSON representation
automatically join open and internet connect wireless networks on linux
- Host: GitHub
- URL: https://github.com/max-mapper/joinopenwifi
- Owner: max-mapper
- Created: 2012-12-22T20:26:23.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-03T06:27:40.000Z (almost 12 years ago)
- Last Synced: 2024-10-09T21:04:51.876Z (about 1 month ago)
- Language: JavaScript
- Size: 119 KB
- Stars: 50
- Watchers: 7
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# joinopenwifi
automatically join open and internet connected wireless networks on linux
## how it works
it uses `iwconfig` and `iwlist` to scan for nearby networks. then one at a time (in order of signal strength) it tries to connect to one and then checks to see if it can resolve the dns for `google.com`. if it can't then it moves on to the next network until it find one that is open and online.
## installation
`sudo npm install joinopenwifi -g`
(the `sudo` is necessary because changing wireless networks on linux requires superuser permissions)
this is tested on a raspberry pi. you will need to put node.js on it.
here are some notes on how https://gist.github.com/4322201to run this script you should use a process monitor like mon/mongroup
so that it runs forever and ever and automatically on startup. see the notes
above for some examples of a mongroup scriptI use this script with mongroup on a 1 minute delay so when it exits
mongroup restarts it, it waits 1 minute, then repeats. you could achieve
a similar result with cron but would have to figure out a way to make
sure multiple instances dont spawn (like a process lock file)## usage
`sudo joinopenwifi `
optional arguments default to: `wlan0 0 true`
there is also a programmatic API. you can just require('joinopenwifi') and read index.js
the delay is so you can run this on startup and give linux a
chance to connect to a known network## license
BSD