Build a Self-Updating Personal Dashboard With Cron

On this pageBuild a Self-Updating Personal Dashboard With Cron0%
Build a Self-Updating Personal Dashboard With Cron
A self-updating personal dashboard is a single web view that pulls your calendar, task list, and a metric or two into one screen, then refreshes itself on a schedule so it is always current when you glance at it. Instead of opening five apps to reconstruct your day, you open one browser tab that a cron job keeps up to date in the background. This guide shows how to build one in an afternoon with nothing more than a scheduled script and a static HTML file.
Why context switching quietly drains your day
Every time you switch apps to check status, you pay a reorientation cost. You open the calendar for your next meeting, the task manager for what is left, a metrics tool for today's numbers, and by the time you are back to work you have lost the thread. The switches feel small, but they stack. A dozen glance-checks a day become a dozen small resets.
The fix is not another notification stream. It is consolidation into one glanceable surface. A dashboard answers "what is going on right now?" in a single look, so you check once instead of hopping. This is the same principle behind an automated morning brief, extended into a persistent view you can leave open all day.
Pick your data sources
Keep the source list short. A dashboard that shows everything becomes another inbox you have to scan. Three sources are usually enough:
Calendar: today's remaining events, so you know your hard edges.
Tasks: the handful due or in progress today, not the whole backlog.
One or two metrics: whatever number actually steers your day, such as open pull requests, support tickets, or revenue.
Most of these expose an API or an export. Google Calendar publishes an iCal URL. Todoist, Linear, and Notion have REST APIs that return items filtered by date. GitHub and GitLab return open pull requests with a single call. Pick sources you can fetch with one authenticated request each, and skip anything that needs a browser session.
Fetch and cache data on a schedule
The core idea is separation: a scheduled job fetches data and writes it to disk, and the browser only ever reads the cached result. That keeps the page instant and means an API hiccup never leaves you staring at a spinner.
Write a small script that pulls each source and saves a single JSON file. Then let cron run it every few minutes.
#!/usr/bin/env bash
set -euo pipefail
OUT=/home/me/dashboard/data.json
TMP=$(mktemp)
CAL=$(curl -sf "$CAL_ICAL_URL" | your-ical-to-json || echo '[]')
TASKS=$(curl -sf -H "Authorization: Bearer $TASK_TOKEN" \
"https://api.example.com/tasks?due=today" || echo '[]')
PRS=$(curl -sf -H "Authorization: Bearer $GH_TOKEN" \
"https://api.github.com/search/issues?q=is:open+is:pr+author:me" || echo '{}')
jq -n --argjson cal "$CAL" --argjson tasks "$TASKS" --argjson prs "$PRS" \
'{updated: now, calendar: $cal, tasks: $tasks, prs: $prs}' > "$TMP"
mv "$TMP" "$OUT"Schedule it with cron. Every ten minutes during working hours is plenty:
*/10 6-20 * * 1-5 /home/me/dashboard/refresh.sh >> /home/me/dashboard/refresh.log 2>&1Writing to a temp file and moving it into place is deliberate. The move is atomic, so the browser never reads a half-written file. If you prefer a no-code path, a tool like n8n or Make can hit the same APIs on a schedule and write to a database, but a shell script and cron are the lightest option and the same pattern that powers most shell script automation setups.
Render one static HTML view that refreshes itself
The page has one job: read the cached JSON and show it. No build step, no server framework. A single HTML file with a little JavaScript is enough.
<!doctype html>
<meta charset="utf-8">
<title>Dashboard</title>
<meta http-equiv="refresh" content="60">
<body style="font-family: system-ui; max-width: 40rem; margin: 2rem auto;">
<h1>Today</h1>
<div id="app">Loading...</div>
<script>
fetch('data.json?' + Date.now())
.then(r => r.json())
.then(d => {
const app = document.getElementById('app');
const tasks = (d.tasks || []).map(t => '<li>' + t.title + '</li>').join('');
const cal = (d.calendar || []).map(e => '<li>' + e.time + ' ' + e.title + '</li>').join('');
app.innerHTML =
'<h2>Calendar</h2><ul>' + cal + '</ul>' +
'<h2>Tasks</h2><ul>' + tasks + '</ul>';
})
.catch(() => document.getElementById('app').innerText = 'No data yet.');
</script>
</body>The meta refresh tag reloads the page every 60 seconds, and appending a timestamp to the fetch URL defeats the browser cache. Serve the folder with any static server, or just open the file directly. Leave the tab open on a second monitor and it stays current on its own.
Keep it low-maintenance: fail quietly and log what breaks
The reason most personal automations rot is that they break loudly, annoy you, and get disabled. Design this one to fail quietly instead. Notice the fallbacks in the fetch script: each curl call falls back to an empty value if the API is down, so one broken source never wipes the whole dashboard.
Log every run to a file so you can see what happened without watching it. When a section goes blank, you check the log rather than guessing. A single line per run with a timestamp and any error is enough. This is the same discipline that keeps a broader personal automation stack alive: small pieces, clear logs, and graceful failure.
Start with one source and add the others once the loop works end to end. A dashboard that shows only your calendar today is already useful, and you can grow it the same way you would grow an automated weekly review, one reliable piece at a time.