pseyfert / go-networkmanager-qrcode-generator

generate qr codes for wifi network connections from networkmanager connections
GNU Affero General Public License v3.0
3 stars 0 forks source link

Listing missing content #1

Open xeruf opened 2 years ago

xeruf commented 2 years ago
❯ go-networkmanager-qrcode-generator -l
the following connections are known:
Got 37 connections

I thought it would output the connection names ^^

xeruf commented 2 years ago

And the content is also empty:

❯ for i in {1..10}; do go-networkmanager-qrcode-generator -f plain -i $i; done
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;
Got 37 connections
QR code should contain:
WIFI:S:"";;

Using networkmanager with plasma-nm if that matters.

pseyfert commented 2 years ago

That's indeed a bit wrong. For me -l indeeds prints some lines with

<name of the connection in network manager>:    SSID <the ssid spelled out>

The number of printed lines is also for me smaller than the printed number (37 for you) for the following reasons:

Obviously I assume you are running on a device with wifi connections. Could it be none of them is WPA/WPA2 Personal or WEP?

Beyond these guesses I'm afraid there's not much debug output I added that would help us narrow down why your connections come out empty.

Have you tried with the tui?

go run github.com/pseyfert/go-networkmanager-qrcode-generator/tui

OR

I recently discovered https://github.com/kokoye2007/wifi-qr which aims to provide the same functionality. I'm curious if that works for you. Those potential issues i listed should be the same as for wifi-qr but if that works for you, you at least get your qr codes, and we have a hint that the issue is something my tool should be able to handle

xeruf commented 2 years ago

https://github.com/dlenski/wifi2qr worked fine, I usually use WPA2-PSK