-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
65 lines (45 loc) · 2.82 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[![license](https://img.shields.io/github/license/clawoflight/morgenlichtctl.svg)](https://github.com/clawoflight/morgenlichtctl/blob/master/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/clawoflight/morgenlichtctl.svg)](https://github.com/clawoflight/morgenlichtctl/blob/master/AUTHORS)
[![Github All Releases](https://img.shields.io/github/downloads/clawoflight/morgenlichtctl/total.svg)]()
[![GitHub release](https://img.shields.io/github/release/clawoflight/morgenlichtctl.svg)](https://github.com/clawoflight/morgenlichtctl/releases)
[![AUR](https://img.shields.io/aur/version/morgenlichtctl.svg)](https://aur.archlinux.org/packages/morgenlichtctl/)
[![AUR](https://img.shields.io/aur/votes/morgenlichtctl.svg)](https://aur.archlinux.org/packages/morgenlichtctl/)
# Morgenlichtctl
Morgenlichtctl is a simple client for [morgenlichtd](https://github.com/Coecoenut/MorgenLicht), written in C. It is also currently the official one.
## Installing
### Arch
A package for Arch Linux is available in the [AUR](https://aur.archlinux.org/packages/morgenlichtctl/).
### 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](http://asic-linux.com.mx/~izto/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)
```