Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing missing content #1

Open
xeruf opened this issue May 22, 2022 · 3 comments
Open

Listing missing content #1

xeruf opened this issue May 22, 2022 · 3 comments

Comments

@xeruf
Copy link

xeruf commented May 22, 2022

❯ go-networkmanager-qrcode-generator -l
the following connections are known:
Got 37 connections

I thought it would output the connection names ^^

@xeruf
Copy link
Author

xeruf commented May 22, 2022

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
Copy link
Owner

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:

  • the number of connections i quote is just number of network connection that network manager shares over dbus. but that's not just wifi connections, it also counts ethernet or bridges. Which is why the 37 is probably a bit inflated with respect to how many wifi connections you actually have.
  • Even for wifi connections, I only generate QR codes for connections that I know how to encode / found in the documentation. I.e. I WPA Personal and WPA2 Personal should work, but WPA Enterprise or WPA2 Enterprise will fail.
  • On top of that I don't know if there can be permission issues (I expect on a multi user device where one user creates a connection but doesn't allow other users to use the connection,).

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
Copy link
Author

xeruf commented May 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants