Skip to content

automatic-controls/demo-graphic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Graphic

WebCTRL is a trademark of Automated Logic Corporation. Any other trademarks mentioned herein are the property of their respective owners.

Overview

This project is a lightweight alternative to the autopilot add-on released by ALC. Instead of requiring installation of a separate add-on, all you need to do is add an HTML control to a regular WebCTRL graphic. It is recommended that this HTML control be used as a button, "Enter Demo Mode", on an existing graphic. When clicked, the system will begin automatically cycling through a predefined list of graphics.

If the intention is to have a monitor permanently cycling through demo mode, then I've provided a script (login.bat with login.html) to run on Windows OS that will allow a computer to automatically login to WebCTRL and enter demo mode when it starts up or reboots.

Configuration: Automatic Demo Mode

  1. Create an operator on your WebCTRL server with username kiosk. You'll need to edit login.html to set the operator's password (default Hvac1234!) and your WebCTRL server's URL (default https://www.webctrl.com/?language=en). You can use a different username, but you'll have to update autopilot.html and login.html.
  2. Set the operator's login start location to the graphic which will contain the HTML content button. The username kiosk is hardcoded into the HTML content button so that whenever that operator first navigates to that graphic, demo mode is started automatically. Setting the operator's start location ensures that demo mode is started immediately upon login.
  3. Ensure the operator has appropriate permissions for all the locations demo mode is meant to cycle through.
  4. Ensure "Do not use automatic logoff for this operator" is checked so that demo mode can continue indefinitely.
  5. Copy login.bat and login.html to an empty folder on a computer that you wish to use for a permanently cycling demo monitor.
  6. Ensure Google Chrome is installed on the computer. You may have to edit login.bat if Chrome installs to a non-standard location.
  7. Configure a user for automatic login to the computer: https://learn.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon
  8. Create a shortcut to login.bat, and copy the shortcut to %AppData%\Microsoft\Windows\Start Menu\Programs\Startup of the automatic login user. Alternatively, you can use a scheduled task to run the batch file at login.
  9. Test functionality by restarting the computer. After restarting, the Windows user should automatically login, and a full-screen chrome window will open up logged onto your WebCTRL server in demo mode.

Configuration: Graphic

  1. Add a new HTML content control to an existing Viewbuilder graphic.
  2. Size the HTML content control like a button.
  3. Copy the contents of autopilot.html into the HTML content control.
  4. You are free to edit the button text or other configuration variables specified in autopilot.html. You will need to use manual commands autopilot location or whereami to get the details required for specifying which locations demo mode should cycle through.

About

Configure unattended cycling through specified WebCTRL graphics. Similar to the autopilot add-on.

Topics

Resources

Stars

Watchers

Forks