How-To Guide
Show a Live Spreadsheet on VidiMax with serve.py
Turn an Excel or CSV file into a live web page with the serve.py script, and show it on your VidiMax displays. When someone edits the spreadsheet, the screens update by themselves.
01How It Works
serve.py is a small Python script. It runs on a computer on your network, reads a spreadsheet, and shows it as a web page. The page re-reads the file every few seconds, so changes to the spreadsheet appear on screen by themselves.
To show it on a VidiMax display, you put that web page in a slate.
- Install Python on the computer that will run the script.
- Set up serve.py (one time only).
- Run serve.py with your spreadsheet.
- Create a VidiMax slate that shows the page.
The computer running serve.py must be on the same network as the VidiMax displays, and the script must keep running. If the computer is turned off or the script is stopped, the displays can’t show the spreadsheet.
02Step 1: Install Python
serve.py needs Python 3.8 or later. To check whether it’s already installed, open Command Prompt (Windows) or Terminal (Mac/Linux) and enter:
If it shows a version such as Python 3.14.5, go to Step 2. On Mac and Linux, use python3 instead of python in all commands.
If not, install it:
- Go to python.org/downloads and download the latest version for your computer.
- Run the installer. On Windows, check Add Python to PATH before clicking Install.
- Close and reopen Command Prompt or Terminal, then check the version again.
03Step 2: Set Up serve.py
Do this once. It creates a virtual environment: a private folder for the Python add-on (openpyxl) that serve.py uses to read Excel files.
- Copy serve.py to a folder on the computer, for example
C:\serve. - In Command Prompt, go to that folder:
- Create the virtual environment:
- Turn it on. On Windows:
On Mac or Linux:
The prompt now starts with (venv).
- Install openpyxl:
04Step 3: Run serve.py
With the virtual environment turned on (the prompt starts with (venv)), run serve.py followed by the path to your spreadsheet:
The spreadsheet can be in any folder. If its path contains spaces, put it in quotes, for example "C:\Shared Files\sales.xlsx".
serve.py shows the addresses of the page:
Write down the Network address, including the port (:8080). You need it for the VidiMax slate.
- To check the page on the same computer, open
http://localhost:8080in a browser. - To check it from another computer on the network, open the Network address.
The first time you run serve.py, Windows may ask whether to allow Python through the firewall. Click Allow, or other devices, including the displays, can’t reach the page.
To stop serve.py, press Ctrl+C. To leave the virtual environment, enter deactivate.
Starting It Again Later
After a restart of the computer, open Command Prompt and run:
Supported Files
| File | Type | Notes |
|---|---|---|
.csv |
CSV | Works while the file is open in any editor |
.xlsx |
Excel | Works while the file is open in Excel |
.xlsm |
Excel with macros | Macros are ignored; only the data is shown |
.xls |
Old Excel (97–2003) | If it doesn’t load, open it in Excel and save it as .xlsx |
Options
| Option | Default | What it does |
|---|---|---|
--port <number> |
8080 | The port the page is served on. Change it if 8080 is already in use. |
--poll <ms> |
2000 (2 seconds) | How often, in milliseconds, the displays re-read the spreadsheet. Use 10000 or more with 100+ displays, to reduce the load on the computer. |
Examples:
| To | Run |
|---|---|
| Use port 9000 | python serve.py data.xlsx --port 9000 |
| Update every 10 seconds | python serve.py data.csv --poll 10000 |
| Both | python serve.py data.xlsx --port 9000 --poll 10000 |
05Step 4: Show It on VidiMax
- In VidiMax, open the Slates page and click Add Template.
- Enter a Template Name, for example Sales Report.
- Set Slate Type to Message and turn on HTML Editor Mode.
- Copy the code below into the HTML code editor. Replace IP_ADDR:PORT with the Network address from Step 3, for example
192.168.1.50:8080. - Click the Save icon at the top right.
Paste only this line. VidiMax adds the rest of the page for you.
To test it, click the red Send icon next to the slate and send it to a display. Then change something in the spreadsheet and save it: the display updates within a few seconds.
To show it on a display all the time or in a slideshow, add it to the display’s Slate Configuration; see Playing a YouTube Video While a Display Is Idle, Step 3, or the VidiMax User Manual.
06Ideas for Use
| Use | Example |
|---|---|
| Live dashboards | Production numbers, sales figures or schedules on a dedicated screen. |
| Office signage | Room bookings, shift rosters or stock levels on wall displays. Edit the spreadsheet and the screens follow. |
| Meeting rooms | A shared .xlsx on a network drive that anyone with Excel can update. |
| Several sites | Run serve.py on one central computer that all sites can reach; every display shows the same address. |
07Tips and Troubleshooting
- Give the computer a static IP address. Otherwise the address can change after a restart, and the slate stops working. Ask your IT department.
- The display is blank: check that serve.py is still running, and that you can open the Network address from another computer. If you can’t, allow Python through the Windows Firewall.
- “python” is not recognized: Python wasn’t added to PATH. Reinstall it with Add Python to PATH checked, or use
pyinstead ofpython. - PowerShell says running scripts is disabled when you activate the virtual environment: use Command Prompt instead, or first run
Set-ExecutionPolicy -Scope Process Bypassin that PowerShell window. - “No module named openpyxl”: turn on the virtual environment first (the prompt must start with
(venv)), then runpip install openpyxlagain. - Port already in use: run serve.py with another port, for example
--port 9000, and use that port in the slate.
Still stuck? Contact Linortek tech support or call 336-485-6199.
Still stuck? Our support team can help with setup and configuration.
