Build a Smart Mirror Dashboard
Prompt Claude Code to build and publish a personal smart mirror dashboard.
Introduction
30 Second Summary
A spare screen often sits unused while the information you check each morning stays scattered across different apps. One glance could replace all that tapping.
In this project, you will direct Claude Code with plain-language prompts to build a smart mirror dashboard. Your finished web app combines live daily information with a spoken interval workout on one full-screen display.
What You'll Build
Your spare screen will launch straight into a dark dashboard with the time, weather, schedule, and workout ready at a glance.
By the end of this project, you'll have:
- A full-screen dashboard at your own netlify.app address, with a live clock and today's weather always visible.
- A daily schedule showing today's Google Calendar event titles and times without exposing a calendar secret.
- A tap-started workout that counts down each interval, plays three warning beeps, and speaks the next exercise.
- Secret Mission: Load a different workout automatically for every weekday.
Are there any prerequisites?
You'll need a Claude account on Pro or higher, a Google account, and a spare screen. Your main computer needs macOS 13.0+ or Windows 10 1809+.
Before We Start
Before the hands-on work begins, lock in the spare screen your smart mirror will use. Choose the daily moment when its clock, weather, calendar, and workout timer will be most useful.
Install Claude Code and Build the Clock
This step solves the blank-screen problem by using Claude Code to create a visible clock before you add live data.
You start by installing the command-line tool. A plain-English request then produces an HTML page powered by JavaScript.
In this step, get ready to:
- Install Claude Code. A fresh terminal window shows its version number.
- Create the local smart-mirror folder. The Claude Code prompt opens inside the trusted folder.
- Generate index.html so the browser shows a live clock with today's date.
Install and verify Claude Code
Claude Code runs inside a terminal window. Choose the tab for your computer so the installer runs in the correct command-line app.
macOS
- Start Terminal.
- Press Cmd+Space to open Spotlight.
- Type Terminal.
- Press Enter.
The installer may appear idle while it downloads. That quiet pause is expected.
- Install Claude Code by running this command:
curl -fsSL https://claude.ai/install.sh | bash
What does this command do?
- The curl command downloads Anthropic's native installer.
- The bash command runs the downloaded installer.
The terminal returns control to you when the installation finishes.
- Close the Terminal window after the installer finishes.
- Start a fresh Terminal window.
- Press Cmd+Space to open Spotlight.
- Type Terminal.
- Press Enter.
- Verify the installation from the fresh window by running this command:
claude --version
What does this command do?
The version check asks the installed Claude Code command to identify itself. A version number confirms that the fresh terminal can find it.
You should see a Claude Code version number.
Windows
- Start native PowerShell.
- Press the Windows key to open search.
- Type PowerShell.
- Press Enter.
The installer may appear idle while it downloads. That quiet pause is expected.
- Install Claude Code by running this command:
irm https://claude.ai/install.ps1 | iex
What does this command do?
- The irm command downloads Anthropic's native PowerShell installer.
- The iex command runs the downloaded installer.
PowerShell returns control to you when the installation finishes.
- Close the PowerShell window after the installer finishes.
- Start a fresh native PowerShell window.
- Press the Windows key to open search.
- Type PowerShell.
- Press Enter.
- Verify the installation from the fresh window by running this command:
claude --version
What does this command do?
The version check asks the installed Claude Code command to identify itself. A version number confirms that the fresh PowerShell window can find it.
You should see a Claude Code version number.
Can't verify Claude Code?
- Close the current terminal window.
- Start a fresh Terminal or native PowerShell window.
- Run the version check again.
- On Windows, confirm that you used native PowerShell. Command Prompt does not recognize irm.
Help me fix my Claude Code installation.
Create and trust the project folder
Claude Code works with the files in your current folder. Keeping the project in a named Desktop folder makes it easy to find later.
The first Claude Code session opens browser sign-in instructions. It also asks you to trust the current folder before it can create files there.
macOS
- Move to your Desktop by running this command:
cd ~/Desktop
What does this command do?
The cd command changes the terminal's current folder. The Desktop becomes the location where the project folder is created.
- Create the smart-mirror folder and move into it by running these commands:
mkdir smart-mirror
cd smart-mirror
What do these commands do?
- The first command creates the smart-mirror folder on your Desktop.
- The second command moves the terminal into that folder.
- Start Claude Code inside the smart-mirror folder by running this command:
claude
What does this command do?
The command starts an interactive Claude Code session in the current folder. Any approved files are created inside smart-mirror.
Windows
- Move to your Desktop by running this command:
Set-Location ~/Desktop
What does this command do?
The Set-Location command changes PowerShell's current folder. The Desktop becomes the location where the project folder is created.
- Create the smart-mirror folder and move into it by running these commands:
New-Item -ItemType Directory -Path smart-mirror
Set-Location smart-mirror
What do these commands do?
- The first command creates the smart-mirror folder on your Desktop.
- The second command moves PowerShell into that folder.
- Start Claude Code inside the smart-mirror folder by running this command:
claude
What does this command do?
The command starts an interactive Claude Code session in the current folder. Any approved files are created inside smart-mirror.
- Complete the browser sign-in with your Claude account.
The terminal returns to the first Claude Code session after sign-in succeeds.
- Approve the folder trust request for smart-mirror.
You should see the Claude Code prompt in the terminal. Your empty project folder is now ready for its first file.
Prompt Claude Code to build the clock
Prompt-driven development lets you describe the result in plain language. The request also sets compatibility boundaries so the page can run on older tablets.
- Paste this exact request into the Claude Code prompt:
Build a smart mirror dashboard as one file named index.html. Use a black background, white text, a very large clock with hours and minutes, and today's date under it. It must fill the screen on a tablet in landscape and portrait. Use plain JavaScript only, with no frameworks, no optional chaining (?.), and no nullish coalescing (??), so it runs on old iPads. I will type no code myself, so create the complete file for me.
What does this request do?
The request defines the page's appearance and responsive layout. It also tells Claude Code to create the complete index.html file for you.
The compatibility rules exclude newer JavaScript syntax that can fail on older iPads. Plain JavaScript keeps this first version free from framework dependencies.
- Submit the request.
- Approve the proposed file write by pressing Enter.
Claude Code should confirm that it created index.html inside smart-mirror.
Before you open the file, do you expect the blank folder to have become a working clock?
macOS
- Open the generated dashboard in your default browser by running this command:
open index.html
You should see the current time in large white digits on a black page. Today's date should appear underneath it.
What does this command do?
The open command asks macOS to open index.html with its associated browser.
Windows
- Open the generated dashboard in your default browser by running this command:
Start-Process .\index.html
You should see the current time in large white digits on a black page. Today's date should appear underneath it.
What does this command do?
The Start-Process command asks Windows to open index.html with its associated browser.
The page has no live weather or schedule yet. That visible gap is expected at this stage.
The wait can take up to one minute because the display shows hours and minutes.
- Watch the clock until the displayed minute changes.
You should see the minutes update without reloading the page. This confirms that updateClock() keeps the display current.
Claude Code can organize the file differently while producing the same result. Use the reference below to check the required elements and clock behavior.
✔️ I've got the working clock
Your index.html file is saved inside smart-mirror. Keep the browser page open for the checkpoint below.
ⓧ I'd like to double check the full code
Compare Claude Code's file with this cumulative reference. The structure can vary, but the visible result and updateClock() behavior should match.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#000000">
<title>Smart Mirror Dashboard</title>
<style>
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: #fff; font-family: Arial, sans-serif; }
body { min-height: 100vh; padding: 4vw; display: flex; flex-direction: column; justify-content: center; }
.dashboard { width: 100%; display: flex; flex-wrap: wrap; gap: 3vw; align-items: stretch; }
.panel { flex: 1 1 280px; border: 1px solid #333; border-radius: 18px; padding: 24px; background: #080808; }
.hero { flex-basis: 100%; text-align: center; }
#clock { font-size: clamp(72px, 18vw, 220px); line-height: .9; font-weight: 700; letter-spacing: -0.06em; }
#date { margin-top: 18px; font-size: clamp(20px, 4vw, 42px); color: #bbb; }
@media (max-width: 700px) { body { padding: 18px; } .panel { padding: 18px; } }
</style>
</head>
<body>
<main class="dashboard">
<section class="panel hero">
<div id="clock">--:--</div>
<div id="date">Loading date</div>
</section>
</main>
<script>
function updateClock() {
var now = new Date();
document.getElementById("clock").textContent = now.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
document.getElementById("date").textContent = now.toLocaleDateString([], { weekday: "long", month: "long", day: "numeric" });
}
updateClock();
setInterval(updateClock, 1000);
</script>
</body>
</html>
Your mirror now keeps time on its own. Next, you will connect it to live weather for your city.
Add Today's Weather
Your smart mirror already keeps time on its own. Now you will connect it to live information from outside the device.
The clock knows the device time but nothing about the world outside, so Open-Meteo adds live conditions without an API key.
A REST API lets the dashboard request weather data over the internet. Open-Meteo uses geographic coordinates to identify the location you want.
In this step, get ready to:
- Find your city's latitude and longitude.
- Add live weather that refreshes every 15 minutes without an API key.
- Confirm the dashboard shows the temperature, condition, high, low, and linked attribution.
Find your city's coordinates
Weather services need a precise location before they can return local conditions. The geocoding response uses JSON to label the latitude and longitude clearly.
- Open the Open-Meteo city search for London.
You'll see a JSON response containing one result for London.
- Replace London with your city name.
- Click the browser address bar.
- Select London in the name=London part of the address.
- Type your city name.
- Press Enter to load the new result.
You'll see a result for your chosen city with its coordinates near the top.
- Save the latitude number as your latitude.
- Find the latitude label in the JSON response.
- Copy the number immediately after the label into the field above.
- Save the longitude number as your longitude.
- Find the longitude label in the JSON response.
- Copy the number immediately after the label into the field above.
Ask Claude Code to add live weather
Claude Code can turn your coordinates and display requirements into the weather panel. The values you saved appear in the request automatically.
- Paste the following request into Claude Code:
Add weather to index.html using Open-Meteo for latitude [[YOUR_LATITUDE="your latitude"]] and longitude [[YOUR_LONGITUDE="your longitude"]]. Show the current temperature, today's high and low, and turn the weather code into a short condition such as Clear, Cloudy, or Rain. Refresh the weather every 15 minutes. Use Celsius unless I say Fahrenheit. Do not use an API key. Show the exact credit line Weather data by Open-Meteo.com and link it to https://open-meteo.com/. Keep the page compatible with old iPads by using no optional chaining (?.) and no nullish coalescing (??).
What does this request do?
- It tells Claude Code which coordinates identify your city.
- It requests the current temperature plus today's high and low.
- It turns numeric weather codes into short condition labels.
- It keeps the required Open-Meteo attribution visible and linked.
- Approve Claude Code's request to update index.html.
- Review the proposed file name when Claude Code asks for permission.
- Choose the option that allows the file write.
Claude Code should report that it updated index.html with a weather area and the linked Open-Meteo credit.
Reload and check the weather
The browser must reload the updated file before it can request your city's weather. This check proves that the coordinates and forecast request work together.
Before you reload, what new information do you expect to appear beside the clock?
- Reload the local index.html page.
- Return to the browser tab showing your smart mirror.
- Click the browser's reload button.
You'll see a current temperature, a weather condition, today's high, today's low, and the linked line Weather data by Open-Meteo.com.
- Compare the dashboard values with a weather app for the same city.
- Search for the same city in the weather app you normally use.
- Check its current temperature against the dashboard.
- Check its high and low against the dashboard.
The city and overall conditions should line up with the weather app.
Small differences are normal when services update at different times. The comparison confirms that your coordinates point to the intended city.
Weather does not appear?
A failed weather request should produce a readable message inside the weather panel. Ask Claude Code to add that safety net while keeping the attribution visible.
- Paste this request into Claude Code:
The weather does not show. Add a visible weather error message when the request fails, keep the Open-Meteo credit visible, and tell me what the message means. Do not add an API key.
This request makes failures visible without adding a secret to the page. If the dashboard shows the wrong city, confirm that latitude appears before longitude in your original request.
Help me diagnose why the Open-Meteo weather panel is empty or showing the wrong city.
That is your first live data feed working. Your mirror now reflects conditions outside the screen.
Your dashboard can now combine device time with live weather. Next, you will connect it to today's schedule.
Add Today's Calendar
Your clock and weather panel already make the mirror useful at a glance. Now it needs to reflect the day that belongs to you.
Weather made the display generally useful. It still cannot show your day.
A small Google Apps Script web app returns only today's Google Calendar event titles and times. The response uses JSON so the dashboard can read those fields.
In this step, get ready to:
- Create calendar.gs with a doGet() function that returns only today's event fields.
- Deploy the Apps Script project so its /exec URL displays today's calendar data as JSON.
- Connect index.html so the Today panel shows event times and titles or No events today.
Create the calendar web app
The doGet() function handles requests to the web app. It reads today's events from your default calendar.
- In Claude Code, create calendar.gs by pasting this exact request:
Create a Google Apps Script file named calendar.gs. Add a doGet function that reads today's events from my default Google Calendar and returns JSON containing only each event's title, start time, end time, and whether it is all-day. Return nothing else. Use ContentService with the JSON MIME type. Do not use or expose an iCal secret address.
What does this request do?
The request limits the response to four event fields. Your dashboard gets the details it needs without exposing an iCal secret address.
- The title field holds the event name.
- The start field holds the starting time.
- The end field holds the ending time.
- The allDay field identifies an all-day event.
- Approve the file write for calendar.gs.
- Use the approval option in Claude Code's file permission prompt.
Claude Code should report that it created calendar.gs next to index.html.
- Compare calendar.gs with the reference before you deploy it.
✔️ I'll try it first
Confirm that your file defines doGet(). Confirm that its result contains only the four requested event fields.
ⓧ Let me check my work
Use this complete file as your comparison reference.
function doGet() {
var calendar = CalendarApp.getDefaultCalendar();
var events = calendar.getEventsForDay(new Date());
var result = events.map(function (event) {
return {
title: event.getTitle(),
start: event.getStartTime().toISOString(),
end: event.getEndTime().toISOString(),
allDay: event.isAllDayEvent()
};
});
return ContentService.createTextOutput(JSON.stringify(result))
.setMimeType(ContentService.MimeType.JSON);
}
What does this code do?
- The getDefaultCalendar() call selects your default calendar.
- The getEventsForDay(new Date()) call selects events that occur today.
- The map() call creates a limited object for each event.
- The ContentService response returns the result using the JSON MIME type.
- Open Google Apps Script in your browser.
- Create a new Apps Script project.
- Select New project on the Apps Script home page.
- Copy the complete contents of calendar.gs.
- Return to the smart-mirror folder from earlier in Finder on macOS or File Explorer on Windows.
- Open calendar.gs with your computer's text editor.
- Press Cmd+A on macOS or Ctrl+A on Windows.
- Press Cmd+C on macOS or Ctrl+C on Windows.
- Replace the Apps Script editor content with the copied contents of calendar.gs.
- Click inside the Apps Script code editor.
- Press Cmd+A on macOS or Ctrl+A on Windows.
- Press Cmd+V on macOS or Ctrl+V on Windows.
- Save the Apps Script project.
- Click the save icon in the Apps Script editor toolbar.
The saved editor should show the complete doGet() function without an unsaved-change indicator.
Deploy and test the calendar feed
A web app deployment gives your dashboard an address it can request. The production address ends in /exec.
Keep the deployment URL private
Anyone holding this URL can read the returned event titles and times. Keep the URL unshared.
The script returns only today's limited event fields. It does not return your entire calendar.
- Select Web app as the deployment type.
- Open the Deploy menu in the Apps Script editor.
- Select New deployment.
- Open Select type.
- Select Web app.
The deployment form should show the web app settings.
- Set Execute as to Me.
- Open the Execute as field.
- Select Me.
The Execute as field should show Me.
- Set Who has access to Anyone.
- Open the Who has access field.
- Select Anyone.
The Who has access field should show Anyone.
- Deploy the web app.
- Click Deploy in the deployment form.
Google should open a permission flow for calendar access.
- Approve access to your calendar.
- Complete the permission flow in the Google window.
You should return to a deployment result containing a web app URL.
- Copy the deployed URL ending in /exec here: YOUR /exec URL.
- Find the web app URL in the deployment result.
- Use the adjacent copy control.
Before you visit the URL, do you expect to see today's events or an empty JSON list?
- Visit YOUR /exec URL in your browser.
- Paste the URL into the browser address bar.
- Press Enter.
You should see today's events as JSON text. An empty calendar should produce an empty JSON list.
That is the privacy boundary in place. Your web app returns only today's limited event fields.
Connect the dashboard to the calendar
The dashboard can now use fetch() to request the JSON feed. A ten-minute refresh keeps the list current without reloading the whole page.
- In Claude Code, update index.html by pasting this exact request:
Add today's calendar to index.html using this Apps Script web app URL: [[YOUR_APPS_SCRIPT_EXEC_URL="YOUR /exec URL"]]. Use a plain fetch() GET request with no custom headers and no POST. Show each event's time and title, show the exact message No events today when the returned list is empty, and refresh every 10 minutes. Show a visible calendar error if the request fails. Never place a Google Calendar secret address or API key in the page. Keep old iPad compatibility with no optional chaining (?.) and no nullish coalescing (??).
What does this request do?
Claude Code adds a Today panel to index.html. The panel receives only the JSON fields from your Apps Script web app.
The request also adds a visible failure message. This makes a broken calendar request distinguishable from a day with no events.
- Approve the update to index.html.
- Use Claude Code's approval prompt to allow the file edit.
Claude Code should report that the calendar panel now loads your Apps Script URL.
Before you reload, do you expect your calendar to show event rows or No events today?
- Reload the local dashboard from earlier.
- Switch back to the browser tab showing your local index.html page.
- Click the browser's reload control.
You should see today's event times and titles in the Today panel. If the calendar is empty, you should see No events today.
- Compare the displayed titles and times with today's entries in your usual Google Calendar view.
The dashboard list should match today's calendar. Your clock and Open-Meteo weather panel should continue working beside it.
Calendar data not appearing?
- Redeploy with Who has access set to Anyone if the /exec page asks visitors to sign in.
- Confirm that CALENDAR_URL contains the production URL ending in /exec.
- Ask Claude Code to switch the calendar request to Google's documented read-only JSONP pattern if the direct URL shows events but the dashboard request fails.
Keep the JSONP response limited to non-sensitive event titles and times.
Help me diagnose why my Apps Script calendar feed works directly but not in my dashboard.
Your mirror now combines the current time, live weather, and your daily schedule. Next, you will turn it into a guide for an activity.
Add the Workout Timer
Your dashboard now combines the time with weather details. It also shows today's calendar events.
The dashboard can inform you. A tap-started timer lets it guide each workout interval without relying on sound files.
In this step, get ready to:
- Add a Workout panel with visible exercise and countdown controls.
- Test the tap-started routine. Its first transition plays three beeps plus the spoken cue Next: rest.
- Replace the routine with your selected exercises. The timer begins with your first selected duration.
Add the workout controls
Browser audio works most reliably when it begins from a user gesture. The Start workout tap gives both Web Audio and speech synthesis that gesture.
Claude Code may ask for permission to update index.html after it prepares the timer.
- Paste this request into the Claude Code prompt:
Add a workout timer panel to index.html with a Start workout button. Run this list: squats 40 seconds, rest 20 seconds, push-ups 40 seconds, rest 20 seconds, plank 40 seconds. Show the current exercise and a large countdown. Beep at 3, 2, and 1 seconds before every change, then say Next: followed by the next exercise name. Inside the Start workout tap handler, create the AudioContext and make the first speechSynthesis.speak() call before starting the timer. Do not initialize either sound system earlier. Keep old iPad compatibility with no optional chaining (?.) and no nullish coalescing (??).
What does this request do?
The request gives Claude Code the routine plus the visible timer behavior.
It also keeps AudioContext and the first speechSynthesis.speak() call inside the button tap. That timing lets the browser activate sound from your gesture.
- Press Enter to send the request.
- Approve the change to index.html when Claude Code asks for permission.
You should see a summary that index.html now includes a Workout panel. The summary should also mention the timer controls or audio cues.
Test the first routine
The first run checks the countdown plus both types of sound. This proves that the timer can guide a transition before you personalize it.
- Refresh the local dashboard to load the new workout controls.
- Switch back to the browser tab showing your local index.html page.
- Use your browser's page refresh control.
You should see a Workout panel showing Ready above --. You should also see Start workout and Stop controls.
- Turn up the device volume.
Before you tap the button, what do you expect the exercise name and countdown to show first?
- Start the routine with Start workout.
- Scroll to the Workout panel.
- Tap Start workout.
You should immediately see squats. The countdown starts at 40.
The first transition takes 40 seconds. Letting it run gives the browser enough time to demonstrate every sound cue.
- Keep the timer running through the first 40-second stage.
You should hear beeps at 3, 2, and 1 seconds. When squats finish, you should hear Next: rest.
That first transition is the key proof. Your dashboard can now guide an activity without prerecorded audio.
Workout stays silent?
- Check the device volume.
- Check the device mute setting.
- Paste this request into Claude Code:
The workout is silent on a tablet. Check that new AudioContext() and the first speechSynthesis.speak() call both run directly inside the Start workout click handler before any timer callback. Fix that without changing the workout list.
This asks Claude Code to restore both sound activations to the direct tap path. It preserves your workout list.
Help me diagnose silent workout audio on my device.
Personalize the workout
The routine lives in the workout array inside index.html. Another prompt can replace its exercise objects while preserving the timer behavior.
- Choose the exercises and durations you want in your routine.
- Paste this request into Claude Code:
Change the workout timer list to these exercises and durations: lunges 45 seconds, rest 15 seconds, burpees 30 seconds. Keep the existing tap-started audio, three countdown beeps, spoken Next cue, and old iPad compatibility.
What does this request do?
This request changes only the exercise names plus their durations. It tells Claude Code to preserve the sound activation plus timer behavior that already worked.
- Replace the sample routine in the Claude Code input with your selected exercise names and durations.
- Press Enter to send the personalized request.
Claude Code should report that it changed the workout list. Your existing countdown plus audio behavior should remain in place.
- Refresh the local dashboard to load your selected routine.
- Return to the browser tab showing your local dashboard.
- Use your browser's page refresh control.
The Workout panel should return to its ready state. Your personalized routine is ready for a fresh run.
Before you start the timer, which exercise name and duration do you expect to see first?
- Start your selected routine with Start workout.
- Find the Workout panel on the refreshed dashboard.
- Tap Start workout.
You should see your first selected exercise. The countdown should begin at its selected duration.
Your smart mirror now guides a routine you chose. The visible countdown plus tap-started sound cues are working together.
Your dashboard can now inform you plus guide a workout. Next, you will publish it for your spare screen.
Publish Your Smart Mirror
Your local dashboard now brings together a live clock, weather, calendar events, and workout guidance. Claude Code has turned your prompts into a working smart mirror.
Publishing moves the dashboard onto your spare screen. It also gives the page the secure web address required for wake lock support.
In this step, get ready to:
- Make the dashboard installable. Its local clock, weather, calendar, and workout panels still work.
- Publish the smart-mirror folder. The dashboard works at a public netlify.app address.
- Launch the dashboard on your spare screen. It fills the display without the normal browser bar.
Make the dashboard installable
A Progressive Web App uses a manifest to describe how your dashboard launches. Screen Wake Lock asks a supported display to stay awake while the page is active.
- Return to the Claude Code prompt in your trusted smart-mirror folder.
- Paste this request into Claude Code:
Make this dashboard installable. Create manifest.json with the name Smart Mirror Dashboard, a short name, start URL, standalone display, black background and theme colors, and a simple app icon file. Link the manifest from index.html. Add a Screen Wake Lock request when Start workout is tapped or the page is tapped, but put every wake lock call behind exactly this feature check: if ("wakeLock" in navigator). Show a small status message if wake lock is unavailable or rejected. Keep old iPad compatibility with no optional chaining (?.) and no nullish coalescing (??).
What does this message do?
- The manifest gives an installed dashboard its name, launch page, colors, icon, and standalone display mode.
- The wake lock request asks a supported screen to remain awake after a page tap or workout tap.
- The exact if ("wakeLock" in navigator) check keeps unsupported browsers on a safe path.
- Send the request to Claude Code.
- Approve each requested file write.
Claude Code should create manifest.json and icon.svg. It should update index.html with the manifest link, wake lock logic, and visible wake status.
- Reload the local dashboard in your browser.
- Switch back to the browser tab showing your local index.html page.
- Use the browser's reload control.
You should still see the clock, weather, calendar, and workout panels. A wake status message now appears in the Workout panel.
- Select Start workout.
- Find Start workout below the countdown in the Workout panel.
The countdown begins with your first exercise. The wake status reports whether the request is active, unavailable, or rejected.
Why might wake lock be unavailable locally?
Screen Wake Lock requires a secure context such as HTTPS. The published dashboard provides that secure context.
Publish with Netlify Drop
Netlify Drop turns the local smart-mirror folder into a hosted website. Your published address uses HTTPS.
A production deployment uses 15 credits from the Free plan's monthly allowance of 300 credits. This single deployment stays inside that allowance.
- Open Netlify Drop.
- Create a free Netlify account on that page.
- Select the sign-up option shown beside the account prompt.
- Complete the account provider's prompts.
You should return to Netlify Drop as a signed-in user.
- Drag the entire smart-mirror folder into the Netlify Drop zone.
- Find the smart-mirror folder from earlier in Finder on macOS or File Explorer on Windows.
Netlify should publish the folder. You should see a preview address ending in netlify.app.
- Record the preview address here: your netlify.app address.
- Find the published address on the deployment result page.
Before you visit the published address, do you expect every local dashboard panel to work over HTTPS?
- Visit your netlify.app address in your browser.
- Select the browser's address bar.
- Enter your netlify.app address.
- Press Enter.
You should see the current clock and date. The weather panel should show live conditions.
The calendar should show today's events or No events today. The Workout panel should show your selected routine controls.
- Select Start workout on the published dashboard.
- Find Start workout in the Workout panel at the published address.
The workout countdown should begin. On a supported browser, the wake status should report that the screen wake lock is active.
Published page missing something?
Check that you dragged the entire smart-mirror folder. It must contain index.html, calendar.gs, manifest.json, and icon.svg.
Test the local dashboard again before publishing a corrected folder. Help me diagnose a missing panel in my published smart mirror dashboard.
Launch it on your spare screen
The manifest uses standalone display mode so an installed dashboard can open without the normal URL bar. Choose the instructions for your spare screen.
- On an iPad, add the published dashboard to the Home Screen with Open as Web App turned on.
- Visit your netlify.app address in Safari.
- Tap Share.
- Tap View More.
- Tap Add to Home Screen.
- Turn on Open as Web App.
- Tap Add.
You should see a new Smart Mirror icon on the iPad Home Screen.
- On an Android tablet, install the published dashboard with the browser's Home Screen option.
- Visit your netlify.app address in Google Chrome.
- Open the browser menu.
- Select Add to home screen or Install app when offered.
- Complete the installation prompt.
You should see a new Smart Mirror icon on the Android Home Screen.
- On an old laptop, display the published dashboard with the browser's full-screen control.
- Visit your netlify.app address in the browser.
- Select the browser's full-screen control.
You should see the dashboard expand across the laptop display.
Using an older iPad?
Screen Wake Lock works in Home Screen web apps from iPadOS 18.4. On older iPads, use Auto-Lock or Guided Access when the wake status reports no support.
Before you launch the installed dashboard, do you expect the normal browser URL bar to remain visible?
- On an iPad or Android tablet, launch the dashboard from its new Home Screen icon.
- On a laptop, return to the full-screen dashboard.
The dashboard should fill the display without the normal URL bar. You should see the clock, weather, calendar, and workout timer.
- Select Start workout on the spare screen.
- Find the workout controls below the calendar and weather panels.
The countdown should begin with your first exercise. The dashboard should beep near the transition and speak the next exercise cue.
Secret mission
Give Every Day Its Own Workout
Your smart mirror currently follows one workout every day. Give each weekday its own routine so the dashboard automatically loads the right plan each morning.
Clean Up Your Resources
Clean Up Your Resources
The deployed dashboard's online resources fit within the free services used in this project. Decide whether to keep the dashboard available, pause your use, or delete every project resource.
Resources you used:
- A local smart-mirror folder containing index.html, calendar.gs, manifest.json, icon.svg, and workouts.json.
- A deployed Google Apps Script web app with an unshared /exec address.
- A published Netlify project with a public netlify.app address.
- A Home Screen icon or full-screen browser shortcut on your spare screen.
Keep everything running
Keep this setup if you want the smart mirror available for daily use.
- Keep the smart-mirror folder in its current location.
- Leave the Apps Script web app deployed.
- Keep the /exec address private because it returns your event titles and times.
- Leave the Netlify project published at its current netlify.app address.
- Keep the dashboard icon or browser shortcut on your spare screen.
Your existing Netlify deployment remains available within the Free plan. Each new production deployment uses 15 of the plan's 300 monthly credits.
Pause - I'll come back to this later
Step away from the dashboard while preserving the online resources for your return.
- Close the dashboard on your spare screen.
- Remove its Home Screen icon or browser shortcut if you do not want it visible.
- Leave the Apps Script web app deployed so the same /exec address remains available.
- Leave the Netlify project published so the same netlify.app address remains available.
- Keep the local smart-mirror folder for future updates.
Delete - I don't want to use this again
Deletion permanently removes the published dashboard and disables its calendar endpoint. Save any workout routines you want to keep before continuing.
- Remove the Smart Mirror Dashboard icon or shortcut from your spare screen with your device's app removal control.
The dashboard should no longer appear on the spare screen's Home Screen or browser shortcuts.
- Return to the Apps Script project from earlier.
- Remove its active web app deployment through the project's deployment management area.
Visit the former /exec address. You should no longer see today's event data.
- Return to the existing Netlify project that serves your netlify.app address.
- Use the project's permanent deletion control to delete the Netlify project.
Visit the former netlify.app address. You should no longer see your smart mirror dashboard.
- Find the local smart-mirror folder in the same location where you created it.
- Delete the smart-mirror folder with your computer's file manager.
- Empty your computer's deleted-items area to reclaim the disk space.
The smart-mirror folder should no longer appear in its original location.
Nice Work!
Nice Work!
You did it! Your spare screen now runs a published smart mirror dashboard built through plain-English prompts in Claude Code.
Your dashboard gives you a glanceable view of your day. Its workout timer guides every transition out loud.
You learned how to:
- Direct Claude Code with precise plain-English prompts to build a responsive clock dashboard in index.html.
- Connect live weather through Open-Meteo without an API key. Return only today's event details through Google Apps Script without exposing the calendar secret.
- Publish the finished dashboard through Netlify Drop at a public netlify.app address. Install it as a full-screen Progressive Web App. Keep the display active with a guarded Screen Wake Lock.
- Secret Mission: Moved weekday routines into workouts.json so today's workout loads automatically.
Ready to quiz yourself?