kootenpv / access_points

Scan your WiFi and get access point information and signal quality
190 stars 27 forks source link

invalid literal for int() with base 10: '-- R' #24

Open YJack0000 opened 1 year ago

YJack0000 commented 1 year ago

I get the following error while using whereami.

invalid literal for int() with base 10: '-- R' Line: 不要亂改網路名稱 -76 6,-1 Y -- RSN(PSK/AES/AES) Output: SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group) HuaB5 -92 40 Y -- RSN(PSK/AES/AES) 不要亂改網路名稱 -76 6,-1 Y -- RSN(PSK/AES/AES)

[{"ssid": "HuaB5", "bssid": "", "quality": 16, "security": "RSN(PSK/AES/AES) "}]

kootenpv commented 1 year ago

Hmmm, what OS is it?

YJack0000 commented 1 year ago

Is macOS 13.1

kootenpv commented 1 year ago

Could you verify that this is still the case:

>>> import platform
>>> platform.system()
"Darwin"

Also check that airport -s works...

And finally, did you try running sudo whereami?

kootenpv commented 1 year ago

Oh I see - the problem is that the chinese characters don't work with indexing

kootenpv commented 1 year ago

image

kootenpv commented 1 year ago

Do you know how we can change it so that chinese characters line up with the ending of SSID?

YJack0000 commented 1 year ago

Ok~ I think I can fix this but I'm not very familiar with python. So it might take some time to fix this.

YJack0000 commented 1 year ago

25