-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
53 lines (42 loc) · 2.31 KB
/
config
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
#This is a sample page-mon config file used to demonstrate features.
#In the future, this will be the default file for the user to modify
#Rather than this needing to be somewhere specific, eventually use `pagemon -e`
#For information regarding scheduling syntax, see http://linux.die.net/man/5/crontab
#Fields are MINUTE, HOUR, DAY_OF_MONTH, MONTH, DAY_OF_WEEK
#`*` means "every value", `1,2` means "1 or 2", `2-5` means "2, 3, 4, or 5"
#`*/2` means "every even value", `10-30/5` means "10, 15, 20, 25, or 30"
#If MONTH or DAY_OF_WEEK fields are a constant, their first three letters suffice
#e.g. `JAN` or `Sun` but not `Mon-Fri`; values are also case-insensitive
#Set contact/storage variables
#Variable names are case insensitive
#`dir` is the only variable that is necessary
DIR = "/var/cache/page-mon_log"
#`email` and `secret` are only necessary if they're used
email_domain = "lorem.ipsum"
email_secret = "0123456789abcdef0123456789abcdef"
email_to = "[email protected]"
#`url` is only necessary if `secret` is used with a self-hosted pushjet server
pushjet_url = "https://api.pushjet.io/"
pushjet_secret = "0123456789abcdef0123456789abcdef"
#Check stallman.org every minute
#Whitespace can be omitted where it does not cause ambiguity
#*****https://stallman.org/ -> text
#*****https://www.random.org/integers/?num=100&min=1&max=100&col=5&base=10&format=html&rnd=new -> text
***** https://api.twitch.tv/kraken/channels/truktruk -> text
***** https://api.twitch.tv/kraken/channels/teamfortresstv -> text
***** https://www.api.twitch.tv/kraken/channels/teamfortresstv -> append
#Check blog at noon on every weekday
#Urls must begin with `https://` (or `http://`)
0 12 * * 1-5 https://itszn.com/blog/
#Check if it's christmast every midnight of December
0 0 * DEC * https://isitchristmas.com/
#Check the not-so-important things less frequently
#This will only run on Feb 29 (so every four years)
0 0 29 Feb * http://www.hasthelargehadroncolliderdestroyedtheworldyet.com/
#keep track of the top of all time on your favorite subreddit
#check every 5 minutes of every hour
#check every Friday OR the 13th of every month
#TODO: this might get screwy because of the `5 months ago` tags
*/5 * 13 * FRI https://www.reddit.com/r/ledootgeneration/top/?sort=top&t=all
#Fix github syntax highlighting:
# vim: syntax=python