Using QR Codes and variables in a Response

Jens Bothe08. Jun 2011 | AdministrationBest PracticesConsulting

Recently a customer had a very interesting issue which he needed to be solved. For external visitors they provide a free WIFI protected by an WPA key. They created some scripts to generate the key and distribute it to the access points.

Internal customers can order access for their guests at the IT guys. As OTRS now is used for tracking all kind of requests they decided to send out the confirmation mail including the key via OTRS. As a “geek goody” they also wanted to create a QR Code for the WIFI data, which looks like this:
QR Code

We created the following items to make this happen:
– a shell script for generation of an OTRS config file which gets the key as parameter
– a default response using the variable stored in the config file. This variable is called notification tag in OTRS.

The shell script:

#!/bin/sh
Key="$1";
echo "\$Self->{'WEPKey'} = '$Key';" > /otrs/Kernel/Config/Files/WIFI.pm;
echo "1;" >> /otrs/Kernel/Config/Files/WIFI.pm;

The notification tag for this in OTRS is: <OTRS_CONFIG_WEPKey>

 

The content of the response (you need to type in the data as HTML Source!)

Writing the answer to the customer will look like this:

 

Some more informations:

 

 

Your email address will not be published. Required fields are marked *