qdbp / py9status

i3bar status line in python 3
3 stars 1 forks source link

Py9Wireless unit is failing #13

Open jeff-cai opened 1 year ago

jeff-cai commented 1 year ago

Unit shows as failing. (unit "PY9Wireless" failed)

I suspect it is because line 38 in py9wifi.py is old and no longer regex matches output in iw

38 info = sbp.check_output(["iw", "dev", self.wlan_if, "info"])

my output:

.:[19:23:09]:. ~ % iw dev wlp4s0 info
Interface wlp4s0 ifindex 3 wdev 0x1 addr e4:a7:a0:c6:ab:b5 type managed wiphy 0 channel 149 (5745 MHz), width: 80 MHz, center1: 5775 MHz txpower 22.00 dBm multicast TXQ: qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets 0 0 0 0 0 0 0 0 0

However when trying to make changes locally I still can't figure out the fix.

jeff-cai commented 1 year ago

adding output for station dump as well

.:[19:36:39]:. ~ % iw dev wlp4s0 station dump Station f4:17:b8:b6:43:68 (on wlp4s0) inactive time: 594 ms rx bytes: 84094144 rx packets: 53968 tx bytes: 7703491 tx packets: 27783 tx retries: 781 tx failed: 1 beacon loss: 0 beacon rx: 22001 rx drop misc: 29 signal: -44 [-44] dBm signal avg: -46 [-47] dBm beacon signal avg: -44 dBm tx bitrate: 780.0 MBit/s VHT-MCS 8 80MHz short GI VHT-NSS 2 tx duration: 0 us rx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2 rx duration: 0 us authorized: yes authenticated: yes associated: yes preamble: long WMM/WME: yes MFP: no TDLS peer: no DTIM period: 1 beacon interval:100 short slot time:yes connected time: 2273 seconds associated at [boottime]: 8.747s associated at: 1661814632629 ms current time: 1661816905570 ms