Display the signal strength RSSI of a specific SSID (mac)

There is no iwconfig on mac, so create it. :::cd ../../usr/local/bin :::sudo nano iwconfig

iwconfig


#!/bin/sh

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s

:::sudo chmod a+x iwconfig

It should be done. Hit iwconfig to check.

test.py


import subprocess as spc
rest=spc.check_output("iwconfig")
list=rest.split()
ss=list.index("The SSID you want to find")
ss=ss+2
RSSI=abs(int(list[ss]))
print(RSSI)

It seems that the closer to 0, the stronger the signal strength.

Just run the command on python and format the output (forced)

Recommended Posts

Display the signal strength RSSI of a specific SSID (mac)
Display the signal strength RSSI of a specific SSID (raspberry pi (linux))
Measure the relevance strength of a crosstab
Python code to determine the monthly signal of a relative strength investment
Avoiding the pitfalls of using a Mac (for Linux users?)
Get the number of specific elements in a python list
Mac Linux Check the capacity directly under a specific directory
pandas Fetch the name of a column that contains a specific character
The story of writing a program
The story of having a hard time introducing OpenCV with M1 MAC
Obtain the direct product of sequences of indefinite length within a specific sequence.
I tried to display the altitude value of DTM in a graph
How to play a video while watching the number of frames (Mac)
Display a list of alphabets in Python 3
A quick overview of the Linux kernel
Display the graph of tensorBoard on jupyter
[python] [meta] Is the type of python a type?
A memo explaining the axis specification of axis
Get the filename of a directory (glob)
The story of blackjack A processing (python)
Notice the completion of a time-consuming command