ESP32 Projects
Start a build
Markdown

Open Glance Clock for ESP32-C3

An ESP32 display project for ESP32-C3.

ESP32-C3See upstream buildUnrated
Parts and source

Before you start

Confirm board compatibility and supported firmware targets in the upstream documentation.

Upstream README

OpenGlance Clock

Your own software for the Glance Clock. Control it from any web browser through a tiny ESP32-C3 bridge that lives inside the clock, or connect directly from a Mac or Windows PC over Bluetooth. No Glance account, no cloud, no phone app.

The clock showing the time with the temperature ring, then the green Fire animation with 'OpenGlance 1.10 connected', then the date   The clock face showing 'OpenGl…' scrolling across the display with the green Fire animation on the ring

After start-up the bridge connects to the clock and announces itself with its version (here “OpenGlance 1.10 connected”).


The three pieces

What it is Runs on Talks to the clock
OpenGlance Bridge Firmware for an ESP32-C3 Super Mini, built into the clock ESP32-C3 Bluetooth LE, all day, every day
OpenGlance Clock Desktop app for an unmodified Glance Clock macOS 14+ (Apple silicon), Windows 10/11 Bluetooth LE from the computer
OpenGlance Flasher Installs the bridge firmware on a bare ESP32-C3 over USB macOS, Windows — (flashes the ESP32-C3)

Downloads: see Releases for the Mac apps, the Windows .exe files and the bridge firmware .bin.


1. OpenGlance Bridge (ESP32-C3 firmware)

The Glance Clock only speaks Bluetooth LE. The bridge is an ESP32-C3 that sits inside the clock, stays connected to it over Bluetooth, and joins your home Wi-Fi. That gives you:

  • Control from any web browser. Phone, tablet or computer: open http://openglance.local/. No app to install.
  • A clock that is permanently online. It gets internet time and weather automatically, with nothing else needing to be switched on.
  • Exact time, all the time. The bridge takes time from NTP and hands it to the clock through the standard Bluetooth Current Time Service, which the clock reads every time it connects. It re-syncs daily at 03:05 and whenever daylight saving starts or ends. Time zones are POSIX rules, so DST switches automatically.

Bridge web page 1.22, Home tab: internet time with a manual-time option, the clock connected with battery 100% and the time it last read, time zone, weather, recent activity

Features
Tab What you can do
Home Bridge time (internet or manual, with a clear switch back to internet time), Update clock now, time zone and daily correction, the clock's connection and battery, the time it last read and the exact value supplied, weather summary, recent activity
Alerts Send scrolling text with an animation (Pulse, Wave, Fire, Wheel, Flower, Sun, Cloud), a colour and any of the 17 built-in sounds (each with Test). Start/stop timers. Bridge hourly chime with your choice of sound and quiet hours, and the clock's own built-in hourly chime (Off or a sound)
Alarms Up to 4 alarms with days (Weekdays, Weekend, Every day, Once or any mix), sound and a 16-character label. Stop the alarm now, Delete all alarms on the clock
Weather A 24-hour temperature ring coloured blue → green → amber → red, and a rain ring shown only when rain is really coming (amount and chance within a look-ahead you choose). Alternates the two rings on an interval, or shows rain instead. Place search, 12-hour preview. Data from Open-Meteo
Display Digital time, 12/24-hour, hour points, night mode, mute, date format, brightness (automatic with minimum/maximum limits, or fixed), Night settings (the clock's Do Not Disturb and Silent schedules) and the seconds pixel
Clock Find and pair a clock (type the PIN it shows) and hand calibration with a reseating guide
System Connection options (automatic reconnection, the optional silent “OpenGlance connected” message), Wi-Fi, firmware update over Wi-Fi (files are checked before installing), full activity log
Seconds pixel and night settings
  • Seconds pixel: a single LED ticks once round the ring every minute, in any of the clock's 24 colours. Click which of the four LEDs from the outer ring to the centre should light (one dot, a short radial line, or any mix). The clock draws the movement itself from scenes of about 10 seconds that the bridge sends, so it uses very little Bluetooth. The stock clock firmware restarts a scene each time it is replaced, so expect a small blip, and the time/date switch, about every 10 seconds. It shares the weather ring's slot: weather pauses while it is on. It pauses for timers, alarms, chimes, messages and calibration.
  • Night settings: the clock's own Do Not Disturb hides ring overlays (including the seconds and weather) and notifications. Silent only mutes sounds. Choose Off, Scheduled (from–to) or Always for each. For quiet nights with the seconds still ticking, turn Do Not Disturb off and schedule Silent instead. Every change is read back from the clock to confirm it.
Alerts tab: message, bridge hourly chime, the clock's built-in hourly chime and timer Display tab: display settings, brightness range, night settings and the seconds pixel with its LED picker
Weather tab: rain rule, 12-hour temperature and rain preview for Canberra, colour range Night settings and the seconds pixel on a phone in dark mode
Works on a phone too, in light or dark mode.
Setting it up
  1. Flash the ESP32-C3 with OpenGlance Flasher, or upload a newer OTA.bin from the bridge's own web page later.
  2. Wi-Fi: the bridge opens a hotspot called OpenGlance-Setup. Join it, pick your 2.4 GHz Wi-Fi from the list, enter its password and choose your time zone.
  3. Open http://openglance.local/ (or the IP address your router shows).
  4. Pair the clock: close any phone app or desktop app that is connected to the clock (it accepts one connection at a time). Short-press the clock's button (don't hold it), press Find clocks → Pair, and type the PIN the clock shows.

