Live data from Hacker News

Show HN: Print a WiFi Login Card

wificard.io

231–240 of 347 posts

Re: Show HN: Print a WiFi Login Card

#231

Earlier quoted context omitted.

It's also not like you'd have to have a separate server/vserver for every such project, a very affordable vserver will run quite a lot of nginx containers. Plus I guess some people will have a vserver or something like that anyway (I have a small one to get around NAT at the ISP level), in which case it might be net-zero.

>get around NAT at the ISP level genuinely interested in the benefits of this. care to share?

My ISP puts everyone behind some sort of NAT, which means I can't reach my home network from elsewhere since I can't open ports. They'd let me buy my own IP address for a monthly fee, but I've found that an old Pi I already had, an autossh-ed reverse shell, SSH forwarding and a cheap cloud instance work just fine for checking sensors and the like, cost less and the cloud instance has other uses, too.

Re: Show HN: Print a WiFi Login Card

#233

Earlier quoted context omitted.

The command-line app is effectively eternal as long as it's mirrored and the runtime interface doesn't change. Can we count on this link to still be there when we need it? Do you know how long most "Show HN" links still work after a year or two?

You can just fork/clone/whatever it, it's right there.

Ok, great. If it goes down now one has to host it or remember to start it via the command-line. So we're back to square one...

Re: Show HN: Print a WiFi Login Card

#234
post #34

qrencode -t utf8 'WIFI:T:WPA;S:network;P:password;;'

If you want some interactivity (bash):

    read -rp "SSID: " ssid
    read -rsp "Password: " pass
    echo -e "\n"
    qrencode -t utf8 "WIFI:T:WPA;S:$ssid;P:$pass;;"
    echo "SSID: $ssid"
Even better, generate a PDF with emojis and all!

    #!/usr/bin/env bash
    out="${1:-wifi-card.pdf}"
    read -rp "SSID: " ssid
    read -rsp "Password: " pass
    echo -e "\nGenerating PDF..."
    {
    cat 
    
    
    SSID: $ssid
Password: $pass

Point your phone's camera at the QR Code to connect automatically.

EOF } | pandoc --pdf-engine=xelatex -f html -t pdf -o "$out" echo "$out"
I used those GitHub URLs for the emojis because pandoc was being weird about the unicode versions.

Re: Show HN: Print a WiFi Login Card

#235
post #209

Earlier quoted context omitted.

I can't speak for the poster, but sometimes the fun is in using tools you know. I don't know VanillaJS that well, so I took a stab at the same concept: https://q726kbxun.github.io/qrcodes/ Not nearly as pretty, since I know even less about making pages pretty, but still, a fun little stab at making such a site.

Would be nice if the code was in an image I could save.

What browsers don't let you save a canvas as an image?

Re: Show HN: Print a WiFi Login Card

#237

Earlier quoted context omitted.

The same reason I take a massive V8 engine attached to a massive truck bed one mile over to my friend’s place to watch England lose at the Euros. Turns out that sometimes, even when tool X isn’t the best at the job, it’s way better for me to use what’s at hand. This is what a lot of people have trouble understanding: sometimes the best tool for the job is the tool you’re best in. Evidence? No one has made this static…

No, that’s not the best tool for the job, that’s just the most convenient tool for the job.

This is the part engineers don’t get. Speed is an engineering feature. The most convenient is the best if it’s faster.

Re: Show HN: Print a WiFi Login Card

#239
post #182

Earlier quoted context omitted.

> All the extra baggage is just part of the development environment. If you want to skip my tools, they're quite easy to bypass and replace for any other transpiler... or you can just ignore my sources, reindent my compiled files and work on them directly. This might be technically true, but is not true in any meaningful sense if another developer ever has to work with your code. They will have to deal with all your…

If "you have to make it easy for third parties to fork your website" were a requirement in a particular project, I would still use the exact same stack but output non-minified pretty-printed code to some subdirectory that will get commited to the repository... so they don't even have to run "npm install && npm build" if they don't want to or don't know what npm is (although the README in my template provides these in…

> "you have to make it easy for third parties to fork your website"

That's not the requirement I'm talking about. It's "multiple developers you don't know, of varying experience levels, will work on this project over the course of years".

They're going to clone the repository and have to make changes. Ignoring your stack is not an option. They have to figure it out, or throw it away and rebuild something else.

They'll be the ones paying the time cost of all the advantages you get by doing something complex but easy for you.

You may say this doesn't apply in your situation, and maybe right now it doesn't, but it almost always happens in any successful project eventually.

Re: Show HN: Print a WiFi Login Card

#240
post #153

My iPhone has a pre-defined "Make QR Code" "Starter Shortcut" that you can invoke by typing "Make QR Code" in Home screen search. It basically generates a QR code of the same WIFI:S:$SSID;P:$PASSWORD;; format as wificard.io. https://en.wikipedia.org/wiki/QR_code#Joining_a_Wi%E2%80%91F...

My Honor Nova5t running Android 10 also did this, when I clicked on connected wifi's name.
Post reply on HN