This script can be used to generate qr codes for the connection of linchpin mobile. Please find more information on our help pages.
You need a current version of Node and NPM.
Take a look into index.js and set the data to fill your needs:
The usernames you want to generate QR codes for:
let usernames = ['pwinter', 'tschroeder'];
The Confluence baseurl of your system:
let serverUrl = 'https://mobile-test.linchpin-intranet.com';
An adminaccount for your system:
let adminname = "adminuser";
let adminpassword = "adminpassword";
How long shall the qr codes be valid in hours? Default 24h
qrcodeValidFor = 24;
Set a timeout after each processed user in order not to stress the server too much. This value is in ms.
TIMEOUT_MS = 100;
npm install
npm run start
You will find the generated qrcode image files in the directory qrcodes
. The files are named username.png.