Skip to content

jceaser/pebble-beat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pebble Beat Clock

A custom watchface for Pebble smartwatches that displays the current Internet Time (often referred to as ".beat" time), along with the UTC date and the watch's battery percentage.

What is Internet Time (.beat)?

Internet Time, also known as Swatch Internet Time, is a decimal time concept introduced by Swatch in 1998. It divides the day into 1,000 "beats" instead of 24 hours. Each beat is equivalent to 1 minute and 26.4 seconds. The day starts at @000 (midnight CET) and ends at @999. It's designed to be a universal time with no time zones, simplifying global communication and scheduling online.

Views

  • Basalt Basalt
  • Chalk Chalk
  • Basalt Basalt
  • Diorite Diorite
  • Flint Flint
  • Emery Emery
  • Gabbro Gabbro

Features

  • Internet Time Display: Shows the current time in .beat format (e.g., @876.5 or @876 for narrower screens).
  • UTC Date: Displays the current date in UTC (YYYY-MM-DD format).
  • Battery Status: Shows the watch's battery charge percentage.
  • Dynamic Layout: Adjusts the Beat time display to show decimal beats on wider screens and whole beats on narrower screens.
  • Automatic Updates: The watchface updates the time, date, and battery display automatically every few seconds.
  • Minimalist Design: A clean, red-on-black interface optimized for Pebble's display.

Project Structure

  • src/c/app.c: The main entry point for the Pebble application. It initializes the main window and delegates the watchface rendering and logic to the beat module.
  • src/c/beat.c: Contains the core logic for the Beat Clock watchface, including:
    • Calculating and formatting the current Internet Time, UTC date, and battery percentage.
    • Setting up the TextLayer elements for displaying information.
    • Handling periodic updates to keep the display current.
    • Managing the watchface window and its event handlers.

How to Use

  1. Install on your Pebble:
    • You will need to compile this project into a .pbw file (Pebble's application package format).
    • Once compiled, you can sideload the .pbw file to your Pebble watch using the Pebble smartphone app.
  2. Select Watchface: After installation, open the Pebble app on your smartphone, navigate to the "My Pebble" section, and select "Pebble Beat Clock" as your active watchface.

The watchface will then automatically display the current Internet Time, UTC date, and battery percentage.

Button Interactions (Developer Notes)

Currently, the watchface has minimal interactive features:

  • The SELECT button, when pressed, temporarily changes the Beat time display to "select". This is primarily a placeholder for potential future functionality.
  • The DOWN button does not have any active functionality.

Building the Project

To build this project, you will need the Pebble SDK.

  1. Set up the Pebble SDK: Follow the official Pebble SDK installation instructions for your operating system.
  2. Navigate to Project Directory: Open your terminal or command prompt and go to the root directory of this project.
  3. Build: Use the Pebble SDK tools to build the .pbw file:
    pebble build
    This command will generate a .pbw file in the build/ directory, which you can then sideload to your watch.

Contributing

License

Lets go with Apache 2.0.

About

A simple beat clock for the pebble watch

Topics

Resources

Stars

Watchers

Forks

Contributors