Skip to content

Dragod/wifi-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits

I have used this great article to get inspiration for the client side validation: javascripttutorial.net

Wifi QR code

Generate a wifi qr code png image base64.

The qr code is optimized for printing, also there is an option to download the png image if you need.

This Web app is running nodejs with Express, NO database required.

alt text

After scanning the QR code on your mobile device, just press "Connect".

alt text

Print the QR code so you can share with family and guests.

alt text

Run the nodejs/express 4 server

npm run app:install

npm run start:dev

Run stylus and watch

npm run style:watch

API Endpoint

http://localhost:8000/qr

Endpoint response example

{"status":"success","wifi":{"qr":{"ssid":"myHomeWifi","password":"pass1234","encryptionType":"WPA"},"png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAYAAAB1PADUAAAAAklEQVR4AewaftIAAATMSURBVO3BQY4jRxAEwfAC//9l1x7zVECjk6PRKszwj1QtOaladFK16KRq0UnVopOqRSdVi06qFp1ULTqpWnRSteikatFJ1aKTqkUnVYtOqhZ98hKQn6TmDSA3aiYgk5o3gExqboD8JDVvnFQtOqladFK16JNlajYBeQLIpGZSswnIjZpJzQRkUnOjZhOQTSdVi06qFp1ULfrky4A8oeYJIDdAJjWb1DwBZBOQJ9R800nVopOqRSdViz75y6mZgNyouQHyhpoJyN/kpGrRSdWik6pFn/zPqJmA3KiZgNyoeULN3+SkatFJ1aKTqkWffJma30zNBGRSc6NmAnKjZpOa3+SkatFJ1aKTqkWfLAPyb1IzAZnUTEAmNROQSc0EZFIzAbkBMqm5AfKbnVQtOqladFK16JOX1PxmaiYgk5oJyCY1E5An1PyXnFQtOqladFK16JOXgExqJiCb1ExqJiCTmjfUTECeADKpeQLIJjXfdFK16KRq0UnVIvwjLwCZ1ExAJjUTkEnNDZBJzf8JkCfU3ACZ1LxxUrXopGrRSdWiT5YBuQEyqZmAPAFkUjMBuVFzA2STmgnIpOZGzRNAJjXfdFK16KRq0UnVok+Wq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