DashOpener is a Python script to ensure that a browser has the correct page loaded, it's useful for displaying signage and dashboards.
- Latest version of Google Chrome (Download from https://ninite.com/chrome/)
- Latest Version of Python 3.x (Download from https://www.python.org/downloads/)
- Selenium 3.4.2 (Download from https://pypi.org/project/selenium/)
- Chrome Driver (Download from https://sites.google.com/a/chromium.org/chromedriver/downloads)
- Install Google Chrome (if not already installed)
- Install Python 3.x (for the purposes of DashOpener, please install as the current user!)
- Install Selenium (selenium-3.4.2-py2.py3-none.any.whl) using the following command:
%LOCALAPPDATA%\Programs\Python\Python36\scripts\pip.exe install selenium-3.4.2-py2.py3-none-any.whl
- Create a directory to house DashOpener, something like
mkdir %USERPROFILE%\DashOpener(This directory is optional, but you may wish to store your installation files here)
- Download dashboard.py to
- Create a short-cut (.lnk) with the following details:
%LOCALAPPDATA%\Programs\Python\Python36\python.exe %USERPROFILE%\DashOpener\dashboard.py site-a
Run: Normal Window
- Create a configuration file (see Configuration Format) under
For site-a we'll create
- Double-click the short-cut you created previously, and it should launch your website. Once launched:
- Move it to the desired screen
- Wait 3 seconds and close the Python/Command Line window that was opened alongside it
- Edit the configuration file so fullscreen is true
- Double-click the short-cut again and you should have a full-screen window, ready to use.
maximizeproperties are best set after you have launched the dashboard, and moved it to the desired screen
- Once launched, the file will be updated with coordinates for the dashboard's position on the screen (and when re-launched, it will be placed there)
autologinsection is optional, but if provided will attempt to automatically fill any form that contains both values (such as a login screen)
The configuration is a very simple JSON file, the below templates can be used when creating new files:
If your dashboard/signage doesn't need a login, a simple configuration such as the one below will do the trick.
Dashboards Requiring Login
For authentication, you can specific the HTML identifier (the value of the
id attribute) and value of any fields to locate and populate
If identifiers are not visible in the HTML, you can use the Chrome inspector to grab the CSS selector, and use that instead of the identifier!
If you do this, be sure that you remove any double-quotes " from the selector (so as not to save invalid JSON) and be aware that if the login page changes in the future, you may need to repeat this step!