-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
48 lines (34 loc) · 1.36 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
1. Installation
The easiest way to use daemon is to install the haskell plattform and then use
cabal to install daemon:
$ cabal install daemon-x.y.tar.gz
On first run daemon will create a dot directory with a default config and a
default feeds file in your home directory.
2. Usage: daemon [-v | --verbose] [-C PATH | --config=PATH]
[-f PATH | --feedspath=PATH] [-p | --print]
[-c KEYWORD | count=KEYWORD ...] [-t | --tasks]
-v, --VERBOSE
verbose output
-c PATH, --config=PATH
Use alternative PATH as config file.
-f PATH, --feedspath=PATH
Use alternative PATH as feeds file.
-p, --print
Print the news titles to stdout.
-c, --count=KEYWORD
Count the occurrences of the KEYWORD in the news. You can use
this option more than once if you want to count more than one
keyword.
-t, --tasks
Run the configured tasks if their thresholds are exceeded.
3. Configuration
daemon can run a custom command if a keyword is found more than n times in the
news titles. A sample configuration would be:
keyword1 = mars
keyword1_threshold = 3
keyword1_action = xeyes
keyword2 = saturn
keyword2_threshold = 5
keyword2_action = xcalc
Given the -t option, daemon will start xeyes if the word mars occurs in 3 or
more distinct news headlines.