How-Tos – SiteKiosk™ https://www.sitekiosk.com/fr/ Solution Kiosk et Digital Signage Wed, 05 Jun 2024 08:26:24 +0000 fr-FR hourly 1 https://wordpress.org/?v=6.5.4 Activate webpage debugging on a SiteKiosk Online client https://www.sitekiosk.com/fr/how-tos/webpage-debugging-sitekiosk-client/ Wed, 05 Jun 2024 08:24:18 +0000 https://longinusbeta4.provisio.biz:4000/how-tos/webpage-debugging-sitekiosk-client/ 1. Aim of Webpage Debugging

Activating webpage debugging on a SiteKiosk Online client enables you to identify problems and bugs within the webpages being used by running SiteKiosk Online clients.

2. Setup

The following example of activating webpage debugging only works with SiteKiosk Online on clients with Windows 10 or higher.

Before beginning, make sure SiteKiosk Online is activated on your client. Also, ensure that you are logged into your SiteKiosk Online account and have opened the desired project to activate webpage debugging.

3. Elementary Adjustments

For the given example, the template browser is utilized, and start URL is already incorporated into the webpage element.

To begin, two entries need to be added in the advanced settings:

The first entry enables the display of the DebugWindow within the web element on the client:

1. Click on the Settings-button, then select Advanced, and click on the green Add setting-button.
2. Enter debug.showDebugWindow under Path and enable the checkbox next to Value.
3. Finally, click on Save. The Window will close, and the advanced setting will be listed in the overview.

The second entry enables the Advanced Options in the debugged window:

1. Click again on the green Add setting-button
2. enter debug.showAdvancedOptionsInDebugWindow into the text field.
3. Enable the checkbox under Value again
4. Finally, press Save

Both settings are now listedin the overview.

Press Save in the bottom right corner to save and close the advanced settings.

Now, proceed to publish your SiteKiosk Online Project on the client.

3. Effects on SiteKiosk Online Clients

For the next steps, the DevTools in the debugged window are necessary.

1. Open the DevTools tab in the debug window by pressing F12.
2. Click on the Embedded UI Browser-button to open the DevTools window.
3. In the Developer Tools, select the Console-tab to analyze possible failures in the webpage.

This overview displays errors and bugs present in the webpage used for the SiteKiosk Online project.

]]>
From a simple Touch Display to a modern HR Terminal https://www.sitekiosk.com/fr/how-tos/simple-touch-display-to-hr-terminal/ Tue, 20 Feb 2024 14:59:35 +0000 https://longinusbeta4.provisio.biz:4000/how-tos/from-simple-touch-display-to-hr-terminal-with-code-scanner-and-carrier-media/ 1. Introduction

The following instructions are illustrated using a fictitious example. We would be happy to support you in this process or create a customised solution for your needs. Just get in touch with us!

To begin with, set everything up so that SiteKiosk Online is installed and activated on your touch display. You must also be logged into your SiteKiosk Online account in an external browser and have activated Expert mode. In the SiteKiosk Online application, go to the project editor in the browser and open the desired project for your HR terminal.

With SiteKiosk Online, it is possible to use scanners and personalised chips for faster login. The corresponding scripts can be integrated with little effort.

Windows 10 was used for this example, if you intend to use an Android device, please contact us for instructions.

In order to integrate external devices, it is necessary to activate the Expert mode of SiteKiosk Online

You can access Expert mode by adding « &expert » to the end of the URL in the browser. Confirm the entry with the ENTER key.

Expert Mode
Fig.1 – Expert Mode

Further information on Expert Mode can be found on the linked page:

https://sitekiosk.online/help/en/Expertmode.html

You now have the option of using expert mode and inserting scripts under « Settings ».

2. Add external devices via the UI

The following steps must be carried out on the client!

Start SiteKiosk Online on your terminal. In the start window, click on « Settings » in the « Configure local client machine » area.

Configure local client machine
Fig.2 – Configure local client machine

Next, click on the « Settings » button in the « Input devices » area.

Settings
Fig.3 – Settings

Now click on « + Add » and type the word « scanner » into the text line in the « Name » category.

Input Settings
Fig.4 – Input Settings

Finally, click on the green « Add » button.

Add Input Device
Fig.5 – Add Input Device

Your external scanner is now connected to SiteKiosk Online and is recognised by the software.

Once the device has been set up using the UI, the script can now be entered.

3. Add scripts

For the following steps, switch to the browser and to the SiteKiosk Online application.

3.1 Script components

Firstly, the components of the script are explained here.

For a better understanding, please also refer to our API documentation, which you can find here:

https://sitekiosk.online/projects/external/apidocs/generated/index.html

To address elements (e.g. a text element) later via the script, you must wait for the event that all elements are available.

The logic part is then executed within the callback function of this event listener:

siteKiosk.content.onContentInserted(async () => {
// Hardware access is not available in preview mode
if (!siteKiosk.env.isPreview) {
// Get the scanner device
const scanner = siteKiosk.devices.getByName("scanner");
if (!scanner) {
console.error("Scanner device not found!");
return;
}
scanner.onData((e) => handleEmulatedKeyboardData(e));
} else {
console.info("Note: No keyboard data accessable, preview only");
}
});

The scanner can now be addressed by name and registers a « Data » event listener.

As soon as data is received from the scanner, it is forwarded to the « handleEmulatedKeyboardData » function:

async function handleEmulatedKeyboardData(e) {
const data = e.data;
if (data && data.text) {
const userData = await offlineDummyFetch(data.text);
const isSuccess = applyUserData(userData.json());
if (isSuccess) {
console.info("User data applied");
siteKiosk.content.navigation.navigateToElementByTag("restrictedArea");
} else {
console.error("User data could not be applied");
}
}
}

In this case, the « offlineDummyFetch » function simulates a server request that returns the individual data for a user who can be found using the scanned ID.

The elements are then filled with the content using the « applyUserData » function in the project:

function applyUserData(userData) {
if (!userData || !userData.data) {
console.error("No user data found!");
return false;
}
const headlineElement = siteKiosk.content.getElementByTag("headline");
const pdfButton = siteKiosk.content.getElementByTag("pdfButton");
headlineElement.replacePropertyPlaceholders("text", { name: userData.data.name });
pdfButton.setPropertyValue("additionalLink.src", {
fileName: `${userData.data.pdf}`,
});
return true;
}

For this example, a placeholder ({$name}) is set in a text element and the URL to a PDF file for a popup.

3.2 Set tags

Elements must be tagged so that they can be addressed via the script:

Set tag
Fig.6 – Set tag

In this example, use « headline » as the tag for the text element « pdfButton ». This also refers to the button that opens the popup.

The tag « restrictedArea » refers to the page to be navigated to after successful login.

3.3 Add scripts

The entire script can now be inserted into the project.

Open the « Settings » → « Expert » → « Scripts » → « Add » and insert the script into the text field and click on « Save ».

Add new scripts
Fig.7 – Add new scripts

Now switch back to editor mode and publish the project.

4. Publication

If you now scan an NFC tag or QR code (depending on the connected scanner), the application switches to the « Restricted Area » page, which has been pre-filled with the user data. The user is given access to the stored document.

For more information on connecting hardware to SiteKiosk Online, please contact us by email at support-europe@sitekiosk.com.

]]>