2026-08-24 21:00:39 -04:00
2026-08-02 17:52:36 -04:00
2026-08-24 20:56:19 -04:00
2026-07-24 19:06:21 -04:00
2026-07-24 19:06:21 -04:00
2026-07-24 18:44:12 -04:00
2026-08-24 21:00:39 -04:00
2026-07-24 19:06:21 -04:00

banner

Trigalarm is a habit-correcting alarm for heavy sleepers that forces you to solve for theta in right triangles. It's the perfect amount of thought to activate your brain in the morning!

The Pitch

Simple

The alarm setter is only one page. You can only set one alarm. There is no snooze, there is no weekly schedule, and there is no way to disable the alarm (you'll always have one set - every day - like it or not).

Persistent

The alarm goes off at least twice. The first time, you must solve a triangle to silence the alarm. The second time, you must do it again, but within a strict time limit (and no constant vibration). Fail to solve it within the time limit? The alarm is scheduled for a third time. This process continues until you solve within the time limit - this is to prove you managed to stay awake between alarms before allowing it to be fully disarmed. Even if you force-quit Trigalarm, it will shortly re-open to continue nagging you.

Adaptable

Trigalarm is meant to be adapted to your needs, and you should adjust its settings as you progress on your sleep journey. For example, as your trig skills improve, you may want to lower the time limit for the disarming alarm. You can also adjust the gap between alarms to account for how quickly you find yourself getting out of bed.

Perhaps the most unique, Trigalarm features optional Pavlok API integration to punish you via minor electrocution if you fall back asleep, force-quit the app, or attempt to overwrite your active alarm cycle.

Tips & Tricks

  • When you successfully disarm the alarm, you are prompted with the options to either exit and keep the same alarm time for tomorrow, or to select a new time. If choosing the latter, whatever time you select will assume you mean tomorrow. This avoids situations where you wake up at 6 on a Friday, set an alarm intended for 9 on Saturday, and end up with your wrist buzzing in three hours!
  • If you are stuck waiting for an awareness alarm or there is a bug that schedules an alarm incorrectly, there is a "Reset Alarm" button in the phone-side settings that will set your alarm to 00:00.

Some Neat Stuff

  • The vibration pattern is randomized. It derives the length of the three pulses from the angles in the generated triangle. Neat!
  • Some of the alarm scheduling code was taken from Gentle Wake. It seems trusted by the community, so... I stole it! The beauty of open source, no AI needed!
  • A custom font was made to satisfy the need for something that looks like LECO but is monospaced. The version I made contains only numbers, period, and colon, but if you want to build off of it, it's public and easy to modify!

Future Goals (1.1 and beyond)

  • Full touch navigation
  • Draw measurements based on triangle side locations, rather than in fixed positions
  • Speaker support
S
Description
An alarm that cannot be shut off until you solve for theta in a right triangle.
Readme MIT
896 KiB
Languages
C 82.4%
JavaScript 14.5%
Python 3.1%