alarma

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: BSD-3-Clause

README

Alarma - A bedside clock with music capabilities

This is a personal project. I wanted to have a bedside clock with alarm functionality.

Primary requirements:

  • Full-screen application, emitting as few light as possible
  • Show the current time in hours and minutes
  • Within configured time-spans, random audio files from a directory shall be played
  • Simple user-interaction to switch "alarm" functionality on/off

Secondary requirements:

  • Single time-spans shall have capability to be disabled. Sometimes a different time is required without needing much config work.

Target hardware

This application shall run on a touch-capable display device. Single-Touch input shall be interpreted as mouse events. My initial target is a "NanoPi 2 Fire", combined with an LCD.

Application

Each time-span has a separate folder configured. This way I can configure one time-span with music, and a second one with some classic alarm sound.

Dependencies

  • sox audio player (play command) -- hardcoded for now.
  • OpenGL 2.1 capabilities

License

The project is available under the terms of the New BSD License (see LICENSE file).

Directories

Path Synopsis
cmd
internal
config
Package config handles the configuration file.
Package config handles the configuration file.
core
Package core implements the core function of the application.
Package core implements the core function of the application.
ui
Package ui implements the user interface.
Package ui implements the user interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL