Skip to content

A simple command-line client for morgenlichtd, written in C.

License

Notifications You must be signed in to change notification settings

clawoflight/morgenlichtctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license GitHub contributors Github All Releases GitHub release AUR AUR

Morgenlichtctl

Morgenlichtctl is a simple client for morgenlichtd, written in C. It is also currently the official one.

Installing

Arch

A package for Arch Linux is available in the AUR.

From Source

Dependencies:

  • pandoc
  • argtable2

Get them in Debian or it's derivatives with sudo apt-get install pandoc libargtable2-dev.

This project uses the GNU autotools. Simply download the latest release and execute ./configure, make and sudo make install in the project root to install it. Autoconf will complain if any libraries are missing.

Note that while automake does add a make uninstall target, it would be wise for you to use checkinstall, if available.

Usage

morgenlichtctl  [-hv]
 -h, --help                Print help and exit.
 -v, --version             Print version and exit.

morgenlichtctl  alarm list [--csv]
 --csv                     Use machine-readable csv format

morgenlichtctl  alarm enable <ALARM>
 <ALARM>                   The alarm to enable

morgenlichtctl  alarm disable <ALARM>
 <ALARM>                   The alarm to disable

morgenlichtctl  alarm delete <ALARM>
 <ALARM>                   The alarm to delete

morgenlichtctl  alarm add <HH:MM:SS> -n <ALARM> -d DayDay [-c <COLOR>] [-s <SOUND>]
 <HH:MM:SS>                The ringing time
 -n, --name=<ALARM>        The name of the alarm
 -d, --days=DayDay         The weekdays at which the alarm is enabled. String of MonTueWedThuFriSatSun.
 -c, --color=<COLOR>       The color profile to use.
 -s, --sound=<SOUND>       The sound to play

morgenlichtctl set-leds R1 R2 G1 G2 B1 B2
 R1                        Red channel 1 value (0-255)
 R2                        Red channel 2 value (0-255)
 G1                        Green channel 1 value (0-255)
 G2                        Green channel 2 value (0-255)
 B1                        Blue channel 1 value (0-255)
 B2                        Blue channel 2 value (0-255)