A glanceable desk dashboard for a Raspberry Pi with a 3.5" touchscreen. Your teams' fixtures and results, live scores, weather, stocks and headlines on a tiny always-on screen. When you step away from your desk it becomes a pixel-art photo frame.
- Sports: upcoming games with countdowns, recent results with W/D/L, and live scores that jump to the front while a game is on (ESPN).
- Weather: current conditions and a 3-day forecast for as many cities as you like (Open-Meteo).
- Markets: prices, daily change and intraday sparklines, plus a scrolling ticker along the bottom (Yahoo Finance).
- News: one page per topic, mixing headlines from several RSS feeds.
- Away mode: when your computer has been idle, the screen turns into a photo frame that builds each photo out of falling pixel-art pieces, or a large clock.
- Touch: tap to go to the next page, hold to pause.
- Lightweight: draws straight to the framebuffer with no X server or browser. About 6% CPU and 90 MB RAM on a Pi 3B+.
- No API keys: every data source is free and keyless.
| News | Away: clock | Away: photo frame |
|---|---|---|
![]() |
![]() |
![]() |
| One page per topic, feeds take turns | Shown when no photos are set | Each photo builds from falling pieces, holds, then drains away |
Every screen is 320×480 and is rendered by the same code that drives the LCD (dashboard.py --preview).
The photo frame demo uses Caspar David Friedrich's Wanderer above the Sea of Fog (public domain).
- A Raspberry Pi (developed on a Pi 3B+; any model with the 40-pin header should work).
- A 3.5" 480×320 SPI touchscreen with an ILI9486 controller and XPT2046 touch. These are the common "3.5inch RPi LCD (A)" / goodtft / Waveshare-style boards that plug straight onto the GPIO header.
- Raspberry Pi OS Bookworm or newer (Python 3.11+). The Lite (no desktop) image is ideal.
Glance draws in portrait (320 wide, 480 tall).
All of these steps happen on the Pi, over ssh or with a keyboard attached.
Install the display's device-tree overlay and turn on SPI. Glance uses the kernel's fbtft driver
through the overlay alone. You don't need the vendor's LCD-show scripts, which rewrite config.txt
and install a desktop.
sudo curl -fsSL -o /boot/firmware/overlays/tft35a.dtbo \
https://github.com/goodtft/LCD-show/raw/master/usr/tft35a-overlay.dtb
printf '\n[all]\ndtparam=spi=on\ndtoverlay=tft35a:rotate=0\n' | sudo tee -a /boot/firmware/config.txt
sudo raspi-config nonint do_boot_behaviour B1 # boot to the console, not a desktop
sudo rebootrotate=0 and rotate=180 are the two portrait orientations, so pick whichever matches how your screen
is mounted. After the reboot, cat /sys/class/graphics/fb1/name should print fb_ili9486.
git clone https://github.com/vishnuGops/glance.git ~/glance
cd ~/glance
./install.shinstall.sh is safe to re-run. It:
- installs the Python packages and the Inter font with apt (only the ones that are missing)
- creates
config.tomlfromconfig.example.toml - adds you to the
videoandinputgroups - installs a
glancesystemd service that starts on boot
The screen comes alive within a few seconds.
nano ~/glance/config.toml
sudo systemctl restart glanceconfig.toml is git-ignored, so git pull never overwrites your settings.
Everything lives in config.toml. config.example.toml is fully commented; here is the overview:
| Section | What it controls |
|---|---|
[display] |
Seconds per page, ticker speed, font (inter or iosevka), and the framebuffer and touch device names if yours differ |
[[weather]] |
One block per city: name, lat, lon, IANA tz, unit (fahrenheit/celsius). The first city is shown in the header |
[markets] |
symbols: any Yahoo Finance symbols, e.g. "AAPL", "^GSPC", "BTC-USD" |
[[teams]] |
One block per team: name, ESPN sport, league and team id |
[[news]] |
One page per block: a title and a list of RSS feeds |
[presence] |
Optional away detection through a heartbeat file (see below) |
[away] |
photos or clock, plus photo frame timing, pixel size and number of grey shades |
[ipl] |
Optional cricket row from ESPN's cricket scoreboard |
Teams use ESPN's ids. Basketball and soccer are tested. For soccer, use league = "all" so cup and
European games show up too.
[[teams]]
name = "Celtics" # label on the dashboard
sport = "basketball"
league = "nba"
id = "2"
comp = "NBA" # optional label when ESPN doesn't name the competitionTo find an id, list a league's teams (basketball/nba, soccer/eng.1 for the Premier League,
soccer/esp.1 for LaLiga, soccer/usa.1 for MLS, ...):
python3 -c "import json,sys,urllib.request as u; d=json.load(u.urlopen('https://site.api.espn.com/apis/site/v2/sports/'+sys.argv[1]+'/teams')); [print(t['team']['id'], t['team']['displayName']) for t in d['sports'][0]['leagues'][0]['teams']]" soccer/eng.1Put .jpg, .png or .webp files in photos/ and set mode = "photos" under [away]. Each one is
cropped to portrait, converted to greyscale pixel art and shown in shuffled order. The photos/
folder is git-ignored, so your pictures never end up in the repo.
With a [presence] section, Glance watches a heartbeat file on the Pi (default /tmp/desk-heartbeat).
While something keeps touching it, you are "at your desk" and the dashboard runs. Once the file is
older than stale_seconds, or missing, Glance switches to the away screen. Tapping the screen brings
the dashboard back for tap_wake_minutes.
Anything that can ssh into the Pi can send the heartbeat. Everything fails safe: if your computer sleeps, shuts down or loses the network, the heartbeat stops and the Pi goes to the away screen.
Windows: heartbeat/ contains a scheduled task that touches the file every minute while you're
unlocked and active (any input in the last 15 minutes). It needs key-based ssh to the Pi; no admin
rights are required.
.\heartbeat\install.ps1 -PiHost pi@raspberrypi.local # add -PiIp 192.168.1.50 if .local is flakymacOS / Linux: a cron job is enough. Here is a simple version that doesn't check for idle:
* * * * * ssh -o BatchMode=yes pi@raspberrypi.local touch /tmp/desk-heartbeatWithout a [presence] section, Glance always shows the dashboard.
If you'd rather edit on your laptop and push to the Pi, set up key-based ssh to the Pi, then:
cp config.example.toml config.toml # your settings
cp deploy.env.example deploy.env # PI_HOST=pi@raspberrypi.local, optional PI_IP
./deploy.sh # copy code, config and photos, then run install.sh on the Pi
./deploy.sh --preview # render every page on the Pi with live data into ./previewOn Windows, run these from Git Bash. deploy.sh replaces the Pi's photos/ folder with yours, so a
photo you delete locally is removed from the Pi too.
| Gesture | Action |
|---|---|
| Tap | Next page (or wake from the away screen) |
| Hold for about 1 s | Pause on the current page; hold again to resume |
| Symptom | Fix |
|---|---|
LCD is 480x320, expected 320x480 |
The panel is in landscape. Use rotate=0 or rotate=180 on the dtoverlay=tft35a line and reboot |
no framebuffer named fb_ili9486 |
The overlay isn't loaded. Check dtparam=spi=on and the dtoverlay line in /boot/firmware/config.txt, or set framebuffer under [display] to the name in /sys/class/graphics/fb*/name |
| Touch does nothing | Run python3 -c "import evdev; print([evdev.InputDevice(p).name for p in evdev.list_devices()])" and set touch under [display] to your panel's name |
| Stuck on the away screen | No heartbeat is arriving. Remove [presence], or check that ls -l /tmp/desk-heartbeat shows a fresh time |
| A page says "Loading…" or a source stops updating | Check journalctl -u glance -f. Failed fetches keep the last good data and retry within 2 minutes |
dashboard.py: main loop (page rotation, touch, ticker scroll, away mode) and--preview.sources.py: one background thread per source, writing into a shared store. Live games are polled every minute.render.py: all drawing, with Pillow.icons.py: weather icons and sparklines.fb.py: the framebuffer, written throughmmap.photoframe.py: the falling-pixel photo frame.python3 photoframe.py PHOTO out.gifrenders one build as a GIF.
The SPI link runs at 16 MHz, so a full 320×480 frame takes about 150 ms. Glance changes the whole screen only on a page turn, and writes only the framebuffer rows that actually changed. That keeps the ticker smooth at 15 fps and the photo frame cheap: about 4% of one core.
Data sources: ESPN's site API and Yahoo Finance's chart API are unofficial and can change without notice. Open-Meteo and the RSS feeds are public. This is a personal dashboard, so please keep refresh rates polite.







