Comments (7)
Ah yes, I see it there. Cool - looks pretty simple to parse so I'll add it to the next release.
from jc.
You got it! Still working on some other things but this should go out in the 1.9.0 release soon.
from jc.
Hey there - thanks for the request! What program should I install on my Mac to get airport? Is it a brew install?
from jc.
I think it's built in to OS X:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
I symlinked it into /usr/local/bin
If you don't have it there, I'll see what package I used to install it.
from jc.
Now supporting airport -I
and airport -s
:
airport -I
$ airport -I | jc --airport -p
{
"agrctlrssi": -66,
"agrextrssi": 0,
"agrctlnoise": -90,
"agrextnoise": 0,
"state": "running",
"op_mode": "station",
"lasttxrate": 195,
"maxrate": 867,
"lastassocstatus": 0,
"802_11_auth": "open",
"link_auth": "wpa2-psk",
"bssid": "3c:37:86:15:ad:f9",
"ssid": "SnazzleDazzle",
"mcs": 0,
"channel": "48,80"
}
airport -s
$ airport -s | jc --airport-s -p
[
{
"ssid": "DIRECT-4A-HP OfficeJet 3830",
"bssid": "00:67:eb:2a:a7:3b",
"rssi": -90,
"channel": "6",
"ht": true,
"cc": "--",
"security": [
"WPA2(PSK/AES/AES)"
]
},
{
"ssid": "Latitude38",
"bssid": "c0:ff:d5:d2:7a:f3",
"rssi": -85,
"channel": "11",
"ht": true,
"cc": "US",
"security": [
"WPA2(PSK/AES/AES)"
]
},
{
"ssid": "xfinitywifi",
"bssid": "6e:e3:0e:b8:45:99",
"rssi": -83,
"channel": "11",
"ht": true,
"cc": "US",
"security": [
"NONE"
]
},
...
]
from jc.
from jc.
You should be able to do a pip3 install --upgrade jc
to get the new airport parsers.
Happy parsing!
kb
from jc.
Related Issues (20)
- [BUG?] Bluetoothctl Not Parsing Correctly HOT 7
- Proposal for `proc/net/tcp` Parser HOT 2
- Proposal for ''ip route'' Parser HOT 6
- [Feature] Add support for parsing WiFi from NetworkManager HOT 8
- New parser for ```find``` HOT 2
- Proposal "lsb_release -a" parser HOT 5
- Support for AWS key[name]/value format HOT 2
- --bluetoothctl option missing on Kali Linux installation? HOT 2
- Proposal `ansible-playbook --list-tags` parser HOT 4
- pidstat bug with two output tables HOT 6
- New parser request: curl --head HOT 5
- x509 parser crashes for certificates with negative serial number HOT 2
- netstat parser crashes for programs on UDP containing space HOT 3
- bug in handling multiline vars in the "env" parser HOT 3
- jc does not retain letter case of keys when converting from .ini to .json HOT 12
- New parser request: S.M.A.R.T. like smartmontools v7. HOT 7
- Issue parsing destination-unreachable ping on Ubuntu 22.04 HOT 3
- xrandr parser screen association issue HOT 5
- No output from vmstat -w HOT 4
- x509_cert parser crashes for certs with superfluous bits in bit string fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jc.