1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00
TiddlyWiki5/plugins/tiddlywiki/qrcode/MakeWifiQR.tid
2018-06-23 10:18:39 +01:00

29 lines
1.1 KiB
Plaintext

title: $:/plugins/tiddlywiki/qrcode/MakeWifiQR
tags: $:/tags/MakeQR
caption: Wifi
\define wifi-url()
WIFI:T:WPA;S:SSID;P:password;;
\end
\define image(network,encryption,ssid,password)
<img src=<<makeqr text:"""WIFI:T:$encryption$;S:$ssid$;P:$password$;;""" size:"350">>/>
\end
! Enter the details of your wifi network
Encryption: <$select tiddler="$:/config/plugins/tiddlywiki/qrcode/wifi/encryption" default="none">
<option value="none">None</option>
<option value="WEP">WEP</option>
<option value="WPA">WPA</option>
<option value="WPA2">WPA2</option>
</$select>
SSID: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/wifi/ssid" tag="input" default=""/>
Password: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/wifi/password" tag="input" default=""/>
! Here is your QR code
<$macrocall $name="image" network={{$:/config/plugins/tiddlywiki/qrcode/wifi/network}} encryption={{$:/config/plugins/tiddlywiki/qrcode/wifi/encryption}} ssid={{$:/config/plugins/tiddlywiki/qrcode/wifi/ssid}} password={{$:/config/plugins/tiddlywiki/qrcode/wifi/password}}/>