-
Notifications
You must be signed in to change notification settings - Fork 0
/
timer.conf
61 lines (50 loc) · 1.3 KB
/
timer.conf
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
; To check: http://your.vhost/timer/
[import]
configuration = common
[config]
renderer = Gd
format = gif
layout = txtgentime,curtime,txtParistime,timer
dimensions = 210,130
bgcolor = 255,255,255
interval = 1
frames = 20
[txtgentime]
type = Text
string = 'Server query time:'
font = LibMono
size = 12
color = 255,0,0
position = 10,10
opacity = 100
; Same properties as type text, except that string is a date format
; See http://php.net/manual/en/datetime.createfromformat.php
[curtime]
type = Date
;timezone = 'Asia/Tokyo'
string = 'Y-m-d H:i:s'
font = LibMono
size = 12
color = 0,0,255
position = 10,40
opacity = 100
[txtParistime]
type = Text
string = 'Paris:'
font = LibMono
size = 12
color = 255,0,0
position = 10,70
opacity = 100
; Timer element: the interval and number of frames is inherited from the "output" section
; "timezone" => Use one from http://php.net/manual/en/timezones.php, like 'America/New_York' or 'Europe/Paris'
; "string" => string compatible with DateTime (like "2017/08/17 23:04:15")
; "frames" => number of frames to prepare relaive to the date/time of the rendering
[timer]
type = DateTimer
font = LibMono
timezone = 'Europe/Paris'
string = 'Y-m-d H:i:s'
color = 255,0,255
position = 10,100
opacity = 100