From then on the bridge keeps the clock connected and reconnects by itself. If the saved Wi-Fi stops working, the setup hotspot comes back after 2 minutes.

The bridge page has no login (owner's choice), so anyone on your home network can use it. Firmware uploads are still validated: only OpenGlance bridge firmware built for the ESP32-C3 is accepted.


The hardware mod: an ESP32-C3 in place of the barrel jack

The Glance Clock is powered from a 5 V DC barrel jack. The mod swaps that jack for an ESP32-C3 Super Mini, so the bridge lives inside the clock and its USB-C port becomes the clock's power input.

  1. Remove the DC barrel jack from the clock's main board.
  2. Widen the hole in the case where the jack was, so the Super Mini's USB-C connector fits through it.
  3. Mount the ESP32-C3 behind the hole (here with hot glue), USB-C facing out.
  4. Run two wires from the ESP32-C3's 5V and GND pins to the clock's 5 V input: the pads the barrel jack used to occupy.

That's all. The bridge does not connect to any of the clock's logic; it only shares its power. Everything else happens over Bluetooth. A single USB-C cable now powers the clock, charges its battery, runs the bridge, and lets you re-flash the bridge from a computer without opening anything.

ESP32-C3 Super Mini glued into the clock case where the barrel jack was, with 5V and GND wires Back of the clock board: red +5 V and black GND wires soldered to the former barrel-jack pads

The widened hole in the clock's rim with the USB-C port showing
The ESP32-C3 Super Mini in place of the barrel jack. 5 V (red) and GND (black) on the old jack pads, and the USB-C port in the widened hole.

Before you copy this:

  • The clock's original supply is 5 V, 1.5 A. Use a USB power supply that can deliver at least 2 A.
  • Check your board: some Super Mini variants put a diode between USB VBUS and the 5V pin. If yours does, take the clock's power from VBUS instead.
  • Double-check polarity with a multimeter before connecting the battery and powering up.
  • Keep the ESP32-C3's antenna clear of metal so it still reaches your Wi-Fi.

2. OpenGlance Clock (Mac and Windows app)

For a Glance Clock without the bridge. The app connects straight to the clock over your computer's Bluetooth and has the same look and features as the bridge's web page: alerts, sounds and timers, hourly chimes, alarms, weather rings, display and brightness settings, night settings, the seconds pixel, pairing, auto-connect and hand calibration. Things that need the app to be running (the seconds pixel, weather, the app's hourly chime) work while it is open; Disconnect and Quit tidy the ring first.

OpenGlance Clock for Mac, Home tab

Setting the time without the time service

A computer can't set the clock's time the way the bridge does. macOS doesn't let apps publish the Bluetooth Current Time Service, and the clock can't report its own time. So the Mac app uses a hidden time-offset setting found in the clock's firmware (Settings field 18, firmware 1.6.7 or later). Changing that offset moves the clock's running time by the difference.

  • Set the clock to this computer's time, or type any time (and date) you want.
  • Fine adjust with ±1 minute and ±1 hour buttons.
  • The app estimates what the clock currently shows (from the bridge's last sync plus every change made since). If the clock shows something else, type the time it actually shows and the app remembers the correction.
  • Before going back to the bridge, Reset offset to 0, because the clock adds the offset to the time the bridge supplies.
Mac app, Clock tab: Clock time card with Set, fine adjust and calibration Mac app, Display tab: night settings and the seconds pixel
Windows

The Windows version is a native rewrite with the same tabs and features, delivered as a single self-contained .exe (no .NET or drivers to install). It pairs the clock itself and asks for the PIN shown on the clock.

Windows app, Alerts tab
Windows app in dark mode: night settings and the seconds pixel

Status: the Mac app has been tested on a real clock, including setting the time. The night settings and seconds pixel are new in 0.33 and match the bridge byte for byte, but have not yet been run from the desktop apps on a real clock. The Windows app has not yet been tested with a real clock. It needs a PC with Bluetooth LE; virtual machines (e.g. Parallels on Apple silicon) usually don't provide one.


3. OpenGlance Flasher

Installs OpenGlance Bridge X.YY OTA.bin onto an ESP32-C3 over USB, including a brand-new, empty board. Plug the board in, the Flasher finds its port and the newest firmware, press Install firmware. It writes the bootloader, partition table, boot selector and app together, verifies them, then waits for the bridge to report that it started.

  • Rejects anything that isn't OpenGlance bridge firmware for the ESP32-C3 (including full images and other chips).
  • Erase the whole chip first is optional; without it, the bridge keeps its Wi-Fi settings and clock pairing.
  • Contains Espressif's official, unmodified esptool (GPLv2).

OpenGlance Flasher for Mac after a successful install   OpenGlance Flasher for Windows while installing


Inside the Glance Clock

The Glance Clock main board with labels: Nordic nRF52832, three DM164 LED drivers, XP1 SWD and XP7 LED-bus headers, LED dot-matrix display, battery connector, hand shaft, RGB ring LEDs and button

  • Brain: a Nordic nRF52832 (Bluetooth LE + Cortex-M4) with an external SPI flash.
  • LEDs: three DM164 LED drivers run the RGB ring and the white dot-matrix display.
  • Hands: a separate stepper movement with an IR sensor finds the 12 o'clock reference during calibration.
  • Board: “glance 2018.04.13 v6.1”, with an unpopulated SWD header (XP1). Nothing in this project flashes or modifies the clock's own firmware.
Close-up: nRF52832, 32 MHz crystal and the XP1 SWD header
nRF52832 and the XP1 SWD header.
Close-up: a DM164 LED driver and the DC-DC converter
One of the three DM164 LED drivers.
Close-up: XP7 LED bus header, DM164, HA125 buffer and the battery connector
XP7 LED-bus header next to a DM164.
The HEADWAY stepper movement and the IR homing sensor wires
The hands' movement and its IR homing sensor.
Back of the board: XP7 and XP1 headers above the movement
Back of the board.
The clock during hand calibration showing Confirm and a green segment at 12
Hand calibration: confirm only when both hands point exactly to 12.

Building from source

Piece Folder Build
Bridge firmware Code/ESP32C3 bash build.sh (arduino-cli, esp32:esp32 3.3.12 core, NimBLE-Arduino 2.5.1). Runs host-side protocol checks first.
OpenGlance Clock for Mac Code/OpenGlanceClock bash build-app.sh (Swift, Command Line Tools are enough)
OpenGlance Flasher for Mac Code/OpenGlanceFlasher bash build-app.sh (needs the ESP32 Arduino core's esptool)
Windows apps Code/Windows bash build.sh on a Mac with the .NET 8 SDK; produces both .exe files

Each build script runs its own checks (protocol packets, settings preservation, firmware validation and more) before producing anything, and never overwrites an older release. Mac and Windows apps always share version numbers.


How it works, and thanks

The Glance Clock's Bluetooth protocol was documented by others first. This project builds on:

New in OpenGlance, from static analysis of the original app and the clock's firmware: the automatic-brightness minimum/maximum encoding, the alarm list format, the hand-calibration state flags, the hidden time-offset setting that lets a Mac set the time, how the firmware evaluates its Do Not Disturb and Silent schedules, and why a replaced ring scene restarts (each scene is re-initialised and must fit one Bluetooth write, which shapes the seconds pixel).

Settings are always read from the clock first, unknown fields are preserved, and every change is read back to confirm it. Nothing here flashes or alters the clock's own firmware.


Licence

OpenGlance is released under the MIT License.

Third-party parts keep their own licences:

  • The ESP32-C3 bootloader, partition table and boot selector images in Code/OpenGlanceFlasher/Support/ come from Espressif's Arduino core (Apache-2.0).
  • The Flasher releases include Espressif's unmodified esptool (GPLv2, source).
  • The apps and firmware use Avalonia (MIT), NimBLE-Arduino (Apache-2.0) and the Espressif Arduino core (LGPL-2.1).
  • Weather data is from Open-Meteo (CC BY 4.0).

OpenGlance is an independent hobby project, not affiliated with or endorsed by Glance. Opening and modifying your clock is at your own risk.