Start the server¶
The server renders your pages and sends them to the display as pictures. It runs in Docker on your always-on computer.
Get Glance Box¶
-
Open a terminal on the computer and run:
git clone https://github.com/robinlanger/glancebox.git cd glancebox cp config-example.yaml config.yaml mkdir pages-custom -
Open
config.yamlin an editor and adjust the pages underpages::- The
bahnpage shows departures for an example station. Changestation:to yours, or delete the block. - The
urlpage at the end points to an example address. Delete it or changeurl:to a page of your own. -
For a first test, a clock is the simplest page. Add it under
pages::- type: clock
You can change all of this later. More pages: the template catalog.
- The
Start it¶
-
Start the server:
docker compose up -d --buildThe first start takes a few minutes, because Docker builds the image with its own browser inside.
-
Open
http://<server-ip>:8080/in your browser, for examplehttp://192.168.1.50:8080/. You should see a preview of every page.Port 8080 already taken?
If something else (for example Pi-hole) uses port 8080, create a file
.envnext todocker-compose.ymlwithGLANCEBOX_PORT=8090and rundocker compose up -dagain. Use:8090from then on. -
Write down the server address, for example
http://192.168.1.50:8080. The display asks for it in step 4. Give the computer a fixed IP address in your router, so the address does not change.
If the server does not start, docker compose logs --tail 50 shows why. All options: Configuration.