Skip to content

jceaser/pebble-real-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Real Time Watchface

"The Government does not want you to know what time it is, they want you living in a world created by them, a world where they claim they can change the rotation of the Earth. Not any more people. This watch uses your longitude and tells you what time it really is. No more lies. No more mind control. Just the Real Time."

This Pebble watchface, designed for the truly enlightened, displays time based purely on your geographical longitude, offering a glimpse into the "natural" time that the powers-that-be don't want you to see. As a bonus for those who walk their own path, the date display is rendered in the glorious Holecene calendar.

Banner

Features

  • Natural Time Display: Shows the actual time based on your longitude, calculating your "natural" timezone (a 15-degree band around the Earth).
  • The Lie Indicator: Reveals the difference between the "natural" time and the legally enforced time on your device, expressed as an hour and minute offset.
  • Holecene Date: Displays the date in the Holecene calendar format (e.g., 12024-01-23).
  • Location Display: Shows your current Latitude and Longitude (obtained from your connected phone).
  • Battery Monitor: Displays the watch's battery percentage, with color alerts for low battery (Red for <= 10%, Yellow for <= 20%).
  • Automatic Updates: Periodically fetches location and timezone data from a companion phone app (JavaScript component).
  • Persistence: Remembers your last known location and timezone offset even after a watch reboot.

How It Works

This watchface leverages the Pebble SDK to provide a unique timekeeping experience:

  1. Companion App Communication: It communicates with a companion JavaScript application (running on your connected phone) via Pebble's AppMessage API. The phone's JS app is responsible for determining your current longitude, latitude, and system timezone offset, then sending this data to the watch.
  2. Natural Time Calculation: Upon receiving location data, the watchface calculates your "natural" time. It does this by finding the closest 15-degree longitudinal meridian to your current position. Each 15-degree band corresponds to a natural UTC offset (e.g., 0 degrees longitude is UTC+0, 15 degrees is UTC+1, -15 degrees is UTC-1, etc.).
  3. Offset Calculation ("The Lie"): It compares this calculated "natural" time with the device's legally set time (which accounts for political timezones and Daylight Saving Time) to show the hourly and minute difference.
  4. Display Update: All relevant data (natural time, date, offset, coordinates, battery) is rendered on the watchface using Pebble's TextLayer elements.
  5. Persistence: Key location data (timezoneOffset, latitude, longitude) is persisted to the watch's storage using persist_write_int, so the watchface can display information even if the phone app is not immediately available.

Installation

To use this watchface:

  1. Pebble SDK: You will need the Pebble SDK set up on your development machine.
  2. Build the Watchface: Compile the C source files (app.c, message.c, real-time.c) into a .pbw file using the Pebble SDK.
  3. Companion App: You will need a companion JavaScript file (not provided in these C files, but implied by message.c) that runs on your phone. This JS app must handle location services and send MESSAGE_KEY_TIMEZONE, MESSAGE_KEY_LATITUDE, and MESSAGE_KEY_LONGITUDE to the watch, and respond to MESSAGE_KEY_REQUEST_DATA from the watch.
  4. Sideload: Sideload the generated .pbw file onto your Pebble watch via the Pebble mobile app.

Screenshots

Basalt Chalk Diorite
basalt chalk diorite
Flint Emery Gabbro
flint emery gabbro

Credits

License

(Consider adding a license, e.g., MIT, if you intend this to be open source. Example below)

MIT License

Copyright (c) [Your Name/Year]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

A Pebble Watch Face to display the Real Time based on longitude and not government controlled timezones.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors