News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by fouc on Sunday July 11, 2021 @11:45PM (#27806775)
It's literally a webpage with some javascript, so if you save it along with the asset files, you can just open the page in browser from your filesystem, no need to specially host it or start anything.

But yes, I agree running a command like qrencode from terminal is easier in the long run.

Re:Show HN: Print a WiFi Login Card by ipaddr on Monday July 12, 2021 @12:28AM (#27807051)
Saving a webpage and expecting your browser to render this the same way in a few years is only possible if you are saving the browser version with it.

The command line tool will have a longer life

Re:Show HN: Print a WiFi Login Card by SilverRed on Monday July 12, 2021 @01:50AM (#27807454)
You could just use google to find the same thing in a few years. The project is so simple I could replicate it and have it hosted in a few hours.
Re:Show HN: Print a WiFi Login Card by dolmen on Monday July 12, 2021 @04:31AM (#27808244)
"so simple" ... "in a few hours"

The project is so simple that it would be easier to rewrite it from scratch in that time frame. But the qrencode CLI allows to just avoid that.

Re:Show HN: Print a WiFi Login Card by tomc1985 on Monday July 12, 2021 @01:16AM (#27807272)
Does that work for node.js apps?
Re:Show HN: Print a WiFi Login Card by fouc on Monday July 12, 2021 @02:27AM (#27807660)
Yes, but it depends if the node.js app has the option of generating a fully static site. But it will also need to generate relative links for the browser to be able to directlyy load the site